3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($str){ if(strpos($str, ">") !== false) { $exp = explode(">", $str); var_dump($exp); return ($exp[0] > $exp[1]); } } var_dump(test("1.2 > 2"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kVOiv
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'test'
          2        SEND_VAL                                                 '1.2+%3E+2'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kVOiv
function name:  test
number of ops:  20
compiled vars:  !0 = $str, !1 = $exp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%3E'
          4        DO_ICALL                                         $2      
          5        TYPE_CHECK                                  1018          $2
          6      > JMPZ                                                     ~3, ->19
    7     7    >   INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%3E'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !1, $4
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    9    15        FETCH_DIM_R                                      ~7      !1, 0
         16        FETCH_DIM_R                                      ~8      !1, 1
         17        IS_SMALLER                                       ~9      ~8, ~7
         18      > RETURN                                                   ~9
   11    19    > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.71 ms | 1390 KiB | 20 Q