3v4l.org

run code in 300+ PHP versions simultaneously
<?php function barber($type) { echo "You wanted a $type haircut, no problem\n"; } call_user_func('barber', "mushroom"); call_user_func('barber', "shave"); call_user_func('woops', "poopy");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nf0Hu
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'barber'
          1        SEND_USER                                                'mushroom'
          2        DO_FCALL                                      0          
    7     3        INIT_FCALL                                               'barber'
          4        SEND_USER                                                'shave'
          5        DO_FCALL                                      0          
    8     6        INIT_USER_CALL                                1          'call_user_func', 'woops'
          7        SEND_USER                                                'poopy'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function barber:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nf0Hu
function name:  barber
number of ops:  6
compiled vars:  !0 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ROPE_INIT                                     3  ~2      'You+wanted+a+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '+haircut%2C+no+problem%0A'
          4        ECHO                                                     ~1
    5     5      > RETURN                                                   null

End of function barber

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.82 ms | 1397 KiB | 15 Q