3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(string $t) { echo $t.PHP_EOL; } test('Hello!'); test((string) null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lpjcu
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 'Hello%21'
          2        DO_FCALL                                      0          
    8     3        INIT_FCALL                                               'test'
          4        CAST                                          6  ~1      null
          5        SEND_VAL                                                 ~1
          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/lpjcu
function name:  test
number of ops:  4
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        CONCAT                                           ~1      !0, '%0A'
          2        ECHO                                                     ~1
    5     3      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.17 ms | 1396 KiB | 15 Q