3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = bin2hex(random_bytes(32)); // SECRET function doSomething(string $secret) { throw new Exception("It failed :'("); } doSomething($secret);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4WAgA
function name:  (null)
number of ops:  11
compiled vars:  !0 = $secret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'bin2hex'
          1        INIT_FCALL                                               'random_bytes'
          2        SEND_VAL                                                 32
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   10     7        INIT_FCALL                                               'dosomething'
          8        SEND_VAR                                                 !0
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/4WAgA
function name:  doSomething
number of ops:  6
compiled vars:  !0 = $secret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        NEW                                              $1      'Exception'
          2        SEND_VAL_EX                                              'It+failed+%3A%27%28'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $1
    8     5*     > RETURN                                                   null

End of function dosomething

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.71 ms | 1397 KiB | 18 Q