3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test ($param){ $param == 10; } if (test(10)) echo "OK";
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
filename:       /in/rQYCs
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 10
          2        DO_FCALL                                      0  $0      
          3      > JMPZ                                                     $0, ->5
          4    >   ECHO                                                     'OK'
          5    > > RETURN                                                   1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.31 ms | 1396 KiB | 14 Q