3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(string $a) {} // Calling internal function that uses standard ZPP try { random_bytes([]); } catch(TypeError $e) { echo $e->getMessage() . "\n"; } // Calling internal function that uses custom ZPP try { min(""); } catch(TypeError $e) { echo $e->getMessage() . "\n"; } // Calling user-land function try { foo([]); } catch(TypeError $e) { echo $e->getMessage() . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
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 = 42) Position 1 = 27
Branch analysis from position: 27
Found catch point at position: 22
Branch analysis from position: 22
2 jumps found. (Code = 107) Position 1 = 23, Position 2 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IRXq6
function name:  (null)
number of ops:  28
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'random_bytes'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                                 
          3      > JMP                                                      ->9
    8     4  E > > CATCH                                       last         'TypeError'
    9     5    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          6        DO_FCALL                                      0  $2      
          7        CONCAT                                           ~3      $2, '%0A'
          8        ECHO                                                     ~3
   14     9    >   INIT_FCALL                                               'min'
         10        SEND_VAL                                                 ''
         11        DO_ICALL                                                 
         12      > JMP                                                      ->18
   15    13  E > > CATCH                                       last         'TypeError'
   16    14    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         15        DO_FCALL                                      0  $5      
         16        CONCAT                                           ~6      $5, '%0A'
         17        ECHO                                                     ~6
   21    18    >   INIT_FCALL                                               'foo'
         19        SEND_VAL                                                 <array>
         20        DO_FCALL                                      0          
         21      > JMP                                                      ->27
   22    22  E > > CATCH                                       last         'TypeError'
   23    23    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         24        DO_FCALL                                      0  $8      
         25        CONCAT                                           ~9      $8, '%0A'
         26        ECHO                                                     ~9
   24    27    > > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IRXq6
function name:  foo
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.18 ms | 1018 KiB | 16 Q