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]); echo $pieces[$i].'<br>'; $pieces[$i] = ucfirst($pieces[$i]); echo $pieces[$i].'<br>'; } $imp = implode(".", $pieces); echo $imp;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 8
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 8
Branch analysis from position: 28
Branch analysis from position: 8
filename:       /in/afhlu
function name:  (null)
number of ops:  35
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                                                      ->25
    6     8    >   INIT_FCALL                                               'var_dump'
          9        FETCH_DIM_R                                      ~8      !1, !2
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
    7    12        FETCH_DIM_R                                      ~10     !1, !2
         13        CONCAT                                           ~11     ~10, '%3Cbr%3E'
         14        ECHO                                                     ~11
    8    15        INIT_FCALL                                               'ucfirst'
         16        FETCH_DIM_R                                      ~13     !1, !2
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                         $14     
         19        ASSIGN_DIM                                               !1, !2
         20        OP_DATA                                                  $14
    9    21        FETCH_DIM_R                                      ~15     !1, !2
         22        CONCAT                                           ~16     ~15, '%3Cbr%3E'
         23        ECHO                                                     ~16
    5    24        PRE_INC                                                  !2
         25    >   COUNT                                            ~18     !1
         26        IS_SMALLER                                               !2, ~18
         27      > JMPNZ                                                    ~19, ->8
   12    28    >   INIT_FCALL                                               'implode'
         29        SEND_VAL                                                 '.'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                         $20     
         32        ASSIGN                                                   !3, $20
   13    33        ECHO                                                     !3
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.85 ms | 1396 KiB | 21 Q