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($a['common']); var_dump($a['a1']['common']); var_dump($a['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.60.0070.01418.30
8.3.50.0120.00721.27
8.3.40.0140.00018.68
8.3.30.0070.01120.07
8.3.20.0030.00620.39
8.3.10.0070.00721.99
8.3.00.0030.00522.18
8.2.180.0060.00918.54
8.2.170.0090.00622.96
8.2.160.0030.01218.82
8.2.150.0040.00424.18
8.2.140.0130.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.67
8.2.110.0100.00020.38
8.2.100.0060.00617.72
8.2.90.0030.00619.22
8.2.80.0000.00819.30
8.2.70.0040.00417.61
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0050.00318.17
8.2.30.0050.00318.00
8.2.20.0040.00417.74
8.2.10.0000.00817.77
8.2.00.0080.00017.62
8.1.280.0000.01725.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.52
8.1.230.0070.00422.71
8.1.220.0000.01217.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0050.00317.43
8.1.180.0050.00320.25
8.1.170.0000.00818.44
8.1.160.0030.00322.17
8.1.150.0000.00918.59
8.1.140.0040.00417.36
8.1.130.0030.00317.77
8.1.120.0040.00417.39
8.1.110.0000.00717.44
8.1.100.0000.00817.36
8.1.90.0040.00417.44
8.1.80.0000.00817.32
8.1.70.0000.00717.32
8.1.60.0060.00317.61
8.1.50.0040.00417.45
8.1.40.0030.00617.48
8.1.30.0040.00417.65
8.1.20.0040.00417.59
8.1.10.0000.00717.43
8.1.00.0000.00817.38
8.0.300.0030.00318.77
8.0.290.0030.00317.04
8.0.280.0030.00318.32
8.0.270.0000.00717.33
8.0.260.0000.00716.73
8.0.250.0000.00816.99
8.0.240.0040.00416.97
8.0.230.0080.00016.94
8.0.220.0000.00716.90
8.0.210.0000.00716.81
8.0.200.0040.00416.87
8.0.190.0000.00716.86
8.0.180.0040.00416.83
8.0.170.0060.00316.95
8.0.160.0040.00416.81
8.0.150.0000.00716.91
8.0.140.0030.00316.91
8.0.130.0000.00513.31
8.0.120.0080.00016.77
8.0.110.0040.00417.00
8.0.100.0040.00416.77
8.0.90.0070.00016.78
8.0.80.0150.00016.93
8.0.70.0040.00416.77
8.0.60.0040.00416.95
8.0.50.0000.00716.91
8.0.30.0110.00817.11
8.0.20.0140.01217.40
8.0.10.0040.00417.05
8.0.00.0100.01216.91
7.4.330.0030.00315.00
7.4.320.0050.00216.55
7.4.300.0000.00616.38
7.4.290.0000.00716.38
7.4.280.0000.00816.45
7.4.270.0000.00716.47
7.4.260.0030.00316.36
7.4.250.0000.00816.33
7.4.240.0000.00716.52
7.4.230.0030.00316.61
7.4.220.0110.00716.54
7.4.210.0080.00816.52
7.4.200.0000.00716.22
7.4.190.0000.00716.37
7.4.160.0050.01116.52
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0140.00516.50
7.4.120.0080.00916.45
7.4.110.0130.00416.42
7.4.100.0130.01016.56
7.4.90.0120.00616.74
7.4.80.0070.01019.39
7.4.70.0100.01016.39
7.4.60.0030.01716.48
7.4.50.0050.00316.21
7.4.40.0090.00922.77
7.4.30.0100.00616.39
7.4.00.0120.00315.20
7.3.330.0030.00313.06
7.3.320.0060.00013.16
7.3.310.0030.00316.14
7.3.300.0000.00716.33
7.3.290.0160.00316.34
7.3.280.0050.01116.30
7.3.270.0110.00617.40
7.3.260.0140.00716.58
7.3.250.0130.00516.52
7.3.240.0110.00816.35
7.3.230.0080.00816.44
7.3.210.0100.00616.54
7.3.200.0090.00919.39
7.3.190.0170.00016.29
7.3.180.0070.01016.52
7.3.170.0080.00716.42
7.3.160.0150.00416.64
7.3.120.0030.01414.74
7.2.330.0070.01716.70
7.2.320.0110.01116.69
7.2.310.0090.01516.80
7.2.300.0090.00616.73
7.2.290.0090.01016.47
7.2.60.0060.00616.86
7.2.50.0090.00317.03
7.1.200.0000.00815.80
7.1.70.0060.00317.15
7.1.60.0060.01819.29
7.1.50.0030.01716.60
7.1.00.0000.04322.49
7.0.200.0160.00714.89
7.0.140.0000.07722.16
7.0.60.0100.08720.00
7.0.50.0000.05317.66
7.0.40.0130.08320.19
7.0.30.0470.06320.16
7.0.20.0270.04020.30
7.0.10.0000.05320.19
7.0.00.0070.04020.20
5.6.280.0070.07021.04
5.6.210.0070.07320.61
5.6.200.0100.08318.08
5.6.190.0130.07320.28
5.6.180.0330.08020.43
5.6.170.0230.08020.40
5.6.160.0070.08720.54
5.6.150.0030.04318.07
5.6.140.0030.03718.16
5.6.130.0130.04018.11
5.6.120.0030.05021.00
5.6.110.0100.08321.04
5.6.100.0070.06320.93
5.6.90.0070.08021.13
5.6.80.0200.04320.41
5.6.70.4130.03320.41
5.5.350.0130.08020.34
5.5.340.0100.07717.96
5.5.330.0070.08320.21
5.5.320.0170.05020.32
5.5.310.0270.07720.24
5.5.300.0100.03318.02
5.5.290.0170.08017.91
5.5.280.0070.08020.73
5.5.270.0070.08320.88
5.5.260.0100.07720.76
5.5.250.0070.07720.68
5.5.240.0300.07320.35
5.4.450.0630.06319.47
5.4.440.0870.05719.52
5.4.430.0270.06019.60
5.4.420.0170.05319.63
5.4.410.0270.05019.26
5.4.400.0430.07018.83
5.4.390.1070.06018.68
5.4.380.0270.05018.61
5.4.370.0200.04718.62
5.4.360.0200.04718.49
5.4.350.0040.04011.97
5.4.340.0060.03611.97
5.4.320.0100.04312.46
5.4.310.0070.04112.45
5.4.300.0080.04512.46
5.4.290.0100.03612.45
5.4.280.0040.03612.35
5.4.270.0050.03612.35
5.4.260.0090.04012.35
5.4.250.0130.06718.80
5.4.240.0100.06019.00
5.4.230.0070.05318.71
5.4.220.0070.05718.75
5.4.210.0130.05018.95
5.4.200.0000.05718.62
5.4.190.0200.06318.93
5.4.180.0070.06018.73
5.4.170.0130.05318.83
5.4.160.0100.04718.67
5.4.150.0130.04718.60
5.4.140.0030.07316.50
5.4.130.0100.06316.30
5.4.120.0070.06716.24
5.4.110.0100.05016.46
5.4.100.0070.05716.25
5.4.90.0070.05016.19
5.4.80.0070.04716.49
5.4.70.0230.03316.51
5.4.60.0070.05016.29
5.4.50.0070.05016.45
5.4.40.0170.04316.20
5.4.30.0070.04716.19
5.4.20.0070.05716.43
5.4.10.0100.07016.28
5.4.00.0070.05015.97
5.3.290.0070.04712.80
5.3.280.0200.05014.60
5.3.270.0070.05314.53
5.3.260.0030.08014.66
5.3.250.0230.03314.76
5.3.240.0030.05314.60
5.3.230.0070.06014.47
5.3.220.0000.06014.57
5.3.210.0070.05714.66
5.3.200.0130.04314.44
5.3.190.0070.05314.58
5.3.180.0030.05314.40
5.3.170.0100.05314.45
5.3.160.0070.05314.56
5.3.150.0130.04314.34
5.3.140.0070.05314.43
5.3.130.0030.07314.46
5.3.120.0100.05314.57
5.3.110.0070.07314.39
5.3.100.0130.04314.08
5.3.90.0030.06314.04
5.3.80.0130.06313.80
5.3.70.0100.06714.04
5.3.60.0130.05714.02
5.3.50.0170.04013.96
5.3.40.0030.05714.05
5.3.30.0070.04713.80
5.3.20.0000.06013.85
5.3.10.0070.06013.69
5.3.00.0100.05313.53
5.2.170.0030.04311.16
5.2.160.0030.06011.07
5.2.150.0100.05711.15
5.2.140.0000.04711.16
5.2.130.0000.04710.88
5.2.120.0000.04311.12
5.2.110.0030.05711.22
5.2.100.0100.05310.93
5.2.90.0070.05310.86
5.2.80.0100.03311.02
5.2.70.0070.06011.11
5.2.60.0030.04310.98
5.2.50.0030.04711.04
5.2.40.0130.03310.93
5.2.30.0070.04311.07
5.2.20.0070.05310.98
5.2.10.0000.04710.96
5.2.00.0070.04010.88
5.1.60.0030.04310.03
5.1.50.0030.05010.02
5.1.40.0070.0339.91
5.1.30.0070.04010.50
5.1.20.0130.03010.45
5.1.10.0100.0309.98
5.1.00.0070.04010.16
5.0.50.0030.0308.48
5.0.40.0030.0378.43
5.0.30.0070.0508.18
5.0.20.0000.0378.02
5.0.10.0030.0408.14
5.0.00.0070.0538.12
4.4.90.0030.0237.13
4.4.80.0030.0207.13
4.4.70.0070.0277.13
4.4.60.0030.0207.13
4.4.50.0000.0237.13
4.4.40.0000.0377.13
4.4.30.0100.0177.13
4.4.20.0030.0207.13
4.4.10.0070.0177.13
4.4.00.0070.0307.13
4.3.110.0100.0177.13
4.3.100.0070.0237.13
4.3.90.0000.0307.13
4.3.80.0000.0337.13
4.3.70.0030.0207.13
4.3.60.0030.0277.13
4.3.50.0070.0177.13
4.3.40.0000.0377.13
4.3.30.0000.0237.13
4.3.20.0000.0237.13
4.3.10.0000.0237.13
4.3.00.0030.0206.71

preferences:
39.98 ms | 401 KiB | 5 Q