xref: /php-src/ext/opcache/tests/jit/assign_038.phpt (revision c16ad918)
1--TEST--
2JIT ASSIGN: Assign constant (with result)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8;opcache.jit_debug=257
9opcache.optimization_level=0 ; disable optimizer to produce ASSIGN with result
10--EXTENSIONS--
11opcache
12--FILE--
13<?php
14$a = $b = "bb";
15var_dump($a, $b);
16?>
17--EXPECT--
18string(2) "bb"
19string(2) "bb"
20