3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSomething(string $value) { try { $value / 32 * 1 . " test"; } catch(Throwable $e) { var_dump($e); } return $value; } doSomething("Hello");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PqZbq
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'dosomething'
          1        SEND_VAL                                                 'Hello'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PqZbq
function name:  doSomething
number of ops:  12
compiled vars:  !0 = $value, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    6     1        DIV                                              ~2      !0, 32
          2        MUL                                              ~3      ~2, 1
          3        CONCAT                                           ~4      ~3, '+test'
          4        FREE                                                     ~4
          5      > JMP                                                      ->10
    7     6  E > > CATCH                                       last         'Throwable'
    8     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   10    10    > > RETURN                                                   !0
   11    11*     > RETURN                                                   null

End of function dosomething

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.06 ms | 1397 KiB | 16 Q