3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x() { $f = create_function('$a,$b', 'return $a*$b;'); return $f; } function y() { while (true) x(); } y();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtJqJ
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'y'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtJqJ
function name:  x
number of ops:  7
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'create_function'
          1        SEND_VAL_EX                                              '%24a%2C%24b'
          2        SEND_VAL_EX                                              'return+%24a%2A%24b%3B'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    5     5      > RETURN                                                   !0
    6     6*     > RETURN                                                   null

End of function x

Function y:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 1
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 1
Branch analysis from position: 4
Branch analysis from position: 1
filename:       /in/TtJqJ
function name:  y
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > JMP                                                      ->3
          1    >   INIT_FCALL                                               'x'
          2        DO_FCALL                                      0          
          3    > > JMPNZ                                                    <true>, ->1
   10     4    > > RETURN                                                   null

End of function y

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.86 ms | 1398 KiB | 15 Q