3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.64 ms | 1399 KiB | 17 Q