3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(strcoll('foo', 'bar')); // behaves as stated in https://www.php.net/manual/en/function.strcoll.php var_dump(strcmp('foo', 'bar')); # is not returning -1, 0, or 1 as stated in https://www.php.net/manual/en/function.strcmp.php var_dump(strcasecmp('foo', 'bar')); # is not returning -1, 0, or 1 as stated in https://www.php.net/manual/en/function.strcasecmp.php var_dump(strnatcmp('foo', 'bar')); // behaves as stated in https://www.php.net/manual/en/function.strnatcmp.php var_dump(strnatcasecmp('foo', 'bar')); // behaves as stated in https://www.php.net/manual/en/function.strnatcasecmp.php var_dump(strncmp('foo', 'bar', 1)); # is not returning -1, 0, or 1 as stated in https://www.php.net/manual/en/function.strncmp.php var_dump(strncasecmp('foo', 'bar', 1)); # is not returning -1, 0, or 1 as stated in https://www.php.net/manual/en/function.strncasecmp.php var_dump(version_compare('8', '11')); // behaves as stated in https://www.php.net/manual/en/function.version-compare.php
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kumk4
function name:  (null)
number of ops:  59
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'strcoll'
          2        SEND_VAL                                                     'foo'
          3        SEND_VAL                                                     'bar'
          4        DO_ICALL                                             $0      
          5        SEND_VAR                                                     $0
          6        DO_ICALL                                                     
    6     7        INIT_FCALL                                                   'var_dump'
          8        INIT_FCALL                                                   'strcmp'
          9        SEND_VAL                                                     'foo'
         10        SEND_VAL                                                     'bar'
         11        DO_ICALL                                             $2      
         12        SEND_VAR                                                     $2
         13        DO_ICALL                                                     
    9    14        INIT_FCALL                                                   'var_dump'
         15        INIT_FCALL                                                   'strcasecmp'
         16        SEND_VAL                                                     'foo'
         17        SEND_VAL                                                     'bar'
         18        DO_ICALL                                             $4      
         19        SEND_VAR                                                     $4
         20        DO_ICALL                                                     
   12    21        INIT_FCALL                                                   'var_dump'
         22        INIT_FCALL                                                   'strnatcmp'
         23        SEND_VAL                                                     'foo'
         24        SEND_VAL                                                     'bar'
         25        DO_ICALL                                             $6      
         26        SEND_VAR                                                     $6
         27        DO_ICALL                                                     
   15    28        INIT_FCALL                                                   'var_dump'
         29        INIT_FCALL                                                   'strnatcasecmp'
         30        SEND_VAL                                                     'foo'
         31        SEND_VAL                                                     'bar'
         32        DO_ICALL                                             $8      
         33        SEND_VAR                                                     $8
         34        DO_ICALL                                                     
   18    35        INIT_FCALL                                                   'var_dump'
         36        INIT_FCALL                                                   'strncmp'
         37        SEND_VAL                                                     'foo'
         38        SEND_VAL                                                     'bar'
         39        SEND_VAL                                                     1
         40        DO_ICALL                                             $10     
         41        SEND_VAR                                                     $10
         42        DO_ICALL                                                     
   21    43        INIT_FCALL                                                   'var_dump'
         44        INIT_FCALL                                                   'strncasecmp'
         45        SEND_VAL                                                     'foo'
         46        SEND_VAL                                                     'bar'
         47        SEND_VAL                                                     1
         48        DO_ICALL                                             $12     
         49        SEND_VAR                                                     $12
         50        DO_ICALL                                                     
   24    51        INIT_FCALL                                                   'var_dump'
         52        INIT_FCALL                                                   'version_compare'
         53        SEND_VAL                                                     '8'
         54        SEND_VAL                                                     '11'
         55        DO_ICALL                                             $14     
         56        SEND_VAR                                                     $14
         57        DO_ICALL                                                     
   25    58      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.86 ms | 1472 KiB | 22 Q