3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = fopen('/tmp/1', 'w'); var_dump((object) 0); var_dump($r); var_dump(NULL); var_dump(false); var_dump(0); var_dump(''); var_dump(0.0); var_dump(array());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jAS5i
function name:  (null)
number of ops:  31
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 '%2Ftmp%2F1'
          2        SEND_VAL                                                 'w'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'var_dump'
          6        CAST                                          8  ~3      0
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAL                                                 null
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAL                                                 <false>
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAL                                                 0
         20        DO_ICALL                                                 
    9    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAL                                                 ''
         23        DO_ICALL                                                 
   10    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAL                                                 0
         26        DO_ICALL                                                 
   11    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAL                                                 <array>
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.69 ms | 1395 KiB | 17 Q