3v4l.org

run code in 500+ PHP versions simultaneously
<?php $spare = explode('-', '60-5000',2); print_r($spare); echo("No problems until now\n"); echo("=====================\n"); $parts = explode('-', '600', 2); echo("This is where the notice is generated:\n"); echo($parts[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LTr03
function name:  (null)
number of ops:  21
compiled vars:  !0 = $spare, !1 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '-'
          2        SEND_VAL                                                 '60-5000'
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    5     9        ECHO                                                     'No+problems+until+now%0A'
    6    10        ECHO                                                     '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A'
    8    11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '-'
         13        SEND_VAL                                                 '600'
         14        SEND_VAL                                                 2
         15        DO_ICALL                                         $5      
         16        ASSIGN                                                   !1, $5
    9    17        ECHO                                                     'This+is+where+the+notice+is+generated%3A%0A'
   10    18        FETCH_DIM_R                                      ~7      !1, 1
         19        ECHO                                                     ~7
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.46 ms | 2103 KiB | 13 Q