3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array('attention', 0, 'danger'); echo $result; echo "\58"; for ($t=0; $t<128; $t++) $result .= chr($t); echo "strlen = ".strlen($result)."\n"; echo "Result = ".$result."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/3FrTb
function name:  (null)
number of ops:  20
compiled vars:  !0 = $result, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ECHO                                                     !0
    6     2        ECHO                                                     '%058'
    8     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->10
          5    >   INIT_FCALL                                               'chr'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        ASSIGN_OP                                     8          !0, $4
          9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 128
         11      > JMPNZ                                                    ~7, ->5
   10    12    >   STRLEN                                           ~8      !0
         13        CONCAT                                           ~9      'strlen+%3D+', ~8
         14        CONCAT                                           ~10     ~9, '%0A'
         15        ECHO                                                     ~10
   11    16        CONCAT                                           ~11     'Result+%3D+', !0
         17        CONCAT                                           ~12     ~11, '%0A'
         18        ECHO                                                     ~12
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.22 ms | 1395 KiB | 15 Q