3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.84 ms | 1395 KiB | 17 Q