3v4l.org

run code in 300+ PHP versions simultaneously
<?php function run($task, $callback = null) { echo 'Running '.$task.PHP_EOL; echo $callback(); } run('pdf', 'Callback');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lqjkf
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'run'
          1        SEND_VAL                                                 'pdf'
          2        SEND_VAL                                                 'Callback'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lqjkf
function name:  run
number of ops:  9
compiled vars:  !0 = $task, !1 = $callback
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        CONCAT                                           ~2      'Running+', !0
          3        CONCAT                                           ~3      ~2, '%0A'
          4        ECHO                                                     ~3
          5        INIT_DYNAMIC_CALL                                        !1
          6        DO_FCALL                                      0  $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   null

End of function run

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.59 ms | 1401 KiB | 14 Q