3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(check('a', 'a')); var_dump(check('a', 'A')); var_dump(check('A', 'a')); var_dump(check('A', 'A')); var_dump(check('a', 'b')); var_dump(check('a', 'B')); var_dump(check('A', 'b')); var_dump(check('A', 'B')); function check($a, $b) { return $a !== $b && strtolower($a) === strtolower($b); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GArWP
function name:  (null)
number of ops:  57
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL_BY_NAME                                       'check'
          2        SEND_VAL_EX                                              'a'
          3        SEND_VAL_EX                                              'a'
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL_BY_NAME                                       'check'
          9        SEND_VAL_EX                                              'a'
         10        SEND_VAL_EX                                              'A'
         11        DO_FCALL                                      0  $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
    5    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL_BY_NAME                                       'check'
         16        SEND_VAL_EX                                              'A'
         17        SEND_VAL_EX                                              'a'
         18        DO_FCALL                                      0  $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                                 
    6    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL_BY_NAME                                       'check'
         23        SEND_VAL_EX                                              'A'
         24        SEND_VAL_EX                                              'A'
         25        DO_FCALL                                      0  $6      
         26        SEND_VAR                                                 $6
         27        DO_ICALL                                                 
    8    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL_BY_NAME                                       'check'
         30        SEND_VAL_EX                                              'a'
         31        SEND_VAL_EX                                              'b'
         32        DO_FCALL                                      0  $8      
         33        SEND_VAR                                                 $8
         34        DO_ICALL                                                 
    9    35        INIT_FCALL                                               'var_dump'
         36        INIT_FCALL_BY_NAME                                       'check'
         37        SEND_VAL_EX                                              'a'
         38        SEND_VAL_EX                                              'B'
         39        DO_FCALL                                      0  $10     
         40        SEND_VAR                                                 $10
         41        DO_ICALL                                                 
   10    42        INIT_FCALL                                               'var_dump'
         43        INIT_FCALL_BY_NAME                                       'check'
         44        SEND_VAL_EX                                              'A'
         45        SEND_VAL_EX                                              'b'
         46        DO_FCALL                                      0  $12     
         47        SEND_VAR                                                 $12
         48        DO_ICALL                                                 
   11    49        INIT_FCALL                                               'var_dump'
         50        INIT_FCALL_BY_NAME                                       'check'
         51        SEND_VAL_EX                                              'A'
         52        SEND_VAL_EX                                              'B'
         53        DO_FCALL                                      0  $14     
         54        SEND_VAR                                                 $14
         55        DO_ICALL                                                 
   16    56      > RETURN                                                   1

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

End of function check

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.22 ms | 1405 KiB | 17 Q