3v4l.org

run code in 300+ PHP versions simultaneously
<?php print strcmp('a','a'); print strcmp('b','a'); print strcmp('ba','a'); print strcmp('ab','a'); print strcmp(array(),'a');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eSXtZ
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strcmp'
          1        SEND_VAL                                                 'a'
          2        SEND_VAL                                                 'a'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    3     5        INIT_FCALL                                               'strcmp'
          6        SEND_VAL                                                 'b'
          7        SEND_VAL                                                 'a'
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
    4    10        INIT_FCALL                                               'strcmp'
         11        SEND_VAL                                                 'ba'
         12        SEND_VAL                                                 'a'
         13        DO_ICALL                                         $2      
         14        ECHO                                                     $2
    5    15        INIT_FCALL                                               'strcmp'
         16        SEND_VAL                                                 'ab'
         17        SEND_VAL                                                 'a'
         18        DO_ICALL                                         $3      
         19        ECHO                                                     $3
    6    20        INIT_FCALL                                               'strcmp'
         21        SEND_VAL                                                 <array>
         22        SEND_VAL                                                 'a'
         23        DO_ICALL                                         $4      
         24        ECHO                                                     $4
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.39 ms | 935 KiB | 16 Q