3v4l.org

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

Function barber:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ipgQ3
function name:  barber
number of ops:  6
compiled vars:  !0 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     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
    6     5      > RETURN                                                   null

End of function barber

Function barber2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ipgQ3
function name:  barber2
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'You+wanted+a+haircut%2C+no+problem%0A'
   11     1      > RETURN                                                   null

End of function barber2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.55 ms | 1398 KiB | 17 Q