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)); $s = (string) array(1,2); var_dump($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MO48H
function name:  (null)
number of ops:  30
compiled vars:  !0 = $a, !1 = $null, !2 = $s
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                                         $4      
          6        IS_EQUAL                                         ~5      $4, 0
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'strcmp'
         11        SEND_VAL                                                 'test'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        TYPE_CHECK                                    2  ~8      $7
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                                 
    6    17        INIT_FCALL                                               'test'
         18        DO_FCALL                                      0  $10     
         19        ASSIGN                                                   !1, $10
    7    20        INIT_FCALL                                               'var_dump'
         21        TYPE_CHECK                                    2  ~12     !1
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                                 
    8    24        CAST                                          6  ~14     <array>
         25        ASSIGN                                                   !2, ~14
    9    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MO48H
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:
158.96 ms | 1399 KiB | 18 Q