3v4l.org

run code in 300+ PHP versions simultaneously
<?php function blah() { $a=0; $b=0; if ($a==$b) { return "yay!"; } } $string = "stupid stuff" . blah(); echo $string; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uvkXB
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'blah'
          1        DO_FCALL                                      0  $1      
          2        CONCAT                                           ~2      'stupid+stuff', $1
          3        ASSIGN                                                   !0, ~2
   17     4        ECHO                                                     !0
   21     5      > RETURN                                                   1

Function blah:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uvkXB
function name:  blah
number of ops:  6
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 0
          1        ASSIGN                                                   !1, 0
    7     2        IS_EQUAL                                                 !0, !1
          3      > JMPZ                                                     ~4, ->5
    9     4    > > RETURN                                                   'yay%21'
   11     5    > > RETURN                                                   null

End of function blah

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.42 ms | 1397 KiB | 14 Q