3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a' => 12, 'b' => 'foo', 'caution' => array('blubb' => array('bar' => 'baz'))); $start = microtime(true); $obj1 = json_decode(json_encode($arr), false); $end = microtime(true) - $start; echo "Run: " . $end . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lacE5
function name:  (null)
number of ops:  22
compiled vars:  !0 = $arr, !1 = $start, !2 = $obj1, !3 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'json_decode'
          6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9        SEND_VAR                                                 $7
         10        SEND_VAL                                                 <false>
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    6    13        INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $10     
         16        SUB                                              ~11     $10, !1
         17        ASSIGN                                                   !3, ~11
    8    18        CONCAT                                           ~13     'Run%3A+', !3
         19        CONCAT                                           ~14     ~13, '%0A'
         20        ECHO                                                     ~14
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.29 ms | 1395 KiB | 19 Q