3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); ob_start(function($fooz){$test="test";$globals["foo"]=var_export($test,true);});ob_get_clean();var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EqgIg
function name:  (null)
number of ops:  13
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'ob_start'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FEqgIg%3A3%240'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
          7        INIT_FCALL                                               'ob_get_clean'
          8        DO_ICALL                                                 
          9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FEqgIg%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EqgIg
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $fooz, !1 = $test, !2 = $globals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        ASSIGN                                                   !1, 'test'
          2        INIT_FCALL                                               'var_export'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $5      
          6        ASSIGN_DIM                                               !2, 'foo'
          7        OP_DATA                                                  $5
          8      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FEqgIg%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.7 ms | 1395 KiB | 23 Q