xref: /PHP-8.0/ext/opcache/tests/jmp_elim_001.phpt (revision 7aacc705)
1--TEST--
2Edge-cases in constant conditional jump elimination
3--SKIPIF--
4<?php if (PHP_INT_SIZE != 8) die("skip for machines with 64-bit longs"); ?>
5<?php require_once('skipif.inc'); ?>
6--FILE--
7<?php
8$webserver = "Apache";
9$cpuArc = "x86_64";
10$archName = (strstr($cpuArc, "64") || PHP_INT_SIZE === 8) ? "64" : "32";
11$info = array('arch' => $archName,
12              'webserver' =>$webserver);
13header('Content-Type: application/json');
14echo json_encode($info) . "\n";
15?>
16--EXPECT--
17{"arch":"64","webserver":"Apache"}
18