3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'test' => 1, 'test2' => 2, ]; var_dump(sizeof($a)); class Test { private $test = 1; private $test2 = 2; } $b = new Test(); var_dump(sizeof($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uSnik
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'var_dump'
          2        COUNT                                            ~3      !0
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                                 
   17     5        NEW                                              $5      'Test'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   19     8        INIT_FCALL                                               'var_dump'
          9        COUNT                                            ~8      !1
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.52 ms | 1394 KiB | 15 Q