3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = json_encode('{"some":"json here"}'); print_r($test); echo 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/PDge8
function name:  (null)
number of ops:  20
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                                               'json_decode'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
    7    11        ECHO                                                     '%0A%0A'
   11    12        INIT_FCALL                                               'json_encode'
         13        SEND_VAL                                                 '%7B%22some%22%3A%22json+here%7D'
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !1, $6
   12    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.1 ms | 1399 KiB | 19 Q