3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test\Cases; function exec(callable $call) { $call(); } var_dump(exec(function() {return true;}));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fYNcg
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                    'Test%5CCases%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'Test%5CCases%5Cexec'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00test%5Ccases%5C%7Bclosure%7D%2Fin%2FfYNcg%3A6%240'
          3        SEND_VAL_EX                                              ~0
          4        DO_FCALL                                      0  $1      
          5        SEND_VAR_NO_REF_EX                                       $1
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function test%5Ccases%5Cexec:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fYNcg
function name:  Test\Cases\exec
number of ops:  4
compiled vars:  !0 = $call
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
          3      > RETURN                                                   null

End of function test%5Ccases%5Cexec

Function %00test%5Ccases%5C%7Bclosure%7D%2Fin%2FfYNcg%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fYNcg
function name:  Test\Cases\{closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function %00test%5Ccases%5C%7Bclosure%7D%2Fin%2FfYNcg%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.96 ms | 1395 KiB | 17 Q