3v4l.org

run code in 300+ PHP versions simultaneously
<?php function NormalFunction($var1, $var2) { echo "Normalfunction called with $var1, $var2\n"; } class ABC { function ABC($var1, $var2) { echo "I was constructed with $var1, $var2\n"; } function Test($var1, $var2) { echo "My test function was called with $var1, $var2\n"; } } NormalFunction(3); $myobj = new ABC(4); $myobj->Test(5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jgVB
function name:  (null)
number of ops:  11
compiled vars:  !0 = $myobj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'normalfunction'
          1        SEND_VAL                                                 3
          2        DO_FCALL                                      0          
   19     3        NEW                                              $2      'ABC'
          4        SEND_VAL_EX                                              4
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   21     7        INIT_METHOD_CALL                                         !0, 'Test'
          8        SEND_VAL_EX                                              5
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function normalfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jgVB
function name:  NormalFunction
number of ops:  9
compiled vars:  !0 = $var1, !1 = $var2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ROPE_INIT                                     5  ~3      'Normalfunction+called+with+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '%2C+'
          5        ROPE_ADD                                      3  ~3      ~3, !1
          6        ROPE_END                                      4  ~2      ~3, '%0A'
          7        ECHO                                                     ~2
    5     8      > RETURN                                                   null

End of function normalfunction

Class ABC:
Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jgVB
function name:  ABC
number of ops:  9
compiled vars:  !0 = $var1, !1 = $var2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        ROPE_INIT                                     5  ~3      'I+was+constructed+with+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '%2C+'
          5        ROPE_ADD                                      3  ~3      ~3, !1
          6        ROPE_END                                      4  ~2      ~3, '%0A'
          7        ECHO                                                     ~2
   10     8      > RETURN                                                   null

End of function abc

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jgVB
function name:  Test
number of ops:  9
compiled vars:  !0 = $var1, !1 = $var2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   13     2        ROPE_INIT                                     5  ~3      'My+test+function+was+called+with+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '%2C+'
          5        ROPE_ADD                                      3  ~3      ~3, !1
          6        ROPE_END                                      4  ~2      ~3, '%0A'
          7        ECHO                                                     ~2
   14     8      > RETURN                                                   null

End of function test

End of class ABC.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.3 ms | 1011 KiB | 14 Q