3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [null, 0, '0', '', 'a', 'b,c,d', '1,2,3,4']; foreach ($tests as $test) { var_dump($test); echo " -> \n"; var_export(explode(',', $test)); echo "\n---\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/b55r5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $tests, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $3      !0, ->16
          2    > > FE_FETCH_R                                               $3, !1, ->16
    5     3    >   INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    6     6        ECHO                                                     '+-%3E+%0A'
    7     7        INIT_FCALL                                               'var_export'
          8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%2C'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
    8    14        ECHO                                                     '%0A---%0A'
    4    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $3
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.19 ms | 1395 KiB | 19 Q