3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = 'echo "OK";'; $a='f();function f($_=1){if($_==1)return;'.$b.'}'; assert($a); f(2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nHBO4
function name:  (null)
number of ops:  13
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'echo+%22OK%22%3B'
    4     1        CONCAT                                           ~3      'f%28%29%3Bfunction+f%28%24_%3D1%29%7Bif%28%24_%3D%3D1%29return%3B', !0
          2        CONCAT                                           ~4      ~3, '%7D'
          3        ASSIGN                                                   !1, ~4
    5     4        ASSERT_CHECK                                             
          5        INIT_FCALL                                               'assert'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 'assert%28%24a%29'
          8        DO_ICALL                                                 
    6     9        INIT_FCALL_BY_NAME                                       'f'
         10        SEND_VAL_EX                                              2
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.37 ms | 1394 KiB | 15 Q