3v4l.org

run code in 500+ PHP versions simultaneously
<?php $tests = [ 'true', null, '123', 123, json_encode('1/2'), json_encode('База данни грешка') ]; foreach ($tests as $test) { echo var_export(json_decode($test, true)) . "\n---\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 25
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/UJVrV
function name:  (null)
number of ops:  27
compiled vars:  !0 = $tests, !1 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                           ~2      'true'
          1        ADD_ARRAY_ELEMENT                                    ~2      null
    6     2        ADD_ARRAY_ELEMENT                                    ~2      '123'
    7     3        ADD_ARRAY_ELEMENT                                    ~2      123
    8     4        INIT_FCALL                                                   'json_encode'
          5        SEND_VAL                                                     '1%2F2'
          6        DO_ICALL                                             $3      
          7        ADD_ARRAY_ELEMENT                                    ~2      $3
    9     8        INIT_FCALL                                                   'json_encode'
          9        SEND_VAL                                                     '%D0%91%D0%B0%D0%B7%D0%B0+%D0%B4%D0%B0%D0%BD%D0%BD%D0%B8+%D0%B3%D1%80%D0%B5%D1%88%D0%BA%D0%B0'
         10        DO_ICALL                                             $4      
         11        ADD_ARRAY_ELEMENT                                    ~2      $4
    3    12        ASSIGN                                                       !0, ~2
   12    13      > FE_RESET_R                                           $6      !0, ->25
         14    > > FE_FETCH_R                                                   $6, !1, ->25
   13    15    >   INIT_FCALL                                                   'var_export'
         16        INIT_FCALL                                                   'json_decode'
         17        SEND_VAR                                                     !1
         18        SEND_VAL                                                     <true>
         19        DO_ICALL                                             $7      
         20        SEND_VAR                                                     $7
         21        DO_ICALL                                             $8      
         22        CONCAT                                               ~9      $8, '%0A---%0A'
         23        ECHO                                                         ~9
   12    24      > JMP                                                          ->14
         25    >   FE_FREE                                                      $6
   14    26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
147.08 ms | 2129 KiB | 16 Q