3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sum((float) $a, (float) $b) { }

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)
5.4.360.0070.05718.84
5.4.350.0100.03713.79
5.4.340.0130.03713.76
5.4.320.0120.03714.31
5.4.310.0170.03514.31
5.4.300.0080.03814.24
5.4.290.0120.03814.26
5.4.280.0120.03714.14
5.4.270.0070.04014.15
5.4.260.0120.04214.26
5.4.250.0100.03714.21
5.4.240.0100.03514.21
5.4.230.0150.03714.20
5.4.220.0120.03314.16
5.4.210.0050.04214.16
5.4.200.0070.04514.13
5.4.190.0050.04314.15
5.4.180.0080.04214.17
5.4.170.0050.04014.30
5.4.160.0070.04314.23
5.4.150.0130.04014.21
5.4.140.0070.04713.92
5.4.130.0130.03313.82
5.4.120.0120.03313.89
5.4.110.0070.03813.79
5.4.100.0080.03713.78
5.4.90.0120.03513.89
5.4.80.0150.03313.89
5.4.70.0050.04213.77
5.4.60.0130.03213.77
5.4.50.0100.03713.77
5.4.40.0080.03713.71
5.4.30.0080.03713.84
5.4.20.0100.03813.79
5.4.10.0100.04013.82
5.4.00.0080.03713.25
5.3.290.0070.04814.62
5.3.280.0070.04514.65
5.3.270.0130.03714.70
5.3.260.0100.04014.53
5.3.250.0130.04214.65
5.3.240.0120.04014.71
5.3.230.0120.04014.62
5.3.220.0130.04214.61
5.3.210.0080.04314.55
5.3.200.0150.04814.62
5.3.190.0170.04714.63
5.3.180.0150.04514.54
5.3.170.0130.04814.63
5.3.160.0170.04714.52
5.3.150.0080.04314.64
5.3.140.0100.04514.53
5.3.130.0100.04814.50
5.3.120.0250.04214.61
5.3.110.0200.04214.63
5.3.100.0270.04513.97
5.3.90.0180.04014.10
5.3.80.0120.04214.16
5.3.70.0200.04714.10
5.3.60.0170.04014.06
5.3.50.0170.05213.90
5.3.40.0150.04214.01
5.3.30.0180.03713.86
5.3.20.0070.04813.67
5.3.10.0200.04813.65
5.3.00.0170.04813.64
5.2.170.0050.04011.17
5.2.160.0150.03511.07
5.2.150.0150.03011.15
5.2.140.0100.03011.19
5.2.130.0100.03511.19
5.2.120.0120.02711.13
5.2.110.0080.03811.14
5.2.100.0180.03311.07
5.2.90.0080.03311.11
5.2.80.0100.03511.20
5.2.70.0150.03211.14
5.2.60.0100.03711.05
5.2.50.0100.03511.03
5.2.40.0150.02710.97
5.2.30.0120.03510.94
5.2.20.0030.03511.01
5.2.10.0100.03510.92
5.2.00.0100.03310.83
5.1.60.0150.02210.05
5.1.50.0150.0229.97
5.1.40.0100.0309.95
5.1.30.0120.02510.39
5.1.20.0120.02710.37
5.1.10.0080.02710.13
5.1.00.0070.03010.04
5.0.50.0050.0238.63
5.0.40.0050.0208.51
5.0.30.0070.0338.19
5.0.20.0070.0208.19
5.0.10.0070.0188.22
5.0.00.0100.0378.29
4.4.90.0020.0225.88
4.4.80.0070.0205.89
4.4.70.0070.0205.85
4.4.60.0050.0205.85
4.4.50.0030.0185.96
4.4.40.0080.0275.90
4.4.30.0080.0255.94
4.4.20.0050.0185.94
4.4.10.0050.0185.95
4.4.00.0050.0285.89
4.3.110.0050.0185.82
4.3.100.0020.0185.76
4.3.90.0050.0175.75
4.3.80.0020.0285.79
4.3.70.0020.0185.77
4.3.60.0020.0205.79
4.3.50.0120.0275.79
4.3.40.0030.0275.70
4.3.30.0050.0174.52
4.3.20.0030.0154.50
4.3.10.0030.0174.56
4.3.00.0100.0307.09

preferences:
147.66 ms | 993 KiB | 7 Q