3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($v) { return $v + 1; } $foo = function ($v) { return $v + 1; }; $a = range(0,100000); $t = microtime(1); array_map('foo', $a); $t = microtime(1) - $t; var_dump($t); $a = range(0,100000); $t = microtime(1); array_map($foo, $a); $t = microtime(1) - $t; var_dump($t);

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)
7.3.120.0100.02020.69
7.3.110.0180.00920.70
7.3.100.0160.01020.48
7.3.90.0070.01720.39
7.3.80.0120.01920.47
7.3.70.0140.02420.57
7.3.60.0260.00320.71
7.3.50.0130.01620.43
7.3.40.0070.02320.69
7.3.30.0100.01920.62
7.3.20.0610.02024.77
7.3.10.0100.02024.55
7.3.00.0070.02624.49
7.2.240.0100.02020.54
7.2.230.0140.01420.99
7.2.220.0070.03121.04
7.2.210.0100.01620.75
7.2.200.0160.01620.96
7.2.190.0160.01920.88
7.2.180.0130.01320.94
7.2.170.0170.01320.70
7.2.160.0160.01021.00
7.2.150.0100.01724.77
7.2.140.0060.02524.80
7.2.130.0160.01624.80
7.2.120.0100.02024.79
7.2.110.0030.02924.95
7.2.100.0090.02224.89
7.2.90.0090.02224.84
7.2.80.0110.01424.73
7.2.70.0040.02924.69
7.2.60.0240.01024.61
7.2.50.0160.01924.89
7.2.40.0060.02324.92
7.2.30.0170.01424.87
7.2.20.0130.02024.84
7.2.10.0220.00925.00
7.2.00.0190.01924.98
7.1.330.0160.02023.40
7.1.320.0290.02023.88
7.1.310.0180.01523.45
7.1.300.0200.01723.68
7.1.290.0140.01423.51
7.1.280.0220.02223.76
7.1.270.0140.02123.64
7.1.260.0140.01423.70
7.1.250.0170.01423.78
7.1.70.0030.02225.05
7.1.60.0060.03925.23
7.1.50.0100.03424.88
7.1.00.0070.09030.42
7.0.200.1570.01722.77
7.0.140.0100.08730.13
7.0.110.3400.04726.02
7.0.100.3330.08725.92
7.0.90.3670.07725.90
7.0.80.3200.08725.86
7.0.70.3330.07725.96
7.0.60.3530.10025.93
7.0.50.2930.07726.43
7.0.40.2700.06725.89
7.0.30.2800.09726.21
7.0.20.3100.06325.98
7.0.10.2800.09326.13
7.0.00.2730.09026.00
5.6.280.0170.18058.88
5.6.260.0400.17358.26
5.6.250.0330.14058.48
5.6.240.0330.16358.31
5.6.230.0270.14758.23
5.6.220.0470.15058.41
5.6.210.0400.14358.46
5.6.200.0370.18058.89
5.6.190.0300.16358.91
5.6.180.0370.14058.75
5.6.170.0200.17758.78
5.6.160.0130.14058.91
5.6.150.0270.14358.78
5.6.140.0330.16358.68
5.6.130.0170.17359.01
5.6.120.0230.15358.90
5.6.110.0230.16059.04
5.6.100.0200.16358.96
5.6.90.0470.13359.01
5.6.80.0230.16758.28
5.6.70.0570.14758.04
5.6.60.0170.17058.26
5.6.50.0270.16358.28
5.6.40.0330.16358.16
5.6.30.0370.15358.33
5.6.20.0370.13758.25
5.6.10.0300.14358.39
5.6.00.0330.15058.19
5.5.380.0270.15758.01
5.5.370.0370.14758.28
5.5.360.0230.16358.10
5.5.350.0400.16058.27
5.5.340.0370.15058.77
5.5.330.0300.16758.75
5.5.320.0330.15358.64
5.5.310.0300.14758.79
5.5.300.0330.16058.45
5.5.290.0170.16358.77
5.5.280.0230.15758.65
5.5.270.0230.16058.55
5.5.260.0230.17058.55
5.5.250.0270.17758.47
5.5.240.0330.16057.89
5.5.230.0330.15058.08
5.5.220.0330.15058.00
5.5.210.0170.16057.97
5.5.200.0400.14058.14
5.5.190.0270.16057.92
5.5.180.0430.16758.01
5.5.160.0430.13058.01
5.5.150.0170.19058.00
5.5.140.0270.17758.09
5.5.130.0370.17357.92
5.5.120.0270.15757.86
5.5.110.0300.16057.87
5.5.100.0370.15058.01
5.5.90.0370.15757.74
5.5.80.0130.19057.98
5.5.70.0200.16757.94
5.5.60.0230.17057.85
5.5.50.0170.17357.99
5.5.40.0270.15757.95
5.5.30.0330.16057.81
5.5.20.0270.16057.89
5.5.10.0270.15357.98
5.5.00.0470.13057.96
5.4.450.0200.16757.05
5.4.440.0370.11757.11
5.4.430.0200.17057.01
5.4.420.0170.16056.99
5.4.410.0330.15756.87
5.4.400.0330.15756.95
5.4.390.0370.15056.69
5.4.380.0370.17356.74
5.4.370.0330.16056.67
5.4.360.0330.17056.63
5.4.350.0230.11056.79
5.4.340.0400.14356.77
5.4.320.0370.13756.69
5.4.310.0330.16356.69
5.4.300.0400.15356.68
5.4.290.0270.15356.75
5.4.280.0370.15756.66
5.4.270.0400.14356.66
5.4.260.0200.17056.73
5.4.250.0200.17356.87
5.4.240.0300.17756.68
5.4.230.0230.15356.66
5.4.220.0200.17756.87
5.4.210.0270.14756.68
5.4.200.0200.17756.69
5.4.190.0300.16056.71
5.4.180.0370.17757.02
5.4.170.0200.17356.88
5.4.160.0270.17056.67
5.4.150.0200.15756.84
5.4.140.0470.14054.27
5.4.130.0270.14754.11
5.4.120.0300.15754.18
5.4.110.0400.13754.23
5.4.100.0270.16754.24
5.4.90.0500.13754.25
5.4.80.0300.16354.24
5.4.70.0130.12754.20
5.4.60.0200.11353.98
5.4.50.0130.09354.20
5.4.40.0230.10354.19
5.4.30.0330.11054.18
5.4.20.0230.10754.22
5.4.10.0230.10754.22
5.4.00.0100.12053.56
5.3.290.0370.13752.36
5.3.280.0270.15752.05
5.3.270.0100.19052.38
5.3.260.0200.17752.30
5.3.250.0300.16752.21
5.3.240.0130.17352.29
5.3.230.0370.15752.11
5.3.220.0200.18052.18
5.3.210.0230.17052.15
5.3.200.0300.15752.41
5.3.190.0200.16052.18
5.3.180.0230.09352.33
5.3.170.0170.17752.17
5.3.160.0170.13352.17
5.3.150.0130.13052.16
5.3.140.0100.12352.18
5.3.130.0200.14752.18
5.3.120.0130.11352.24
5.3.110.0170.11352.24
5.3.100.0200.11351.72
5.3.90.0130.12051.52
5.3.80.0230.10751.71
5.3.70.0270.10751.50
5.3.60.0230.11351.55
5.3.50.0200.11751.34
5.3.40.0130.14051.65
5.3.30.0030.14051.94
5.3.20.0200.12051.25
5.3.10.0130.12051.21
5.3.00.0130.11751.16
5.2.170.0000.03711.67
5.2.160.0000.03011.67
5.2.150.0070.04011.67
5.2.140.0000.03011.67
5.2.130.0000.03311.67
5.2.120.0070.04311.67
5.2.110.0000.03011.67
5.2.100.0000.03711.67
5.2.90.0000.05011.67
5.2.80.0070.04311.67
5.2.70.0030.05011.67
5.2.60.0070.04711.67
5.2.50.0070.04311.67
5.2.40.0000.03011.67
5.2.30.0000.06011.67
5.2.20.0070.05711.67
5.2.10.0070.03011.67
5.2.00.0070.05711.67
5.1.60.0030.04311.67
5.1.50.0000.05311.67
5.1.40.0030.05311.67
5.1.30.0000.05011.67
5.1.20.0000.06311.67
5.1.10.0030.05711.67
5.1.00.0030.05311.67
5.0.50.0030.03311.67
5.0.40.0000.04711.67
5.0.30.0030.06711.67
5.0.20.0030.04011.67
5.0.10.0030.04711.67
5.0.00.0000.06311.67
4.4.90.0000.01711.67
4.4.80.0070.03011.67
4.4.70.0030.01311.67
4.4.60.0000.03711.67
4.4.50.0030.03311.67
4.4.40.0070.02711.67
4.4.30.0070.02711.67
4.4.20.0000.03711.67
4.4.10.0070.03011.67
4.4.00.0030.05711.67
4.3.110.0000.03711.67
4.3.100.0000.03311.67
4.3.90.0030.03711.67
4.3.80.0100.04311.67
4.3.70.0000.03311.67
4.3.60.0000.03711.67
4.3.50.0100.02311.67
4.3.40.0000.05711.67
4.3.30.0030.03311.67
4.3.20.0000.03011.67
4.3.10.0100.02711.67
4.3.00.0030.03011.67

preferences:
33.52 ms | 401 KiB | 5 Q