3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello World!"; $len = strlen($str); $out = ''; for($i = 0; $i < $len; $i++){ $out .= ord($str[$i]); } echo $out;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/H4Mpk
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str, !1 = $len, !2 = $out, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+World%21'
    4     1        STRLEN                                           ~5      !0
          2        ASSIGN                                                   !1, ~5
    5     3        ASSIGN                                                   !2, ''
    7     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->12
    8     6    >   INIT_FCALL                                               'ord'
          7        FETCH_DIM_R                                      ~9      !0, !3
          8        SEND_VAL                                                 ~9
          9        DO_ICALL                                         $10     
         10        ASSIGN_OP                                     8          !2, $10
    7    11        PRE_INC                                                  !3
         12    >   IS_SMALLER                                               !3, !1
         13      > JMPNZ                                                    ~13, ->6
   10    14    >   ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.23 ms | 1395 KiB | 15 Q