3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', true); error_reporting(E_ALL); $a = array( __LINE__, function () { echo 'tagada'; }, 'bar' ); echo serialize($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jnv5U
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'error_reporting'
          5        SEND_VAL                                                 32767
          6        DO_ICALL                                                 
    7     7        INIT_ARRAY                                       ~3      7
    8     8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fjnv5U%3A8%240'
          9        ADD_ARRAY_ELEMENT                                ~3      ~4
    9    10        ADD_ARRAY_ELEMENT                                ~3      'bar'
    6    11        ASSIGN                                                   !0, ~3
   12    12        INIT_FCALL                                               'serialize'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fjnv5U%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jnv5U
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'tagada'
          1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fjnv5U%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.69 ms | 1395 KiB | 19 Q