3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = json_encode('{"some":"json here"}'); print_r($test); print_r(json_decode($test)); echo ' '; $tes2t = json_encode('{"some":"json here}'); print_r($tes2t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oUXj3
function name:  (null)
number of ops:  22
compiled vars:  !0 = $test, !1 = $tes2t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        SEND_VAL                                                 '%7B%22some%22%3A%22json+here%22%7D'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
    7    13        ECHO                                                     '%0A%0A'
   11    14        INIT_FCALL                                               'json_encode'
         15        SEND_VAL                                                 '%7B%22some%22%3A%22json+here%7D'
         16        DO_ICALL                                         $7      
         17        ASSIGN                                                   !1, $7
   12    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.33 ms | 1386 KiB | 19 Q