3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[]'; for ($i = 0; $i < 50000; $i++) $string = '[' . $string . ']'; $result = json_decode($string); var_dump($result !== 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
Branch analysis from position: 3
filename:       /in/g2iR7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $i, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%5D'
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->7
    6     3    >   CONCAT                                           ~5      '%5B', !0
          4        CONCAT                                           ~6      ~5, '%5D'
          5        ASSIGN                                                   !0, ~6
    5     6        PRE_INC                                                  !1
          7    >   IS_SMALLER                                               !1, 50000
          8      > JMPNZ                                                    ~9, ->3
    8     9    >   INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !2, $10
    9    13        INIT_FCALL                                               'var_dump'
         14        IS_NOT_IDENTICAL                                 ~12     !2, 0
         15        SEND_VAL                                                 ~12
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.53 ms | 1395 KiB | 17 Q