3v4l.org

run code in 300+ PHP versions simultaneously
<?php class string {} function lolphp(string $data) { echo($data); } lolphp("Hello");

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.6.00.0070.07720.51
5.5.160.0030.08020.24
5.5.150.0130.05020.14
5.5.140.0130.07020.21
5.5.130.0100.05019.96
5.5.120.0100.07020.11
5.5.110.0100.06320.23
5.5.100.0100.07720.16
5.5.90.0070.04320.06
5.5.80.0070.05720.10
5.5.70.0130.03020.11
5.5.60.0170.03720.15
5.5.50.0200.04720.15
5.5.40.0130.07320.05
5.5.30.0130.07719.91
5.5.20.0070.04720.03
5.5.10.0070.07020.03
5.5.00.0070.03320.07
5.4.320.0100.04019.18
5.4.310.0130.07019.05
5.4.300.0170.06319.08
5.4.290.0130.06719.13
5.4.280.0130.06319.12
5.4.270.0100.03019.18
5.4.260.0130.08319.09
5.4.250.0100.07318.90
5.4.240.0130.03019.18
5.4.230.0130.04319.08
5.4.220.0100.03719.17
5.4.210.0130.06719.03
5.4.200.0070.06719.06
5.4.190.0100.07018.95
5.4.180.0100.06319.04
5.4.170.0100.03018.93
5.4.160.0070.04319.10
5.4.150.0030.07019.04
5.4.140.0030.05316.48
5.4.130.0070.04716.48
5.4.120.0070.05016.38
5.4.110.0000.06716.48
5.4.100.0070.08316.33
5.4.90.0030.07716.52
5.4.80.0200.05016.56
5.4.70.0000.05316.48
5.4.60.0100.06716.37
5.4.50.0070.03316.34
5.4.40.0100.07316.46
5.4.30.0030.04316.44
5.4.20.0030.04016.40
5.4.10.0030.07316.45
5.4.00.0000.05315.85
5.3.290.0070.08314.78
5.3.280.0000.05014.55
5.3.270.0100.03714.53
5.3.260.0070.03714.57
5.3.250.0000.04014.66
5.3.240.0100.07714.71
5.3.230.0070.03714.56
5.3.220.0030.06314.55
5.3.210.0070.06014.68
5.3.200.0070.04014.49
5.3.190.0100.03714.52
5.3.180.0000.06714.66
5.3.170.0030.07314.61
5.3.160.0030.08314.70
5.3.150.0030.06014.52
5.3.140.0030.03714.48
5.3.130.0030.04014.60
5.3.120.0100.07014.56
5.3.110.0130.06714.63
5.3.100.0100.07714.04
5.3.90.0070.07013.94
5.3.80.0070.05714.13
5.3.70.0030.04013.95
5.3.60.0000.04013.98
5.3.50.0070.05713.89
5.3.40.0030.03714.03
5.3.30.0070.03314.01
5.3.20.0070.03313.68
5.3.10.0100.02713.65
5.3.00.0100.02713.57
5.2.170.0030.03311.14
5.2.160.0000.03711.07
5.2.150.0070.02711.05
5.2.140.0030.03311.05
5.2.130.0000.03311.20
5.2.120.0070.02710.98
5.2.110.0070.02311.12
5.2.100.0000.03010.98
5.2.90.0000.03011.16
5.2.80.0000.03011.15
5.2.70.0000.03011.14
5.2.60.0070.04011.05
5.2.50.0030.03010.91
5.2.40.0000.03011.13
5.2.30.0070.02711.05
5.2.20.0000.04011.05
5.2.10.0130.02010.92
5.2.00.0030.05710.64
5.1.60.0130.04010.39
5.1.50.0100.01710.39
5.1.40.0000.02710.39
5.1.30.0100.02010.39
5.1.20.0030.02310.48
5.1.10.0000.02310.39
5.1.00.0030.02310.39
5.0.50.0030.02010.39
5.0.40.0070.01310.39
5.0.30.0030.03010.39
5.0.20.0070.01710.39
5.0.10.0000.02010.39
5.0.00.0030.03010.39
4.4.90.0030.01010.39
4.4.80.0030.02010.39
4.4.70.0030.02710.39
4.4.60.0030.02010.39
4.4.50.0030.01310.39
4.4.40.0070.04010.39
4.4.30.0000.01310.39
4.4.20.0000.01710.39
4.4.10.0100.01010.39
4.4.00.0000.02310.39
4.3.110.0000.01710.39
4.3.100.0000.01710.39
4.3.90.0030.01310.39
4.3.80.0030.02710.39
4.3.70.0000.01710.39
4.3.60.0000.01710.39
4.3.50.0000.01710.39
4.3.40.0000.02310.39
4.3.30.0000.02310.39
4.3.20.0000.01710.39
4.3.10.0000.01710.39
4.3.00.0000.01310.39

preferences:
140.54 ms | 1394 KiB | 7 Q