3v4l.org

run code in 300+ PHP versions simultaneously
<?php function main() { $b = 12; $a = array('abc'=>65,'bcd'=>66,'cde'=>67,'def'=>68,'efg'=>69,'quux'=>&$b); $x = serialize($a); for ($i = 0; $i < 1000000; $i++) { $y = unserialize($x); } var_dump($x); var_dump($y); } main();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/coqfJ
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'main'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function main:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
Branch analysis from position: 14
filename:       /in/coqfJ
function name:  main
number of ops:  28
compiled vars:  !0 = $b, !1 = $a, !2 = $x, !3 = $i, !4 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 12
    5     1        INIT_ARRAY                                       ~6      65, 'abc'
          2        ADD_ARRAY_ELEMENT                                ~6      66, 'bcd'
          3        ADD_ARRAY_ELEMENT                                ~6      67, 'cde'
          4        ADD_ARRAY_ELEMENT                                ~6      68, 'def'
          5        ADD_ARRAY_ELEMENT                                ~6      69, 'efg'
          6        ADD_ARRAY_ELEMENT                                ~6      !0, 'quux'
          7        ASSIGN                                                   !1, ~6
    6     8        INIT_FCALL                                               'serialize'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    7    12        ASSIGN                                                   !3, 0
         13      > JMP                                                      ->19
    8    14    >   INIT_FCALL                                               'unserialize'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !4, $11
    7    18        PRE_INC                                                  !3
         19    >   IS_SMALLER                                               !3, 1000000
         20      > JMPNZ                                                    ~14, ->14
   10    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
   11    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !4
         26        DO_ICALL                                                 
   12    27      > RETURN                                                   null

End of function main

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.73 ms | 1399 KiB | 20 Q