3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); try { function welcome(string $name) { echo 'Hello ' . $name; } } catch (Exception $e) { echo "Exception ". $e; } welcome(2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 2
Branch analysis from position: 2
2 jumps found. (Code = 107) Position 1 = 3, Position 2 = -2
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ClY2g
function name:  (null)
number of ops:  9
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_FUNCTION                                         'welcome'
    7     1      > JMP                                                      ->5
    8     2  E > > CATCH                                       last         'Exception'
    9     3    >   CONCAT                                           ~1      'Exception+', !0
          4        ECHO                                                     ~1
   11     5    >   INIT_FCALL_BY_NAME                                       'welcome'
          6        SEND_VAL_EX                                              2
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function %00welcome%2Fin%2FClY2g%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ClY2g
function name:  welcome
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        CONCAT                                           ~1      'Hello+', !0
          2        ECHO                                                     ~1
    7     3      > RETURN                                                   null

End of function %00welcome%2Fin%2FClY2g%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.97 ms | 1394 KiB | 13 Q