3v4l.org

run code in 300+ PHP versions simultaneously
<?php $actors = array("actors" => array( array("name" => "Brad Pitt", "description" => "William Bradley 'Brad' Pitt is an American actor and film producer. He has received a Golden Globe Award, a Screen Actors Guild Award, and three Academy Award nominations in acting categories", "dob" => "December 18, 1963", "country" => "United States", "height" => "1.80 m", "spouse" => "Jennifer Aniston", "children" => "Shiloh Nouvel Jolie-Pitt, Maddox Chivan Jolie-Pitt", "image" => "http://microblogging.wingnity.com/JSONParsingTutorial/brad.jpg" )) ); echo $out = json_encode($actors);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lE3YP
function name:  (null)
number of ops:  7
compiled vars:  !0 = $actors, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                           ~4      !1, $3
          5        ECHO                                                     ~4
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.63 ms | 998 KiB | 14 Q