3v4l.org

run code in 300+ PHP versions simultaneously
<?php function iHateLegacy($value) { var_dump(true); return true; } class FooBar { function shitForBrains() { iHateLegacy('fooBar'); } } $cl = new FooBar; $cl->shitForBrains();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s0qvZ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $cl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'FooBar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_METHOD_CALL                                         !0, 'shitForBrains'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function ihatelegacy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s0qvZ
function name:  iHateLegacy
number of ops:  6
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    6     4      > RETURN                                                   <true>
    7     5*     > RETURN                                                   null

End of function ihatelegacy

Class FooBar:
Function shitforbrains:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s0qvZ
function name:  shitForBrains
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'ihatelegacy'
          1        SEND_VAL                                                 'fooBar'
          2        DO_FCALL                                      0          
   14     3      > RETURN                                                   null

End of function shitforbrains

End of class FooBar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.06 ms | 1000 KiB | 15 Q