3v4l.org

run code in 300+ PHP versions simultaneously
<?php compare($x, $y); print_r($x, true); print_r($y, true); echo "\nAFTER\n"; compare($x, $y); function compare($x, $y) { echo 'x > y: '; var_dump($x > $y); echo 'x < y: '; var_dump($x < $y); echo 'x == y: '; var_dump($x == $y); echo 'x != y: '; var_dump($x != $y); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dVI6O
function name:  (null)
number of ops:  18
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'compare'
          1        SEND_VAR_EX                                              !0
          2        SEND_VAR_EX                                              !1
          3        DO_FCALL                                      0          
    3     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                                 
    5    12        ECHO                                                     '%0AAFTER%0A'
    6    13        INIT_FCALL_BY_NAME                                       'compare'
         14        SEND_VAR_EX                                              !0
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
   17    17      > RETURN                                                   1

Function compare:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dVI6O
function name:  compare
number of ops:  23
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        ECHO                                                     'x+%3E+y%3A+'
   10     3        INIT_FCALL                                               'var_dump'
          4        IS_SMALLER                                       ~2      !1, !0
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
   11     7        ECHO                                                     'x+%3C+y%3A+'
   12     8        INIT_FCALL                                               'var_dump'
          9        IS_SMALLER                                       ~4      !0, !1
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
   13    12        ECHO                                                     'x+%3D%3D+y%3A+'
   14    13        INIT_FCALL                                               'var_dump'
         14        IS_EQUAL                                         ~6      !0, !1
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                                 
   15    17        ECHO                                                     'x+%21%3D+y%3A+'
   16    18        INIT_FCALL                                               'var_dump'
         19        IS_NOT_EQUAL                                     ~8      !0, !1
         20        SEND_VAL                                                 ~8
         21        DO_ICALL                                                 
   17    22      > RETURN                                                   null

End of function compare

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.16 ms | 1400 KiB | 17 Q