3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 42; $float = 42.1234; $bool = true; $resource = fopen('php://stdout', 'w'); $null = null; $string = 'Foo bar'; $object = new \stdClass(); var_dump($int[1]); var_dump($float[1]); var_dump($bool[1]); var_dump($resource[1]); var_dump($null[1]); var_dump($string[1]); var_dump($object[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D3c2q
function name:  (null)
number of ops:  42
compiled vars:  !0 = $int, !1 = $float, !2 = $bool, !3 = $resource, !4 = $null, !5 = $string, !6 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 42
    4     1        ASSIGN                                                   !1, 42.1234
    5     2        ASSIGN                                                   !2, <true>
    6     3        INIT_FCALL                                               'fopen'
          4        SEND_VAL                                                 'php%3A%2F%2Fstdout'
          5        SEND_VAL                                                 'w'
          6        DO_ICALL                                         $10     
          7        ASSIGN                                                   !3, $10
    7     8        ASSIGN                                                   !4, null
    8     9        ASSIGN                                                   !5, 'Foo+bar'
    9    10        NEW                                              $14     'stdClass'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !6, $14
   11    13        INIT_FCALL                                               'var_dump'
         14        FETCH_DIM_R                                      ~17     !0, 1
         15        SEND_VAL                                                 ~17
         16        DO_ICALL                                                 
   12    17        INIT_FCALL                                               'var_dump'
         18        FETCH_DIM_R                                      ~19     !1, 1
         19        SEND_VAL                                                 ~19
         20        DO_ICALL                                                 
   13    21        INIT_FCALL                                               'var_dump'
         22        FETCH_DIM_R                                      ~21     !2, 1
         23        SEND_VAL                                                 ~21
         24        DO_ICALL                                                 
   14    25        INIT_FCALL                                               'var_dump'
         26        FETCH_DIM_R                                      ~23     !3, 1
         27        SEND_VAL                                                 ~23
         28        DO_ICALL                                                 
   15    29        INIT_FCALL                                               'var_dump'
         30        FETCH_DIM_R                                      ~25     !4, 1
         31        SEND_VAL                                                 ~25
         32        DO_ICALL                                                 
   16    33        INIT_FCALL                                               'var_dump'
         34        FETCH_DIM_R                                      ~27     !5, 1
         35        SEND_VAL                                                 ~27
         36        DO_ICALL                                                 
   17    37        INIT_FCALL                                               'var_dump'
         38        FETCH_DIM_R                                      ~29     !6, 1
         39        SEND_VAL                                                 ~29
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.36 ms | 1439 KiB | 15 Q