3v4l.org

run code in 500+ PHP versions simultaneously
<?php function str_case_cmp($a, $b) { return 0 === strcasecmp( $a, $b ); } function str_to_lower($a, $b) { return strtolower($a) === strtolower($b); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6a2UE
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                       1

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

End of function str_case_cmp

Function str_to_lower:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6a2UE
function name:  str_to_lower
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    7     2        INIT_FCALL                                                   'strtolower'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $2      
          5        INIT_FCALL                                                   'strtolower'
          6        SEND_VAR                                                     !1
          7        DO_ICALL                                             $3      
          8        IS_IDENTICAL                                         ~4      $2, $3
          9      > RETURN                                                       ~4
    8    10*     > RETURN                                                       null

End of function str_to_lower

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
178.9 ms | 1584 KiB | 14 Q