3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestField{ public function __construct(){ echo "TestField constructed"; } } $field = 'Test'; $fieldfield = $field . "Field"; new $fieldfield();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ys6HL
function name:  (null)
number of ops:  8
compiled vars:  !0 = $field, !1 = $fieldfield
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'Test'
    9     1        CONCAT                                           ~3      !0, 'Field'
          2        ASSIGN                                                   !1, ~3
   10     3        FETCH_CLASS                                   0  $5      !1
          4        NEW                                              $6      $5
          5        DO_FCALL                                      0          
          6        FREE                                                     $6
          7      > RETURN                                                   1

Class TestField:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ys6HL
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'TestField+constructed'
    6     1      > RETURN                                                   null

End of function __construct

End of class TestField.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.6 ms | 1393 KiB | 13 Q