3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = ['foo' => 'bar', 'foobar' => 'barfoo']; foreach ($arr as $key => &$value) { $value = strrev($value); } var_dump($arr);

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.5.30.0070.01019.40
8.5.20.0120.00619.34
8.5.10.0100.00719.99
8.5.00.0100.01019.93
8.4.180.0160.00619.37
8.4.170.0100.01323.82
8.4.160.0100.01123.20
8.4.150.0090.00516.78
8.4.140.0080.01317.20
8.4.130.0080.01218.48
8.4.120.0110.01024.21
8.4.110.0040.00718.87
8.4.100.0090.01018.96
8.4.90.0090.01220.37
8.4.80.0060.00318.71
8.4.70.0090.01319.04
8.4.60.0160.00518.59
8.4.50.0110.00820.44
8.4.40.0150.00619.80
8.4.30.0060.00918.81
8.4.20.0130.00719.64
8.4.10.0100.01023.74
8.3.300.0090.01218.95
8.3.290.0130.00820.74
8.3.280.0120.00718.34
8.3.270.0130.00716.45
8.3.260.0130.00616.72
8.3.250.0100.00818.96
8.3.240.0110.00817.11
8.3.230.0150.00318.45
8.3.220.0110.00718.95
8.3.210.0080.01018.39
8.3.200.0110.00916.59
8.3.190.0030.00417.30
8.3.180.0040.00418.92
8.3.170.0130.00716.67
8.3.160.0110.00717.20
8.3.150.0110.00716.71
8.3.140.0100.00718.56
8.3.130.0060.00316.47
8.3.120.0000.00820.61
8.3.110.0090.00020.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0050.00518.18
8.3.70.0070.00716.63
8.3.60.0120.00316.50
8.3.50.0170.00320.22
8.3.40.0110.00420.09
8.3.30.0090.00618.69
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.300.0120.00720.43
8.2.290.0090.01020.57
8.2.280.0150.00318.34
8.2.270.0060.00318.39
8.2.260.0040.00416.33
8.2.250.0150.00316.55
8.2.240.0000.00817.04
8.2.230.0000.00822.58
8.2.220.0080.00037.54
8.2.210.0090.00926.77
8.2.200.0040.00416.38
8.2.190.0110.00416.63
8.2.180.0130.00725.92
8.2.170.0070.00718.82
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00419.97
8.2.110.0090.00020.38
8.2.100.0060.00320.39
8.1.340.0110.00817.61
8.1.330.0110.00821.80
8.1.320.0120.00915.84
8.1.310.0160.00017.82
8.1.300.0030.01318.18
8.1.290.0040.00430.84
8.1.280.0140.00325.92
8.1.270.0060.00922.08
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00418.68
8.1.230.0070.00718.63
5.6.400.0050.00516.77

preferences:
87.6 ms | 852 KiB | 5 Q