3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new ArrayObject([1, 2, 3]); foreach ($a as $key => &$value) { $value = $value + 10; } unset($value); var_dump($a);

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.1.110.0040.00417.45
8.1.100.0000.00817.46
8.1.90.0000.00717.39
8.1.80.0060.00317.48
8.1.70.0000.00717.41
8.1.60.0040.00417.48
8.1.50.0030.00617.55
8.1.40.0000.01117.51
8.1.30.0080.00017.51
8.1.20.0030.00517.57
8.1.10.0080.00017.56
8.1.00.0080.00417.39
8.0.240.0080.00016.97
8.0.230.0050.00216.88
8.0.220.0000.00716.84
8.0.210.0040.00416.87
8.0.200.0080.00016.89
8.0.190.0000.00716.99
8.0.180.0040.00416.86
8.0.170.0030.00517.02
8.0.160.0030.00616.83
8.0.150.0080.00016.89
8.0.140.0040.00416.82
8.0.130.0000.00513.38
8.0.120.0000.00816.94
8.0.110.0040.00416.77
8.0.100.0040.00416.82
8.0.90.0040.00417.00
8.0.80.0090.00617.00
8.0.70.0040.00416.91
8.0.60.0030.00316.82
8.0.50.0000.00716.80
8.0.30.0110.00817.09
8.0.20.0140.00517.40
8.0.10.0040.00417.07
8.0.00.0090.00917.05
7.4.300.0030.00316.58
7.4.290.0040.00416.48
7.4.280.0000.00716.48
7.4.270.0030.00716.56
7.4.260.0030.00316.61
7.4.250.0030.00316.53
7.4.240.0000.00716.63
7.4.230.0080.00016.56
7.4.220.0040.00416.64
7.4.210.0090.01116.44
7.4.200.0070.00016.54
7.4.160.0070.01016.27
7.4.140.0110.00917.86
7.4.130.0110.00516.43
7.4.120.0140.00716.48
7.4.110.0080.00816.48
7.4.100.0060.01116.51
7.4.90.0130.00416.39
7.4.80.0140.01119.39
7.4.70.0150.00716.50
7.4.60.0150.00416.58
7.4.50.0110.00416.55
7.4.40.0100.00716.48
7.4.00.0030.01414.88
7.3.330.0030.00313.13
7.3.320.0060.00013.17
7.3.310.0030.00316.30
7.3.300.0030.00316.24
7.3.290.0000.00716.20
7.3.280.0060.00916.28
7.3.260.0090.00716.41
7.3.240.0100.00616.36
7.3.230.0100.01616.53
7.3.210.0110.00816.65
7.3.200.0130.00316.32
7.3.190.0090.00616.23
7.3.180.0090.00916.20
7.3.170.0080.00816.57
7.3.160.0090.00616.27
7.3.120.0070.01214.66
7.3.110.0090.00714.59
7.3.100.0080.00614.79
7.3.90.0040.01014.75
7.3.80.0020.01214.60
7.3.70.0040.00914.76
7.3.60.0030.00814.74
7.3.50.0090.00614.72
7.3.40.0080.00514.72
7.3.30.0070.00814.79
7.3.20.0110.00516.64
7.3.10.0080.00616.67
7.3.00.0090.00016.72
7.2.330.0030.01516.50
7.2.320.0030.01516.63
7.2.310.0120.00916.44
7.2.300.0100.02016.70
7.2.290.0090.01216.56
7.2.250.0070.01015.13
7.2.240.0080.01015.24
7.2.230.0070.00714.99
7.2.220.0050.00815.01
7.2.210.0030.01215.21
7.2.200.0020.01414.92
7.2.190.0040.00715.04
7.2.180.0050.01214.82
7.2.170.0050.00715.01
7.2.60.0030.01016.78
7.2.40.1190.01018.06
7.2.30.0990.01017.83
7.2.20.1660.01018.00
7.2.10.0780.00717.53
7.2.00.0980.01118.03
7.1.330.0100.00415.62
7.1.320.0100.00515.80
7.1.310.0030.01015.59
7.1.300.0030.00915.75
7.1.290.0050.00815.78
7.1.280.0060.00615.69
7.1.270.0110.00515.63
7.1.260.0100.00515.55
7.1.200.0030.01015.85
7.1.160.0940.00816.66
7.1.150.1010.00816.53
7.1.140.1000.00817.01
7.1.130.0760.01016.50
7.1.120.0770.00916.62
7.1.110.0880.00816.35
7.1.100.0740.00816.31
7.1.90.1020.00716.30
7.1.80.1050.00716.06
7.1.70.0820.00815.16
7.1.60.1280.01733.21
7.1.50.1420.01533.02
7.1.40.1380.00932.49
7.1.30.1320.01532.63
7.1.20.1400.00832.57
7.1.10.1350.00814.61
7.1.00.0680.00814.85

preferences:
54.09 ms | 406 KiB | 5 Q