3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handle_the_string(string $string): void { echo $string . PHP_EOL; } echo strtolower('hello') . PHP_EOL; echo strtolower(null) . PHP_EOL; handle_the_string('world'); handle_the_string(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZDvTd
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'strtolower'
          1        SEND_VAL                                                 'hello'
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      $0, '%0A'
          4        ECHO                                                     ~1
    8     5        INIT_FCALL                                               'strtolower'
          6        SEND_VAL                                                 null
          7        DO_ICALL                                         $2      
          8        CONCAT                                           ~3      $2, '%0A'
          9        ECHO                                                     ~3
    9    10        INIT_FCALL                                               'handle_the_string'
         11        SEND_VAL                                                 'world'
         12        DO_FCALL                                      0          
   10    13        INIT_FCALL                                               'handle_the_string'
         14        SEND_VAL                                                 null
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Function handle_the_string:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZDvTd
function name:  handle_the_string
number of ops:  4
compiled vars:  !0 = $string
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 handle_the_string

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.51 ms | 1012 KiB | 16 Q