3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'hello form world. i am windows. i am linux '; $pieces = explode(".", $foo); for($i=0;$i<count($pieces);$i++){ var_dump($pieces[$i]); } $imp = implode(".", $pieces); echo $imp;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
Branch analysis from position: 8
filename:       /in/Of41c
function name:  (null)
number of ops:  23
compiled vars:  !0 = $foo, !1 = $pieces, !2 = $i, !3 = $imp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hello+form+world.+i+am+windows.+i+am+linux+'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->13
    6     8    >   INIT_FCALL                                               'var_dump'
          9        FETCH_DIM_R                                      ~8      !1, !2
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
    5    12        PRE_INC                                                  !2
         13    >   COUNT                                            ~11     !1
         14        IS_SMALLER                                               !2, ~11
         15      > JMPNZ                                                    ~12, ->8
   10    16    >   INIT_FCALL                                               'implode'
         17        SEND_VAL                                                 '.'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $13     
         20        ASSIGN                                                   !3, $13
   11    21        ECHO                                                     !3
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.67 ms | 1395 KiB | 19 Q