3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(string_lt('2222', '123')); function string_lt($str1, $str2) { if ((string) $str1 < (string) $str2) { return true; } return false; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rvpbl
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL_BY_NAME                                       'string_lt'
          2        SEND_VAL_EX                                              '2222'
          3        SEND_VAL_EX                                              '123'
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
   10     7      > RETURN                                                   1

Function string_lt:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rvpbl
function name:  string_lt
number of ops:  9
compiled vars:  !0 = $str1, !1 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        CAST                                          6  ~2      !0
          3        CAST                                          6  ~3      !1
          4        IS_SMALLER                                               ~2, ~3
          5      > JMPZ                                                     ~4, ->7
          6    > > RETURN                                                   <true>
    9     7    > > RETURN                                                   <false>
   10     8*     > RETURN                                                   null

End of function string_lt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.46 ms | 1386 KiB | 15 Q