3v4l.org

run code in 300+ PHP versions simultaneously
<?php $callbacks = array(); // Setup with lots of callbacks for ($i = 0; $i < 10000; $i++) { $callbacks[] = function () use ($i) { return $i; }; } foreach (array_reverse($callbacks) as $callback) { echo $callback() .PHP_EOL; }

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.0150.01526.61
8.3.50.0230.01326.17
8.3.40.0180.01426.48
8.3.30.0230.01026.80
8.3.20.0150.00327.91
8.3.10.0100.00330.20
8.3.00.0150.00030.61
8.2.180.0360.00624.13
8.2.170.0140.01826.39
8.2.160.0150.01228.88
8.2.150.0140.01426.70
8.2.140.0130.00726.29
8.2.130.0090.00928.05
8.2.120.0230.00025.38
8.2.110.0070.01030.29
8.2.100.0210.00625.59
8.2.90.0110.00326.98
8.2.80.0070.00725.55
8.2.70.0100.00725.38
8.2.60.0090.00625.66
8.2.50.0100.00725.13
8.2.40.0160.00025.78
8.2.30.0170.00025.84
8.2.20.0070.00725.60
8.2.10.0030.01425.46
8.2.00.0090.00625.46
8.1.280.0310.01425.92
8.1.270.0150.00430.07
8.1.260.0180.00030.08
8.1.250.0090.00629.51
8.1.240.0190.00031.91
8.1.230.0220.00427.10
8.1.220.0040.01325.54
8.1.210.0120.00325.36
8.1.200.0090.00925.13
8.1.190.0000.01525.53
8.1.180.0030.01026.67
8.1.170.0160.00026.59
8.1.160.0110.00430.08
8.1.150.0140.00326.58
8.1.140.0140.00025.57
8.1.130.0070.00725.96
8.1.120.0040.01125.42
8.1.110.0040.01125.59
8.1.100.0100.00325.51
8.1.90.0110.00425.45
8.1.80.0100.00325.52
8.1.70.0070.00725.42
8.1.60.0100.01025.66
8.1.50.0130.00325.58
8.1.40.0070.00725.48
8.1.30.0120.00325.54
8.1.20.0060.01025.56
8.1.10.0150.00325.69
8.1.00.0130.00325.55
8.0.300.0110.00324.41
8.0.290.0060.00924.55
8.0.280.0140.00025.86
8.0.270.0100.00324.80
8.0.260.0130.00024.23
8.0.250.0070.00724.42
8.0.240.0000.01424.35
8.0.230.0030.01024.48
8.0.220.0100.00324.44
8.0.210.0080.00624.37
8.0.200.0080.00624.52
8.0.190.0110.01124.48
8.0.180.0130.00324.52
8.0.170.0100.00624.51
8.0.160.0080.00824.56
8.0.150.0060.01024.39
8.0.140.0040.01124.33
8.0.130.0110.00420.99
8.0.120.0100.00724.30
8.0.110.0060.00924.27
8.0.100.0030.01024.44
8.0.90.0070.00724.31
8.0.80.0360.01324.14
8.0.70.0100.00324.19
8.0.60.0030.01024.23
8.0.50.0100.00324.21
8.0.30.0320.02724.60
8.0.20.0500.02224.53
8.0.10.0120.00424.55
8.0.00.0460.02624.34
7.4.330.0070.00323.06
7.4.320.0100.00323.98
7.4.300.0030.01023.99
7.4.290.0090.00624.06
7.4.280.0060.00924.08
7.4.270.0160.00624.00
7.4.260.0160.00324.00
7.4.250.0110.00424.05
7.4.240.0090.00623.99
7.4.230.0030.01024.18
7.4.220.0230.02323.94
7.4.210.0270.03323.94
7.4.200.0100.00323.82
7.4.190.0070.00724.05
7.4.160.0320.02624.27
7.4.150.0370.02624.08
7.4.140.0390.02524.16
7.4.130.0390.03924.18
7.4.120.0450.01924.01
7.4.110.0220.02924.03
7.4.100.0440.02524.11
7.4.90.0240.02824.09
7.4.80.0350.02524.14
7.4.70.0310.02423.98
7.4.60.0300.03323.99
7.4.50.0130.00724.18
7.4.40.0100.02123.89
7.4.30.0640.03724.16
7.4.00.0290.00322.68
7.3.330.0030.01020.73
7.3.320.0120.00020.71
7.3.310.0030.01023.59
7.3.300.0040.01123.71
7.3.290.0250.02223.55
7.3.280.0220.02623.78
7.3.270.0420.02023.80
7.3.260.0230.03323.63
7.3.250.0530.01923.94
7.3.240.0400.01524.14
7.3.230.0610.02323.75
7.3.210.0450.01124.13
7.3.200.0220.03524.10
7.3.190.0340.02523.82
7.3.180.0230.02723.72
7.3.170.0310.02023.72
7.3.160.0200.02424.08
7.3.120.0190.00922.20
7.2.330.0520.01624.41
7.2.320.0350.02024.54
7.2.310.0320.02824.18
7.2.300.0300.04424.52
7.2.290.0260.02224.50
7.2.60.0130.01324.84
7.2.00.0090.01227.81
7.1.200.0070.02023.89
7.1.100.0040.01626.57
7.1.70.0070.00725.19
7.1.60.0090.00925.62
7.1.50.0420.00825.43
7.0.200.0070.01125.10

preferences:
55.16 ms | 401 KiB | 5 Q