3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function Test(){ echo 'oki'; } public function Test_($x){ echo $x; } } $t1 = new Test(); $t2 = new Test(100);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/baJlM
function name:  (null)
number of ops:  8
compiled vars:  !0 = $t1, !1 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $2      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        NEW                                              $5      'Test'
          4        SEND_VAL_EX                                              100
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
          7      > RETURN                                                   1

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

End of function test

Function test_:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/baJlM
function name:  Test_
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        ECHO                                                     !0
          2      > RETURN                                                   null

End of function test_

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.03 ms | 1385 KiB | 13 Q