3v4l.org

run code in 300+ PHP versions simultaneously
<?php $possible0 = explode(',', 'hello, world', -100); $possible1 = explode(',', 'hello, world', -1); $possible2 = explode(',', 'hello, world', 0); $possible3 = explode(',', 'hello, world', 1); $possible4 = explode(',', 'hello, world', 2); $possible5 = explode(',', 'hello, world', 3); $possible6 = explode(',', 'hello, world', 4); try { $impossible1 = explode('', '', -1); } catch (Throwable $impossible1) {} $traced = [$possible0, $possible1, $possible2, $possible3, $possible4, $possible5, $possible6, $impossible1]; /** @psalm-trace $traced */ var_dump($traced); return $traced;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 49
Branch analysis from position: 49
2 jumps found. (Code = 107) Position 1 = 50, Position 2 = -2
Branch analysis from position: 50
filename:       /in/0NKlW
function name:  (null)
number of ops:  64
compiled vars:  !0 = $possible0, !1 = $possible1, !2 = $possible2, !3 = $possible3, !4 = $possible4, !5 = $possible5, !6 = $possible6, !7 = $impossible1, !8 = $traced
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%2C'
          2        SEND_VAL                                                 'hello%2C+world'
          3        SEND_VAL                                                 -100
          4        DO_ICALL                                         $9      
          5        ASSIGN                                                   !0, $9
    4     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '%2C'
          8        SEND_VAL                                                 'hello%2C+world'
          9        SEND_VAL                                                 -1
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !1, $11
    5    12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '%2C'
         14        SEND_VAL                                                 'hello%2C+world'
         15        SEND_VAL                                                 0
         16        DO_ICALL                                         $13     
         17        ASSIGN                                                   !2, $13
    6    18        INIT_FCALL                                               'explode'
         19        SEND_VAL                                                 '%2C'
         20        SEND_VAL                                                 'hello%2C+world'
         21        SEND_VAL                                                 1
         22        DO_ICALL                                         $15     
         23        ASSIGN                                                   !3, $15
    7    24        INIT_FCALL                                               'explode'
         25        SEND_VAL                                                 '%2C'
         26        SEND_VAL                                                 'hello%2C+world'
         27        SEND_VAL                                                 2
         28        DO_ICALL                                         $17     
         29        ASSIGN                                                   !4, $17
    8    30        INIT_FCALL                                               'explode'
         31        SEND_VAL                                                 '%2C'
         32        SEND_VAL                                                 'hello%2C+world'
         33        SEND_VAL                                                 3
         34        DO_ICALL                                         $19     
         35        ASSIGN                                                   !5, $19
    9    36        INIT_FCALL                                               'explode'
         37        SEND_VAL                                                 '%2C'
         38        SEND_VAL                                                 'hello%2C+world'
         39        SEND_VAL                                                 4
         40        DO_ICALL                                         $21     
         41        ASSIGN                                                   !6, $21
   11    42        INIT_FCALL                                               'explode'
         43        SEND_VAL                                                 ''
         44        SEND_VAL                                                 ''
         45        SEND_VAL                                                 -1
         46        DO_ICALL                                         $23     
         47        ASSIGN                                                   !7, $23
         48      > JMP                                                      ->50
   12    49  E > > CATCH                                       last         'Throwable'
   14    50    >   INIT_ARRAY                                       ~25     !0
         51        ADD_ARRAY_ELEMENT                                ~25     !1
         52        ADD_ARRAY_ELEMENT                                ~25     !2
         53        ADD_ARRAY_ELEMENT                                ~25     !3
         54        ADD_ARRAY_ELEMENT                                ~25     !4
         55        ADD_ARRAY_ELEMENT                                ~25     !5
         56        ADD_ARRAY_ELEMENT                                ~25     !6
         57        ADD_ARRAY_ELEMENT                                ~25     !7
         58        ASSIGN                                                   !8, ~25
   18    59        INIT_FCALL                                               'var_dump'
         60        SEND_VAR                                                 !8
         61        DO_ICALL                                                 
   20    62      > RETURN                                                   !8
   21    63*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.52 ms | 1451 KiB | 15 Q