3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lua = new Lua(); $closure = $lua->eval(<<<CODE return (function () print("hello world") end) CODE ); $lua->call($closure); /* after PHP 5.3 */ $closure();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O8dk7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $lua, !1 = $closure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'Lua'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_METHOD_CALL                                         !0, 'eval'
    5     4        SEND_VAL_EX                                              '++++return+%28function+%28%29%0A++++++++print%28%22hello+world%22%29%0A++++end%29'
          5        DO_FCALL                                      0  $5      
    4     6        ASSIGN                                                   !1, $5
   11     7        INIT_METHOD_CALL                                         !0, 'call'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
   13    10        INIT_DYNAMIC_CALL                                        !1
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.84 ms | 1392 KiB | 13 Q