3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( strcmp('bar', 'foo'), strcmp('foo', 'bar'), strcasecmp('bar', 'foo'), strcasecmp('foo', 'bar'), strncmp('bar', 'foo', 2), strncmp('foo', 'bar', 2), strncasecmp('bar', 'foo', 2), strncasecmp('foo', 'bar', 2), );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C1i18
function name:  (null)
number of ops:  47
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    4     1        INIT_FCALL                                               'strcmp'
          2        SEND_VAL                                                 'bar'
          3        SEND_VAL                                                 'foo'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
    5     6        INIT_FCALL                                               'strcmp'
          7        SEND_VAL                                                 'foo'
          8        SEND_VAL                                                 'bar'
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
    6    11        INIT_FCALL                                               'strcasecmp'
         12        SEND_VAL                                                 'bar'
         13        SEND_VAL                                                 'foo'
         14        DO_ICALL                                         $2      
         15        SEND_VAR                                                 $2
    7    16        INIT_FCALL                                               'strcasecmp'
         17        SEND_VAL                                                 'foo'
         18        SEND_VAL                                                 'bar'
         19        DO_ICALL                                         $3      
         20        SEND_VAR                                                 $3
    8    21        INIT_FCALL                                               'strncmp'
         22        SEND_VAL                                                 'bar'
         23        SEND_VAL                                                 'foo'
         24        SEND_VAL                                                 2
         25        DO_ICALL                                         $4      
         26        SEND_VAR                                                 $4
    9    27        INIT_FCALL                                               'strncmp'
         28        SEND_VAL                                                 'foo'
         29        SEND_VAL                                                 'bar'
         30        SEND_VAL                                                 2
         31        DO_ICALL                                         $5      
         32        SEND_VAR                                                 $5
   10    33        INIT_FCALL                                               'strncasecmp'
         34        SEND_VAL                                                 'bar'
         35        SEND_VAL                                                 'foo'
         36        SEND_VAL                                                 2
         37        DO_ICALL                                         $6      
         38        SEND_VAR                                                 $6
   11    39        INIT_FCALL                                               'strncasecmp'
         40        SEND_VAL                                                 'foo'
         41        SEND_VAL                                                 'bar'
         42        SEND_VAL                                                 2
         43        DO_ICALL                                         $7      
         44        SEND_VAR                                                 $7
    3    45        DO_ICALL                                                 
   12    46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
215.98 ms | 1011 KiB | 18 Q