3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 42; $opposite = true; function square($x) { return($x * $x); }; $list = array(1, 2, 3, 4, 5); if($elvis) { alert('I knew it!'); } function Hello() { echo('Hello Mammouth'); }; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/kkWXk
function name:  (null)
number of ops:  8
compiled vars:  !0 = $number, !1 = $opposite, !2 = $list, !3 = $elvis
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 42
    3     1        ASSIGN                                                   !1, <true>
    8     2        ASSIGN                                                   !2, <array>
   10     3      > JMPZ                                                     !3, ->7
   11     4    >   INIT_FCALL_BY_NAME                                       'alert'
          5        SEND_VAL_EX                                              'I+knew+it%21'
          6        DO_FCALL                                      0          
   16     7    > > RETURN                                                   1

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

End of function square

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kkWXk
function name:  Hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'Hello+Mammouth'
   15     1      > RETURN                                                   null

End of function hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.67 ms | 1394 KiB | 13 Q