3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dateTime = new \DateTime(); echo json_encode($dateTime);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/8Yh46
function name:  (null)
number of ops:  8
compiled vars:  !0 = $dateTime
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $1      :-6
         1        DO_FCALL                                      0          
         2        ASSIGN                                                   !0, $1
   5     3        INIT_FCALL                                               'json_encode'
         4        SEND_VAR                                                 !0
         5        DO_ICALL                                         $4      
         6        ECHO                                                     $4
         7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0