3v4l.org

run code in 300+ PHP versions simultaneously
<?php function leSerialize() { for ($i = 0; $i < 1000; $i++) unserialize('O:8:"stdClass":0:{}'); } function leNew() { for ($i = 0; $i < 1000; $i++) new stdClass(); } function leClone() { $a = new stdClass(); for ($i = 0; $i < 1000; $i++) clone $a; } function leJson() { $json = '{}'; for ($i = 0; $i < 1000; $i++) json_decode($json); } function leReflection() { $class = new ReflectionClass('stdClass'); for ($i = 0; $i < 1000; $i++) $class->newInstance(); } leSerialize(); leNew(); leClone(); leJson(); leReflection();

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.0150.00018.72
8.3.30.0100.01018.96
8.3.20.0050.00320.20
8.3.10.0080.00023.66
8.3.00.0000.00820.81
8.2.170.0100.01022.96
8.2.160.0140.00320.35
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00820.89
8.2.110.0050.00522.25
8.2.100.0040.00819.51
8.2.90.0080.00018.94
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0000.01017.80
8.2.50.0030.00618.07
8.2.40.0060.00319.88
8.2.30.0080.00018.23
8.2.20.0000.00917.75
8.2.10.0080.00018.14
8.2.00.0040.00417.62
8.1.270.0030.00623.92
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.82
8.1.230.0000.01219.01
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0030.00717.10
8.1.190.0090.00017.22
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0040.00421.89
8.1.150.0000.00818.59
8.1.140.0030.00517.34
8.1.130.0060.00317.89
8.1.120.0030.00617.36
8.1.110.0040.00417.45
8.1.100.0040.00417.46
8.1.90.0040.00417.45
8.1.80.0050.00317.29
8.1.70.0030.00617.34
8.1.60.0000.00917.61
8.1.50.0040.00417.51
8.1.40.0040.00717.44
8.1.30.0000.00817.71
8.1.20.0040.00417.67
8.1.10.0030.00617.50
8.1.00.0060.00317.42
8.0.300.0050.00318.77
8.0.290.0040.00417.18
8.0.280.0000.00718.40
8.0.270.0030.00517.13
8.0.260.0050.00317.21
8.0.250.0000.00716.96
8.0.240.0040.00417.00
8.0.230.0000.00717.02
8.0.220.0050.00316.88
8.0.210.0040.00416.89
8.0.200.0040.00416.94
8.0.190.0000.00816.89
8.0.180.0000.00816.92
8.0.170.0030.00616.98
8.0.160.0070.00016.97
8.0.150.0000.00716.76
8.0.140.0080.00316.77
8.0.130.0030.00313.27
8.0.120.0050.00316.88
8.0.110.0000.00816.83
8.0.100.0000.00816.82
8.0.90.0050.00316.78
8.0.80.0070.01016.79
8.0.70.0030.00516.77
8.0.60.0040.00416.92
8.0.50.0000.00816.87
8.0.30.0090.01017.18
8.0.20.0120.00717.40
8.0.10.0000.00817.02
8.0.00.0110.00916.68
7.4.330.0030.00315.09
7.4.320.0030.00316.47
7.4.300.0000.00716.66
7.4.290.0030.00616.57
7.4.280.0030.00516.55
7.4.270.0000.00816.52
7.4.260.0000.00916.50
7.4.250.0030.00616.62
7.4.240.0040.00516.56
7.4.230.0040.00416.54
7.4.220.0030.01316.66
7.4.210.0070.01116.52
7.4.200.0040.00416.40
7.4.190.0000.00816.45
7.4.160.0190.00616.56
7.4.150.0100.01017.40
7.4.140.0150.01017.86
7.4.130.0090.00916.43
7.4.120.0130.00516.64
7.4.110.0070.01016.45
7.4.100.0170.00316.46
7.4.90.0150.00316.50
7.4.80.0090.00919.39
7.4.70.0160.00816.46
7.4.60.0100.01016.40
7.4.50.0050.00516.53
7.4.40.0060.01216.41
7.4.30.0080.01316.53
7.4.00.0080.01115.00
7.3.330.0000.00613.34
7.3.320.0030.00313.31
7.3.310.0000.00816.45
7.3.300.0000.00816.30
7.3.290.0110.00816.33
7.3.280.0030.01816.31
7.3.270.0080.01117.40
7.3.260.0090.00916.41
7.3.250.0100.00816.46
7.3.240.0140.00416.48
7.3.230.0100.00716.39
7.3.210.0110.00716.49
7.3.200.0060.01219.39
7.3.190.0100.01316.45
7.3.180.0090.01216.61
7.3.170.0110.01116.65
7.3.160.0130.00316.50
7.3.120.0030.01014.80
7.2.330.0100.01016.67
7.2.320.0120.00616.68
7.2.310.0110.01116.67
7.2.300.0140.00416.51
7.2.290.0130.00716.58
7.2.00.0130.00619.60
7.1.100.0100.00718.13
7.1.70.0000.00917.28
7.1.60.0100.01619.46
7.1.50.0060.01117.03
7.1.00.0030.07722.30
7.0.200.0000.00916.72
7.0.140.0030.07321.92
7.0.80.0200.07320.04
7.0.70.0170.04319.98
7.0.60.0730.07719.99
7.0.50.0700.05720.34
7.0.40.0130.06720.05
7.0.30.0070.05320.19
7.0.20.0030.05320.13
7.0.10.0030.04320.10
7.0.00.0100.07020.11
5.6.280.0000.07720.80
5.6.230.0030.09020.66
5.6.220.0030.04720.66
5.6.210.0070.08320.61
5.6.200.0170.08021.02
5.6.190.0030.09020.95
5.6.180.0100.08721.12
5.6.170.0100.04721.06
5.6.160.0070.08021.14
5.6.150.0170.04721.03
5.6.140.0070.06721.02
5.6.130.0100.08021.02
5.6.120.0130.07721.12
5.6.110.0100.08021.02
5.6.100.0130.06321.00
5.6.90.0100.08721.07
5.6.80.0030.08320.53
5.6.70.0130.07320.34
5.6.60.0100.07320.43
5.6.50.0070.08020.43
5.6.40.0130.05020.47
5.6.30.0100.05020.42
5.6.20.0130.08020.41
5.6.10.0070.08020.37
5.6.00.0070.06320.30
5.5.370.0030.08720.36
5.5.360.0030.07320.36
5.5.350.0000.08720.45
5.5.340.0000.08020.79
5.5.330.0130.07320.84
5.5.320.0100.08020.92
5.5.310.0030.08320.84
5.5.300.0030.08320.87
5.5.290.0070.09020.89
5.5.280.0030.08320.80
5.5.270.0100.08320.89
5.5.260.0070.06320.83
5.5.250.0000.05020.68
5.5.240.0200.06720.13
5.5.230.0100.05320.28
5.5.220.0100.06020.14
5.5.210.0130.07020.21
5.5.200.0070.06320.25
5.5.190.0070.05320.04
5.5.180.0030.08020.27
5.5.160.0030.07320.19
5.5.150.0070.04720.13
5.5.140.0100.07720.23
5.5.130.0030.08320.21
5.5.120.0030.08320.23
5.5.110.0100.07320.16
5.5.100.0100.07720.08
5.5.90.0100.05020.05
5.5.80.0070.04020.18
5.5.70.0000.05320.07
5.5.60.0070.07720.01
5.5.50.0070.05019.98
5.5.40.0070.05320.16
5.5.30.0100.07020.14
5.5.20.0170.07320.08
5.5.10.0070.06720.03
5.5.00.0030.08020.03
5.4.450.0200.06319.46
5.4.440.0070.08319.38
5.4.430.0100.04719.36
5.4.420.0130.05019.37
5.4.410.0070.04319.24
5.4.400.0000.07319.21
5.4.390.0070.07018.85
5.4.380.0030.08019.14
5.4.370.0030.08719.09
5.4.360.0100.07019.09
5.4.350.0070.08319.13
5.4.340.0130.07319.12
5.4.320.0030.05019.03
5.4.310.0130.07019.16
5.4.300.0100.07319.22
5.4.290.0070.05019.09
5.4.280.0030.07319.25
5.4.270.0100.05719.07
5.4.260.0030.07719.04
5.4.250.0030.07718.86
5.4.240.0070.07719.12
5.4.230.0070.08319.04
5.4.220.0030.08319.11
5.4.210.0100.07719.04
5.4.200.0070.06719.08
5.4.190.0070.08019.02
5.4.180.0030.06719.20
5.4.170.0070.07719.13
5.4.160.0070.07319.14
5.4.150.0030.08319.07
5.4.140.0100.07316.46
5.4.130.0070.06716.50
5.4.120.0170.05716.41
5.4.110.0070.07316.48
5.4.100.0100.06716.42
5.4.90.0070.07716.39
5.4.80.0030.07016.36
5.4.70.0170.06316.47
5.4.60.0070.05316.37
5.4.50.0070.05316.44
5.4.40.0000.08016.40
5.4.30.0070.08016.44
5.4.20.0070.07716.44
5.4.10.0100.07016.36
5.4.00.0100.05015.80
5.3.290.0070.05714.66
5.3.280.0070.08014.61
5.3.270.0100.07314.76
5.3.260.0070.07714.57
5.3.250.0100.07714.76
5.3.240.0070.07314.57
5.3.230.0100.06314.59
5.3.220.0100.07714.53
5.3.210.0070.07714.71
5.3.200.0000.07714.51
5.3.190.0130.07314.52
5.3.180.0170.05014.61
5.3.170.0130.07014.64
5.3.160.0070.07314.50
5.3.150.0100.07714.56
5.3.140.0100.07314.59
5.3.130.0100.06014.48
5.3.120.0030.05014.51
5.3.110.0030.06314.55
5.3.100.0030.04014.07
5.3.90.0070.04714.17
5.3.80.0070.04013.96
5.3.70.0070.06714.02
5.3.60.0030.04014.03
5.3.50.0070.03713.89
5.3.40.0170.05013.98
5.3.30.0030.03713.94
5.3.20.0100.03313.61
5.3.10.0000.04713.79
5.3.00.0070.03313.54
5.2.170.0030.03313.41
5.2.160.0000.03313.41
5.2.150.0030.03713.41
5.2.140.0070.04313.41
5.2.130.0030.03313.41
5.2.120.0000.03313.41
5.2.110.0070.03013.41
5.2.100.0000.04313.41
5.2.90.0030.03013.41
5.2.80.0030.03013.41
5.2.70.0030.03313.41
5.2.60.0100.05013.41
5.2.50.0000.03713.41
5.2.40.0000.04713.41
5.2.30.0100.04013.41
5.2.20.0030.03013.41
5.2.10.0070.04713.41
5.2.00.0100.03313.41
5.1.60.0070.04313.41
5.1.50.0070.03713.41
5.1.40.0030.02713.41
5.1.30.0070.02313.41
5.1.20.0030.02713.41
5.1.10.0000.02713.41
5.1.00.0000.03013.41
5.0.50.0000.02713.41
5.0.40.0070.01713.41
5.0.30.0030.05313.41
5.0.20.0000.02313.41
5.0.10.0000.02313.41
5.0.00.0000.04313.41
4.4.90.0000.01713.41
4.4.80.0000.03313.41
4.4.70.0000.01713.41
4.4.60.0000.01713.41
4.4.50.0100.01013.41
4.4.40.0030.03313.41
4.4.30.0030.01313.41
4.4.20.0070.03313.41
4.4.10.0000.01713.41
4.4.00.0000.02713.41
4.3.110.0000.01713.41
4.3.100.0030.01313.41
4.3.90.0030.01313.41
4.3.80.0030.02713.41
4.3.70.0030.01313.41
4.3.60.0030.01313.41
4.3.50.0000.01713.41
4.3.40.0030.03713.41
4.3.30.0000.02013.41
4.3.20.0000.01713.41
4.3.10.0000.03013.41
4.3.00.0000.01713.41

preferences:
48.84 ms | 400 KiB | 5 Q