3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = null; if (version_compare(PHP_VERSION, '5.3.3') >= 0) { $options |= JSON_NUMERIC_CHECK; } if (version_compare(PHP_VERSION, '5.4.0') >= 0) { $options |= JSON_UNESCAPED_UNICODE; } $data = json_encode(array('ая' => '19'), $options); var_dump($data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/efqka
function name:  (null)
number of ops:  24
compiled vars:  !0 = $options, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        INIT_FCALL                                               'version_compare'
          2        SEND_VAL                                                 '8.0.0'
          3        SEND_VAL                                                 '5.3.3'
          4        DO_ICALL                                         $3      
          5        IS_SMALLER_OR_EQUAL                                      0, $3
          6      > JMPZ                                                     ~4, ->8
    5     7    >   ASSIGN_OP                                     9          !0, 32
    7     8    >   INIT_FCALL                                               'version_compare'
          9        SEND_VAL                                                 '8.0.0'
         10        SEND_VAL                                                 '5.4.0'
         11        DO_ICALL                                         $6      
         12        IS_SMALLER_OR_EQUAL                                      0, $6
         13      > JMPZ                                                     ~7, ->15
    8    14    >   ASSIGN_OP                                     9          !0, 256
   10    15    >   INIT_FCALL                                               'json_encode'
         16        SEND_VAL                                                 <array>
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !1, $9
   11    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.4 ms | 1395 KiB | 19 Q