3v4l.org

run code in 300+ PHP versions simultaneously
<?php $authors = array( “Steinbeck”, “Kafka”, “Tolkien”, “Dickens” ); echo array_unshift($authors, "Michal Faber", "Robert Harris"); "<br /> <br />";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uIlJe
function name:  (null)
number of ops:  16
compiled vars:  !0 = $authors
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~1      '%E2%80%9CSteinbeck%E2%80%9D'
          1        INIT_ARRAY                                       ~2      ~1
          2        FETCH_CONSTANT                                   ~3      '%E2%80%9CKafka%E2%80%9D'
          3        ADD_ARRAY_ELEMENT                                ~2      ~3
          4        FETCH_CONSTANT                                   ~4      '%E2%80%9CTolkien%E2%80%9D'
          5        ADD_ARRAY_ELEMENT                                ~2      ~4
          6        FETCH_CONSTANT                                   ~5      '%E2%80%9CDickens%E2%80%9D'
          7        ADD_ARRAY_ELEMENT                                ~2      ~5
          8        ASSIGN                                                   !0, ~2
    4     9        INIT_FCALL                                               'array_unshift'
         10        SEND_REF                                                 !0
         11        SEND_VAL                                                 'Michal+Faber'
         12        SEND_VAL                                                 'Robert+Harris'
         13        DO_ICALL                                         $7      
         14        ECHO                                                     $7
    5    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.32 ms | 1394 KiB | 15 Q