3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(version_compare(PHP_VERSION, '-5.3.0') >= 0) { $a = json_decode('{"pageSize":50,"sortBy":32,"sortDesc":true,"filterPatterns":[],"colorPatterns":[]}', true); echo json_encode($a, 0 + (defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/6PVg9
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '-5.3.0'
          3        DO_ICALL                                         $1      
          4        IS_SMALLER_OR_EQUAL                                      0, $1
          5      > JMPZ                                                     ~2, ->21
    3     6    >   INIT_FCALL                                               'json_decode'
          7        SEND_VAL                                                 '%7B%22pageSize%22%3A50%2C%22sortBy%22%3A32%2C%22sortDesc%22%3Atrue%2C%22filterPatterns%22%3A%5B%5D%2C%22colorPatterns%22%3A%5B%5D%7D'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    4    11        INIT_FCALL                                               'json_encode'
         12        SEND_VAR                                                 !0
         13      > JMPZ                                                     <true>, ->16
         14    >   QM_ASSIGN                                        ~5      128
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~5      0
         17    >   ADD                                              ~6      0, ~5
         18        SEND_VAL                                                 ~6
         19        DO_ICALL                                         $7      
         20        ECHO                                                     $7
    5    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.64 ms | 1387 KiB | 19 Q