3v4l.org

run code in 500+ PHP versions simultaneously
<?php $foo = []; array_push($foo); var_export($foo); echo count($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NI1Qu
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        INIT_FCALL                                                   'array_push'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                                     
    4     4        INIT_FCALL                                                   'var_export'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                                     
    5     7        COUNT                                                ~4      !0
          8        ECHO                                                         ~4
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.09 ms | 2094 KiB | 15 Q