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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.24 ms | 1396 KiB | 21 Q