3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mocky { public function __isset($value) { echo "Mocky::__isset()\n"; } public function __get($value) { echo "Mocky::__get()\n"; } } $array = []; var_dump(empty($array)); $array = new ArrayObject(); var_dump(empty($array)); $mocky = new Mocky(); var_dump(empty($mocky));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CiT5G
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $mocky
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_CV                                 ~3      !0
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                                 
   15     5        NEW                                              $5      'ArrayObject'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $5
   16     8        INIT_FCALL                                               'var_dump'
          9        ISSET_ISEMPTY_CV                                 ~8      !0
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
   18    12        NEW                                              $10     'Mocky'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $10
   19    15        INIT_FCALL                                               'var_dump'
         16        ISSET_ISEMPTY_CV                                 ~13     !1
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Class Mocky:
Function __isset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CiT5G
function name:  __isset
number of ops:  3
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ECHO                                                     'Mocky%3A%3A__isset%28%29%0A'
    6     2      > RETURN                                                   null

End of function __isset

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CiT5G
function name:  __get
number of ops:  3
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ECHO                                                     'Mocky%3A%3A__get%28%29%0A'
    9     2      > RETURN                                                   null

End of function __get

End of class Mocky.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.67 ms | 1396 KiB | 15 Q