3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FWOAhk%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WOAhk
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FWOAhk%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.63 ms | 1388 KiB | 17 Q