3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testing() { return new StdClass(); } (testing())->property = 'test'; testing()->property = 'test'; function testing2() { return array(); } // testing2()['tes'] = true;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hiqMc
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'testing'
          1        DO_FCALL                                      0  $0      
          2        SEPARATE                                         $0      $0
          3        ASSIGN_OBJ                                               $0, 'property'
          4        OP_DATA                                                  'test'
    8     5        INIT_FCALL                                               'testing'
          6        DO_FCALL                                      0  $2      
          7        SEPARATE                                         $2      $2
          8        ASSIGN_OBJ                                               $2, 'property'
          9        OP_DATA                                                  'test'
   16    10      > RETURN                                                   1

Function testing:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hiqMc
function name:  testing
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $0      'StdClass'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
    5     3*     > RETURN                                                   null

End of function testing

Function testing2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hiqMc
function name:  testing2
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   <array>
   14     1*     > RETURN                                                   null

End of function testing2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.06 ms | 1398 KiB | 15 Q