3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( strcmp(true, 1), strcmp(false, 1), strcmp("1", true), strcmp(true, "1"), strcmp(true, "0"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iv4IS
function name:  (null)
number of ops:  28
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                                                 <true>
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
    5     6        INIT_FCALL                                               'strcmp'
          7        SEND_VAL                                                 <false>
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
    6    11        INIT_FCALL                                               'strcmp'
         12        SEND_VAL                                                 '1'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $2      
         15        SEND_VAR                                                 $2
    7    16        INIT_FCALL                                               'strcmp'
         17        SEND_VAL                                                 <true>
         18        SEND_VAL                                                 '1'
         19        DO_ICALL                                         $3      
         20        SEND_VAR                                                 $3
    8    21        INIT_FCALL                                               'strcmp'
         22        SEND_VAL                                                 <true>
         23        SEND_VAL                                                 '0'
         24        DO_ICALL                                         $4      
         25        SEND_VAR                                                 $4
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.43 ms | 1399 KiB | 17 Q