3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.16 ms | 1395 KiB | 17 Q