3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting( E_ALL ); function sum( $a, $b ) { return $a + $b; } if ( sum( 1, 2, 3 ) === 3 ) { echo "PASS"; } else { echo "FAIL"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/doYun
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    8     3        INIT_FCALL                                               'sum'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 2
          6        SEND_VAL                                                 3
          7        DO_FCALL                                      0  $1      
          8        IS_IDENTICAL                                             $1, 3
          9      > JMPZ                                                     ~2, ->12
    9    10    >   ECHO                                                     'PASS'
    8    11      > JMP                                                      ->13
   11    12    >   ECHO                                                     'FAIL'
   12    13    > > RETURN                                                   1

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

End of function sum

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.5 ms | 1002 KiB | 15 Q