3v4l.org

run code in 300+ PHP versions simultaneously
<?php $csv = '3,6,7,8'; $new_csv = '['.$csv.']'; if(is_array($new_csv)){ echo 'true'; } else{ echo 'false' .PHP_EOL; } $new_array=explode(",",$csv); print_r($new_array); print_r($new_csv); echo $new_csv;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kYC0g
function name:  (null)
number of ops:  22
compiled vars:  !0 = $csv, !1 = $new_csv, !2 = $new_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '3%2C6%2C7%2C8'
    4     1        CONCAT                                           ~4      '%5B', !0
          2        CONCAT                                           ~5      ~4, '%5D'
          3        ASSIGN                                                   !1, ~5
    6     4        TYPE_CHECK                                  128          !1
          5      > JMPZ                                                     ~7, ->8
    7     6    >   ECHO                                                     'true'
    6     7      > JMP                                                      ->9
   10     8    >   ECHO                                                     'false%0A'
   13     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%2C'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
   15    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
   17    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   19    20        ECHO                                                     !1
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
301.05 ms | 1014 KiB | 15 Q