3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function ($class_name) { echo "Need to include `{$class_name}` \n"; }); try { try { //throw new \RuntimeException('Error message'); } finally { echo 'Start finally block' . PHP_EOL; $foo = new Foo(); echo 'End finally block' . PHP_EOL; } } catch (\Exception $e) { echo $e->getMessage() . PHP_EOL; echo $e . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 6, Position 2 = 5
Branch analysis from position: 6
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 13
Branch analysis from position: 13
2 jumps found. (Code = 107) Position 1 = 14, Position 2 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T8sLF
function name:  (null)
number of ops:  21
compiled vars:  !0 = $foo, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FT8sLF%3A2%240'
    4     2        SEND_VAL                                                 ~2
          3        DO_ICALL                                                 
    9     4      > FAST_CALL                                                ->6
          5    > > JMP                                                      ->12
   11     6    >   ECHO                                                     'Start+finally+block%0A'
   13     7        NEW                                              $5      'Foo'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $5
   15    10        ECHO                                                     'End+finally+block%0A'
         11      > FAST_RET                                                 
         12    > > JMP                                                      ->20
   18    13  E > > CATCH                                       last         'Exception'
   19    14    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         15        DO_FCALL                                      0  $8      
         16        CONCAT                                           ~9      $8, '%0A'
         17        ECHO                                                     ~9
   20    18        CONCAT                                           ~10     !1, '%0A'
         19        ECHO                                                     ~10
   21    20    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FT8sLF%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T8sLF
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $class_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ROPE_INIT                                     3  ~2      'Need+to+include+%60'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%60+%0A'
          4        ECHO                                                     ~1
    4     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FT8sLF%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.03 ms | 1396 KiB | 15 Q