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']); var_dump($as);

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.40.0110.00618.58
8.3.30.0070.00720.29
8.3.20.0070.00020.34
8.3.10.0080.00021.95
8.3.00.0040.00422.46
8.2.170.0100.00722.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0100.00326.16
8.2.120.0030.00619.54
8.2.110.0000.01120.52
8.2.100.0120.00017.78
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0050.00317.80
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0050.00318.05
8.2.20.0090.00017.57
8.2.10.0110.00017.82
8.2.00.0040.00417.71
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00323.97
8.1.230.0110.00017.57
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0060.00317.53
8.1.180.0020.00520.20
8.1.170.0000.01218.48
8.1.160.0030.00322.13
8.1.150.0000.00718.60
8.1.140.0070.00017.39
8.1.130.0030.00317.78
8.1.120.0030.00317.43
8.1.110.0080.00017.35
8.1.100.0070.00017.41
8.1.90.0020.00517.41
8.1.80.0000.00717.44
8.1.70.0030.00317.32
8.1.60.0040.00417.57
8.1.50.0050.00217.48
8.1.40.0000.00817.32
8.1.30.0000.00717.60
8.1.20.0040.00417.59
8.1.10.0000.00817.48
8.1.00.0080.00017.46
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0050.00318.28
8.0.270.0030.00317.16
8.0.260.0000.00616.89
8.0.250.0000.00717.01
8.0.240.0000.00816.85
8.0.230.0000.00716.98
8.0.220.0000.00716.96
8.0.210.0030.00316.88
8.0.200.0040.00416.86
8.0.190.0030.00316.97
8.0.180.0000.00716.93
8.0.170.0040.00416.84
8.0.160.0040.00416.79
8.0.150.0050.00216.75
8.0.140.0030.00316.70
8.0.130.0030.00313.42
8.0.120.0040.00416.86
8.0.110.0000.00716.82
8.0.100.0000.00716.71
8.0.90.0050.00216.86
8.0.80.0040.01116.86
8.0.70.0040.00416.76
8.0.60.0000.00716.90
8.0.50.0050.00316.92
8.0.30.0110.00817.00
8.0.20.0120.00717.40
8.0.10.0040.00416.84
8.0.00.0120.00816.60
7.4.330.0030.00315.00
7.4.320.0000.00616.58
7.4.300.0000.00616.47
7.4.290.0030.00316.48
7.4.280.0070.00016.50
7.4.270.0060.00016.45
7.4.260.0040.00416.50
7.4.250.0000.00816.38
7.4.240.0040.00416.51
7.4.230.0020.00516.49
7.4.220.0040.01516.58
7.4.210.0010.01316.47
7.4.200.0000.00716.56
7.4.190.0070.00016.73
7.4.160.0070.01416.61
7.4.150.0040.01317.40
7.4.140.0130.00517.86
7.4.130.0110.00616.56
7.4.120.0120.00516.44
7.4.110.0000.01816.35
7.4.100.0090.00916.41
7.4.90.0060.01116.32
7.4.80.0090.00619.39
7.4.70.0110.00716.30
7.4.60.0120.00616.52
7.4.50.0000.00816.63
7.4.40.0040.01522.77
7.4.30.0040.01616.57
7.4.00.0100.00614.85
7.3.330.0020.00213.05
7.3.320.0050.00013.01
7.3.310.0040.00416.24
7.3.300.0030.00316.20
7.3.290.0040.01016.31
7.3.280.0070.00916.28
7.3.270.0080.00817.40
7.3.260.0150.00316.42
7.3.250.0100.00616.42
7.3.240.0140.00316.36
7.3.230.0140.00416.61
7.3.210.0060.01216.37
7.3.200.0030.01319.39
7.3.190.0140.00716.39
7.3.180.0110.00516.45
7.3.170.0070.01116.47
7.3.160.0130.00916.47
7.3.120.0040.01115.03
7.3.110.0050.01214.84
7.3.100.0070.00914.62
7.3.90.0060.01114.87
7.3.80.0050.00614.87
7.3.70.0050.00714.75
7.3.60.0050.00914.68
7.3.50.0060.01014.82
7.3.40.0050.00914.92
7.3.30.0070.00714.87
7.3.20.0050.00616.74
7.3.10.0020.01116.57
7.3.00.0100.00416.49
7.2.330.0090.00916.64
7.2.320.0100.01016.65
7.2.310.0130.00316.67
7.2.300.0170.00416.41
7.2.290.0110.00716.36
7.2.250.0090.00915.06
7.2.240.0090.01014.83
7.2.230.0090.00915.12
7.2.220.0050.01115.00
7.2.210.0050.01115.12
7.2.200.0070.00915.19
7.2.190.0080.00715.00
7.2.180.0060.00814.99
7.2.170.0110.00514.89
7.2.00.0100.01619.56
7.1.330.0070.00815.83
7.1.320.0070.00515.78
7.1.310.0050.01015.85
7.1.300.0050.01015.65
7.1.290.0070.00715.91
7.1.280.0090.00315.71
7.1.270.0030.00815.63
7.1.260.0020.01015.78
7.1.100.0060.00617.77
7.1.70.0000.01016.95
7.1.60.0000.01919.29
7.1.50.0060.01817.00
7.1.00.0030.05022.36
7.0.200.0160.01014.85
7.0.140.0070.07021.99
7.0.60.0070.07320.02
7.0.50.0030.05017.90
7.0.40.0070.07319.98
7.0.30.0330.08020.18
7.0.20.0200.04720.20
7.0.10.0370.07320.00
7.0.00.0100.08320.03
5.6.280.0070.06721.09
5.6.210.0170.08020.72
5.6.200.0030.09318.14
5.6.190.0100.08320.38
5.6.180.0170.07720.60
5.6.170.0270.08720.54
5.6.160.0030.06020.52
5.6.150.0070.04318.20
5.6.140.0030.05718.22
5.6.130.0100.04718.18
5.6.120.0070.08720.96
5.6.110.0100.08320.97
5.6.100.0030.04320.99
5.6.90.0130.08021.06
5.6.80.0030.03720.50
5.6.70.0170.08020.50
5.5.350.0130.07720.44
5.5.340.0100.08017.95
5.5.330.0130.08020.43
5.5.320.0230.05020.51
5.5.310.0230.04020.32
5.5.300.0070.04717.91
5.5.290.0070.05018.02
5.5.280.0070.08020.88
5.5.270.0130.03720.72
5.5.260.0070.05720.72
5.5.250.0100.08720.50
5.5.240.0130.06320.15
5.4.450.0700.05319.52
5.4.440.0430.07019.60
5.4.430.0730.06319.52
5.4.420.0570.06319.60
5.4.410.0830.05719.50
5.4.400.0430.06318.75
5.4.390.0500.06718.72
5.4.380.0230.05318.74
5.4.370.0200.05018.67
5.4.360.0170.05018.57
5.4.350.0090.03211.98
5.4.340.0100.04411.97
5.4.320.0050.04112.46
5.4.310.0090.03512.45
5.4.300.0090.03612.45
5.4.290.0060.03812.45
5.4.280.0090.04112.35
5.4.270.0100.03512.35
5.4.260.0090.03512.35
5.4.250.0030.05318.99
5.4.240.0070.05018.89
5.4.230.0030.05318.61
5.4.220.0030.05719.00
5.4.210.0030.05319.01
5.4.200.0100.04718.94
5.4.190.0070.05718.73
5.4.180.0170.04018.61
5.4.170.0100.06718.85
5.4.160.0030.05718.97
5.4.150.0070.05718.84
5.4.140.0100.04716.53
5.4.130.0100.05016.28
5.4.120.0070.05316.50
5.4.110.0030.05316.38
5.4.100.0000.05316.41
5.4.90.0030.05016.46
5.4.80.0170.04016.48
5.4.70.0130.04316.36
5.4.60.0100.05016.18
5.4.50.0100.04716.30
5.4.40.0100.04716.49
5.4.30.0070.05016.34
5.4.20.0070.05016.37
5.4.10.0130.05716.14
5.4.00.0100.04315.98
5.3.290.0070.03812.80
5.3.280.0030.05314.45
5.3.270.0000.06014.65
5.3.260.0000.06314.60
5.3.250.0170.07014.60
5.3.240.0100.04714.66
5.3.230.0000.05714.61
5.3.220.0070.05014.44
5.3.210.0070.05314.59
5.3.200.0130.07014.49
5.3.190.0130.04314.58
5.3.180.0100.05014.43
5.3.170.0030.05714.40
5.3.160.0000.05714.34
5.3.150.0070.05014.61
5.3.140.0030.05314.56
5.3.130.0130.04714.59
5.3.120.0070.05314.32
5.3.110.0130.05714.25
5.3.100.0070.05013.73
5.3.90.0030.06714.04
5.3.80.0100.04714.04
5.3.70.0200.04713.73
5.3.60.0070.04714.04
5.3.50.0070.04713.65
5.3.40.0100.04713.97
5.3.30.0070.04713.90
5.3.20.0030.05013.85
5.3.10.0070.05013.69
5.3.00.0030.05013.48
5.2.170.0100.03711.06
5.2.160.0030.04011.03
5.2.150.0070.04010.92
5.2.140.0100.03711.24
5.2.130.0030.04011.20
5.2.120.0030.04011.04
5.2.110.0030.04011.04
5.2.100.0000.04011.12
5.2.90.0000.04310.86
5.2.80.0070.04010.86
5.2.70.0070.04310.92
5.2.60.0030.04310.96
5.2.50.0070.03710.93
5.2.40.0070.03710.90
5.2.30.0000.04310.81
5.2.20.0100.03310.97
5.2.10.0070.05310.95
5.2.00.0070.03710.89
5.1.60.0000.0379.93
5.1.50.0030.03310.04
5.1.40.0130.03010.21
5.1.30.0070.03710.34
5.1.20.0100.03010.33
5.1.10.0000.04710.13
5.1.00.0070.0339.95
5.0.50.0030.0278.57
5.0.40.0070.0238.26
5.0.30.0070.0378.38
5.0.20.0000.0308.02
5.0.10.0030.0278.13
5.0.00.0070.0378.30
4.4.90.0030.0236.06
4.4.80.0070.0206.06
4.4.70.0030.0206.06
4.4.60.0070.0176.06
4.4.50.0030.0206.06
4.4.40.0030.0336.06
4.4.30.0070.0176.06
4.4.20.0000.0236.06
4.4.10.0000.0236.06
4.4.00.0070.0306.06
4.3.110.0070.0176.06
4.3.100.0000.0276.06
4.3.90.0000.0206.06
4.3.80.0000.0336.06
4.3.70.0070.0276.06
4.3.60.0030.0206.06
4.3.50.0000.0276.06
4.3.40.0030.0306.06
4.3.30.0000.0236.06
4.3.20.0030.0206.06
4.3.10.0030.0206.06
4.3.00.0170.0176.71

preferences:
43.38 ms | 400 KiB | 5 Q