3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a['common'] = 123; $a['a1'] = array( 'common' => &$a['common'], 'elt1' => 11, 'elt2' => 12 ); $a['a2'] = array( 'common' => &$a['common'], 'elt1' => 21, 'elt2' => 22 ); $as = serialize($a); $a2 = unserialize($as); var_dump($a2['common']); var_dump($a2['a1']['common']); var_dump($a2['a2']['common']);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0120.00318.44
8.3.60.0150.00618.31
8.3.50.0070.00721.08
8.3.40.0070.00718.66
8.3.30.0110.00720.16
8.3.20.0000.00820.33
8.3.10.0080.00322.01
8.3.00.0000.00722.40
8.2.190.0070.01316.63
8.2.180.0070.00716.63
8.2.170.0150.00022.96
8.2.160.0060.00620.35
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0060.00319.63
8.2.110.0070.00322.10
8.2.100.0040.00719.26
8.2.90.0080.00019.04
8.2.80.0000.00719.28
8.2.70.0030.00617.63
8.2.60.0060.00317.92
8.2.50.0000.00818.07
8.2.40.0050.00318.22
8.2.30.0000.00817.96
8.2.20.0060.00317.56
8.2.10.0080.00017.65
8.2.00.0000.00817.71
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00423.86
8.1.230.0040.00819.15
8.1.220.0060.00617.79
8.1.210.0000.00818.77
8.1.200.0080.00517.35
8.1.190.0060.00317.51
8.1.180.0000.00918.80
8.1.170.0030.00518.50
8.1.160.0000.00722.16
8.1.150.0030.00518.65
8.1.140.0040.00417.38
8.1.130.0070.00017.79
8.1.120.0030.00317.47
8.1.110.0070.00017.31
8.1.100.0000.00817.43
8.1.90.0040.00417.45
8.1.80.0050.00317.39
8.1.70.0030.00317.40
8.1.60.0030.00617.54
8.1.50.0050.00217.48
8.1.40.0060.00317.39
8.1.30.0070.00017.63
8.1.20.0040.00417.55
8.1.10.0040.00417.43
8.1.00.0050.00317.41
8.0.300.0000.00818.77
8.0.290.0030.00617.05
8.0.280.0000.00818.41
8.0.270.0000.00817.13
8.0.260.0000.00716.86
8.0.250.0000.00616.95
8.0.240.0000.00716.90
8.0.230.0000.00816.97
8.0.220.0040.00416.93
8.0.210.0000.00716.86
8.0.200.0080.00016.97
8.0.190.0030.00316.87
8.0.180.0040.00416.91
8.0.170.0040.00416.80
8.0.160.0000.00716.94
8.0.150.0040.00416.91
8.0.140.0000.00716.84
8.0.130.0030.00313.34
8.0.120.0030.00616.77
8.0.110.0030.00516.81
8.0.100.0000.00716.82
8.0.90.0040.00416.98
8.0.80.0040.01416.92
8.0.70.0070.00016.98
8.0.60.0000.00716.72
8.0.50.0000.00716.87
8.0.30.0120.00917.05
8.0.20.0060.01317.40
8.0.10.0000.00717.00
8.0.00.0090.01116.65
7.4.330.0020.00215.00
7.4.320.0000.00616.56
7.4.300.0000.00616.57
7.4.290.0030.00316.54
7.4.280.0000.00816.54
7.4.270.0000.00816.48
7.4.260.0020.00516.45
7.4.250.0040.00416.45
7.4.240.0040.00416.43
7.4.230.0000.00716.28
7.4.220.0120.00916.58
7.4.210.0080.00716.63
7.4.200.0030.00316.33
7.4.190.0070.00016.71
7.4.160.0130.00316.25
7.4.150.0110.01417.40
7.4.140.0110.00817.86
7.4.130.0110.00616.57
7.4.120.0090.00716.49
7.4.110.0110.00816.67
7.4.100.0100.00716.78
7.4.90.0100.00716.43
7.4.80.0030.01519.39
7.4.70.0060.01216.50
7.4.60.0030.01416.45
7.4.50.0000.00816.70
7.4.40.0090.00622.77
7.4.30.0070.01016.64
7.4.00.0060.01014.95
7.3.330.0000.00613.14
7.3.320.0000.00513.15
7.3.310.0020.00516.12
7.3.300.0000.00716.29
7.3.290.0060.00716.34
7.3.280.0090.00816.30
7.3.270.0130.00617.40
7.3.260.0130.00416.68
7.3.250.0100.00916.49
7.3.240.0100.00716.59
7.3.230.0150.00316.67
7.3.210.0040.01216.50
7.3.200.0100.00719.39
7.3.190.0150.00316.50
7.3.180.0060.00916.45
7.3.170.0120.00416.45
7.3.160.0140.00716.51
7.3.120.0050.01014.68
7.3.110.0040.01114.60
7.3.100.0000.01214.70
7.3.90.0110.00414.88
7.3.80.0070.00715.03
7.3.70.0000.01414.84
7.3.60.0070.00714.88
7.3.50.0120.00314.73
7.3.40.0100.00714.77
7.3.30.0000.00914.50
7.3.20.0040.00416.68
7.3.10.0120.00316.68
7.3.00.0100.00016.65
7.2.330.0150.00316.68
7.2.320.0060.01016.39
7.2.310.0070.01416.30
7.2.300.0130.00316.73
7.2.290.0130.00616.53
7.2.250.0040.01215.26
7.2.240.0030.01615.12
7.2.230.0030.00914.93
7.2.220.0040.00815.11
7.2.210.0000.01515.25
7.2.200.0040.00814.71
7.2.190.0030.01014.90
7.2.180.0030.01015.06
7.2.170.0030.00615.06
7.2.00.0100.00719.52
7.1.330.0060.00915.82
7.1.320.0070.00715.83
7.1.310.0030.01315.72
7.1.300.0030.00715.86
7.1.290.0030.01015.77
7.1.280.0030.00815.77
7.1.270.0100.00315.88
7.1.260.0000.00815.86
7.1.100.0030.00518.21
7.1.70.0060.00317.15
7.1.60.0070.01719.29
7.1.50.0070.01716.93
7.1.00.0000.05722.54
7.0.200.0380.00614.80
7.0.140.0100.06722.00
7.0.60.0030.08021.68
7.0.50.0070.03717.88
7.0.40.0100.07020.04
7.0.30.0130.05320.30
7.0.20.0430.06020.17
7.0.10.0030.05720.16
7.0.00.0100.08020.00
5.6.280.0030.07321.04
5.6.210.0170.07720.71
5.6.200.0030.05018.10
5.6.190.0030.06320.37
5.6.180.0370.07320.59
5.6.170.0270.08020.45
5.6.160.0030.08020.50
5.6.150.0030.04018.13
5.6.140.0070.08018.11
5.6.130.0070.05018.22
5.6.120.0100.06020.99
5.6.110.0130.05721.13
5.6.100.0100.08020.98
5.6.90.0170.07721.00
5.6.80.0070.05020.35
5.5.350.0330.06720.46
5.5.340.0070.05317.96
5.5.330.0100.07320.28
5.5.320.0100.08720.56
5.5.310.0270.04720.30
5.5.300.0070.07318.02
5.5.290.0030.04317.91
5.5.280.0030.09020.68
5.5.270.0070.08320.79
5.5.260.0170.07320.76
5.5.250.0100.06720.61
5.5.240.0230.08020.16
5.4.450.1670.03719.45
5.4.440.1800.04319.46
5.4.430.1730.03019.56
5.4.420.1670.03719.25
5.4.410.1730.03019.13
5.4.400.1670.03319.08
5.4.390.2070.03318.88
5.4.380.1830.03319.08
5.4.370.1770.03719.08
5.4.360.1930.04019.08
5.4.350.1770.03719.24
5.4.340.1730.04719.22
5.4.320.1730.03019.14
5.4.310.1630.03719.06
5.4.300.1630.04019.09
5.4.290.1700.03319.23
5.4.280.1870.04018.91
5.4.270.1830.03319.23
5.4.260.1800.03319.08
5.4.250.2000.05019.07
5.4.240.1830.03718.82
5.4.230.0670.04018.80
5.4.220.0070.07319.08
5.4.210.0100.04718.90
5.4.200.0670.06319.07
5.4.190.1900.04718.77
5.4.180.1800.03718.88
5.4.170.1830.04319.07
5.4.160.1770.03319.21
5.4.150.1830.04719.20
5.4.140.1700.04016.16
5.4.130.1800.04716.25
5.4.120.1970.04316.26
5.4.110.1830.04316.09
5.4.100.1830.04316.39
5.4.90.0070.06016.46
5.4.80.0000.03716.48
5.4.70.0870.06016.05
5.4.60.1930.04016.40
5.4.50.1830.03016.04
5.4.40.1830.04316.47
5.4.30.1900.03716.20
5.4.20.1800.05016.36
5.4.10.1830.04716.16
5.4.00.1630.03015.77
5.3.290.1830.04714.60
5.3.280.1830.04714.64
5.3.270.1630.03714.62
5.3.260.1900.04714.54
5.3.250.1770.04314.52
5.3.240.1730.06014.71
5.3.230.1700.04714.45
5.3.220.1830.04714.43
5.3.210.1800.04714.41
5.3.200.1930.03714.40
5.3.190.1700.05014.43
5.3.180.1730.03314.50
5.3.170.1730.04714.44
5.3.160.1900.03714.55
5.3.150.1870.04014.44
5.3.140.1900.03714.40
5.3.130.1870.04314.64
5.3.120.1770.03714.38
5.3.110.1870.04014.43
5.3.100.1730.04313.97
5.3.90.1700.03713.86
5.3.80.2030.03313.97
5.3.70.2000.04713.87
5.3.60.1630.04014.10
5.3.50.1670.04014.00
5.3.40.1670.03713.82
5.3.30.1730.03713.77
5.3.20.0300.04713.64
5.3.10.0030.03313.51
5.3.00.0000.03713.50
5.2.170.0300.04011.20
5.2.160.1500.03311.31
5.2.150.1600.03311.02
5.2.140.1400.02711.22
5.2.130.1370.03311.16
5.2.120.1370.03011.17
5.2.110.1470.03011.04
5.2.100.1370.02710.95
5.2.90.1330.03011.05
5.2.80.1430.02311.18
5.2.70.1370.03010.94
5.2.60.1430.03010.89
5.2.50.1330.03011.09
5.2.40.1370.02711.01
5.2.30.0600.02310.81
5.2.20.0030.02710.79
5.2.10.0000.03010.77
5.2.00.0030.02710.69
5.1.60.0430.02310.01
5.1.50.1130.0279.98
5.1.40.1270.0279.86
5.1.30.1400.02710.34
5.1.20.1470.02710.27
5.1.10.0970.02310.05
5.1.00.1270.02710.23
5.0.50.0630.0278.48
5.0.40.0830.0308.52
5.0.30.0600.0338.16
5.0.20.0630.0208.32
5.0.10.0570.0178.07
5.0.00.0770.0478.14
4.4.90.0570.0177.85
4.4.80.0530.0277.85
4.4.70.0000.0337.85
4.4.60.0000.0237.85
4.4.50.0000.0207.85
4.4.40.0000.0237.85
4.4.30.0000.0177.85
4.4.20.0000.0207.85
4.4.10.0030.0137.85
4.4.00.0030.0277.85
4.3.110.0030.0137.85
4.3.100.0000.0177.85
4.3.90.0270.0177.85
4.3.80.0300.0237.85
4.3.70.0000.0177.85
4.3.60.0000.0137.85
4.3.50.0030.0137.85
4.3.40.0030.0237.85
4.3.30.0030.0137.85
4.3.20.0000.0177.85
4.3.10.0000.0177.85
4.3.00.0000.0137.85

preferences:
35.9 ms | 401 KiB | 5 Q