3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D4eCO
function name:  Test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null
          1*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.79 ms | 1398 KiB | 18 Q