3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Apple{ function __construct(string $name) { return "Hello " + $name; } } (new Apple(1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HImkK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'Apple'
          1        SEND_VAL_EX                                              1
          2        DO_FCALL                                      0          
          3        FREE                                                     $0
          4      > RETURN                                                   1

Class Apple:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HImkK
function name:  __construct
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ADD                                              ~1      'Hello+', !0
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function __construct

End of class Apple.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.46 ms | 1393 KiB | 13 Q