3v4l.org

run code in 300+ PHP versions simultaneously
<?php $typeHandlers = [ 's', 'd','u', 'c', 'o', 'x', 'X', 'b', 'g', 'G', 'e', 'E', 'f', 'F', '+d', ]; $testNum = 22.12314123124; foreach($typeHandlers as $type){ printf("Type $type : %".$type."\n", $testNum); } $testArr = [ +1231241.12312312312, -1231241241.22231, 0.00000000000000000000001, 'stringy', ]; foreach($typeHandlers as $t){ printf("Type $t : %".$t." \n %".$t." \n %".$t." \n %".$t." \n", $testArr[0],$testArr[1], $testArr[2], $testArr[3]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 41
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 41
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
Branch analysis from position: 14
filename:       /in/GXGPn
function name:  (null)
number of ops:  43
compiled vars:  !0 = $typeHandlers, !1 = $testNum, !2 = $type, !3 = $testArr, !4 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 22.1231
    9     2      > FE_RESET_R                                       $7      !0, ->14
          3    > > FE_FETCH_R                                               $7, !2, ->14
   10     4    >   INIT_FCALL                                               'printf'
          5        ROPE_INIT                                     3  ~9      'Type+'
          6        ROPE_ADD                                      1  ~9      ~9, !2
          7        ROPE_END                                      2  ~8      ~9, '+%3A++%25'
          8        CONCAT                                           ~11     ~8, !2
          9        CONCAT                                           ~12     ~11, '%0A'
         10        SEND_VAL                                                 ~12
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    9    13      > JMP                                                      ->3
         14    >   FE_FREE                                                  $7
   14    15        ASSIGN                                                   !3, <array>
   21    16      > FE_RESET_R                                       $15     !0, ->41
         17    > > FE_FETCH_R                                               $15, !4, ->41
   22    18    >   INIT_FCALL                                               'printf'
         19        ROPE_INIT                                     3  ~17     'Type+'
         20        ROPE_ADD                                      1  ~17     ~17, !4
         21        ROPE_END                                      2  ~16     ~17, '+%3A++%25'
         22        CONCAT                                           ~19     ~16, !4
         23        CONCAT                                           ~20     ~19, '+%0A+%25'
         24        CONCAT                                           ~21     ~20, !4
         25        CONCAT                                           ~22     ~21, '+%0A+%25'
         26        CONCAT                                           ~23     ~22, !4
         27        CONCAT                                           ~24     ~23, '+%0A+%25'
         28        CONCAT                                           ~25     ~24, !4
         29        CONCAT                                           ~26     ~25, '+%0A'
         30        SEND_VAL                                                 ~26
   23    31        FETCH_DIM_R                                      ~27     !3, 0
         32        SEND_VAL                                                 ~27
         33        FETCH_DIM_R                                      ~28     !3, 1
         34        SEND_VAL                                                 ~28
         35        FETCH_DIM_R                                      ~29     !3, 2
         36        SEND_VAL                                                 ~29
         37        FETCH_DIM_R                                      ~30     !3, 3
         38        SEND_VAL                                                 ~30
   22    39        DO_ICALL                                                 
   21    40      > JMP                                                      ->17
         41    >   FE_FREE                                                  $15
   24    42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.47 ms | 1441 KiB | 14 Q