3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{function __construct(){echo"Initiating one line class... <br />";}function __destruct(){echo"<br />Destroying the class...";}function testing(){echo"This is an function in the one line class. 5+5 = ".(5+5);}}$test=new Test();$test->testing();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KMf08
function name:  (null)
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3        INIT_METHOD_CALL                                         !0, 'testing'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KMf08
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   ECHO                                                     'Initiating+one+line+class...+%3Cbr+%2F%3E'
          1      > RETURN                                                   null

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KMf08
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   ECHO                                                     '%3Cbr+%2F%3EDestroying+the+class...'
          1      > RETURN                                                   null

End of function __destruct

Function testing:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KMf08
function name:  testing
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   ECHO                                                     'This+is+an+function+in+the+one+line+class.+5%2B5+%3D+10'
          1      > RETURN                                                   null

End of function testing

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.27 ms | 1394 KiB | 13 Q