3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { echo "this is a test function\n"; } function testParam($param = "test with param") { echo "this is a test function.." . $param . "\n"; } test(); testParam(); testParam('Good test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kvm9p
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0          
   12     2        INIT_FCALL                                               'testparam'
          3        DO_FCALL                                      0          
   13     4        INIT_FCALL                                               'testparam'
          5        SEND_VAL                                                 'Good+test'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kvm9p
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'this+is+a+test+function%0A'
    6     1      > RETURN                                                   null

End of function test

Function testparam:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kvm9p
function name:  testParam
number of ops:  5
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                        !0      'test+with+param'
    9     1        CONCAT                                           ~1      'this+is+a+test+function..', !0
          2        CONCAT                                           ~2      ~1, '%0A'
          3        ECHO                                                     ~2
   10     4      > RETURN                                                   null

End of function testparam

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.22 ms | 1397 KiB | 16 Q