3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<EOT { "translations": { "b" : "a" }, "pluralForm" :"nplurals=2; plural=(n != 1);" } EOT; echo get_class($string); echo json_decode($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cInH8
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A%09%22translations%22%3A+%7B%0A%09%22b%22+%3A+%22a%22%0A++%7D%2C%0A++%22pluralForm%22+%3A%22nplurals%3D2%3B+plural%3D%28n+%21%3D+1%29%3B%22%0A%7D'
   12     1        GET_CLASS                                        ~2      !0
          2        ECHO                                                     ~2
   13     3        INIT_FCALL                                               'json_decode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ECHO                                                     $3
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.7 ms | 1393 KiB | 15 Q