3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen_one_to_three() { yield 1; yield '5' => 'hui'; yield 5; yield 6; } $a = [true => 'twst', false => 'ffff']; var_dump($a); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ga3NG
function name:  (null)
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   12     4      > RETURN                                                   1

Function gen_one_to_three:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/Ga3NG
function name:  gen_one_to_three
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   GENERATOR_CREATE                                         
    3     1        YIELD                                                    1
    4     2        YIELD                                                    'hui', '5'
    5     3        YIELD                                                    5
    6     4        YIELD                                                    6
    7     5      > GENERATOR_RETURN                                         

End of function gen_one_to_three

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.87 ms | 1394 KiB | 15 Q