3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = 'echo "ok";'; function ev($callback) { $callback(); } preg_replace('/.*/e', 'ev(function() {' . $b .'})', '');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/508M0
function name:  (null)
number of ops:  9
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'echo+%22ok%22%3B'
    8     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F.%2A%2Fe'
          3        CONCAT                                           ~2      'ev%28function%28%29+%7B', !0
          4        CONCAT                                           ~3      ~2, '%7D%29'
          5        SEND_VAL                                                 ~3
          6        SEND_VAL                                                 ''
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function ev:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/508M0
function name:  ev
number of ops:  4
compiled vars:  !0 = $callback
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
    6     3      > RETURN                                                   null

End of function ev

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.05 ms | 1394 KiB | 15 Q