3v4l.org

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

Class Test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HldsG
function name:  test
number of ops:  9
compiled vars:  !0 = $test, !1 = $test2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    7     8      > RETURN                                                   null

End of function test

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.96 ms | 1395 KiB | 15 Q