3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { public function bark() { echo "Woof!"; } } $class = 'Dog' $action = 'bark'; $x = new $class(); // instantiates the class 'Dog'

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.320.0200.03719.22
5.4.310.0130.04318.98
5.4.300.0300.03319.22
5.4.290.0200.03718.98
5.4.280.0200.04318.94
5.4.270.0200.04719.06
5.4.260.0230.03718.87
5.4.250.0200.03319.22
5.4.240.0270.02718.94
5.4.230.0170.03718.99
5.4.220.0170.03719.21
5.4.210.0170.03719.07
5.4.200.0130.04019.08
5.4.190.0070.03718.86
5.4.180.0130.03319.18
5.4.170.0070.04019.21
5.4.160.0130.03318.93
5.4.150.0100.03719.06
5.4.140.0130.05316.43
5.4.130.0130.07016.42
5.4.120.0100.07016.38
5.4.110.0100.04316.59
5.4.100.0070.06716.31
5.4.90.0100.05316.31
5.4.80.0070.05016.60
5.4.70.0270.05316.23
5.4.60.0100.07716.24
5.4.50.0100.05316.18
5.4.40.0200.04016.16
5.4.30.0230.07316.48
5.4.20.0170.06716.42
5.4.10.0130.07716.43
5.4.00.0200.06015.95
5.3.290.0100.04314.75
5.3.280.0200.04014.75
5.3.270.0100.03314.60
5.3.260.0170.03314.69
5.3.250.0130.03714.51
5.3.240.0130.04314.68
5.3.230.0170.05314.50
5.3.220.0100.08014.49
5.3.210.0130.07714.48
5.3.200.0130.07314.72
5.3.190.0130.07714.65
5.3.180.0100.07714.54
5.3.170.0070.04314.68
5.3.160.0130.07014.55
5.3.150.0230.06314.46
5.3.140.0130.07714.48
5.3.130.0200.07014.54
5.3.120.0130.05314.46
5.3.110.0270.04714.46
5.3.100.0200.06714.04
5.3.90.0170.06714.03
5.3.80.0270.04314.13
5.3.70.0130.05014.02
5.3.60.0230.07013.90
5.3.50.0200.07314.06
5.3.40.0130.07013.95
5.3.30.0200.04713.82
5.3.20.0200.07313.70
5.3.10.0170.03713.66
5.3.00.0200.06313.66
5.2.170.0130.06313.66
5.2.160.0400.02313.66
5.2.150.0100.06013.66
5.2.140.0200.04013.66
5.2.130.0200.05713.66
5.2.120.0070.04313.66
5.2.110.0100.03713.66
5.2.100.0300.02313.66
5.2.90.0170.06013.66
5.2.80.0230.05013.66
5.2.70.0200.05713.66
5.2.60.0130.03713.66
5.2.50.0000.06013.66
5.2.40.0070.04713.66
5.2.30.0200.03713.66
5.2.20.0200.05313.66
5.2.10.0200.04313.66
5.2.00.0170.03013.66
5.1.60.0130.04713.66
5.1.50.0070.05313.66
5.1.40.0070.05313.66
5.1.30.0070.06013.66
5.1.20.0100.04013.66
5.1.10.0100.04313.66
5.1.00.0000.03013.66
5.0.50.0030.02013.66
5.0.40.0030.03713.66
5.0.30.0030.05013.66
5.0.20.0030.04313.66
5.0.10.0070.03013.66
5.0.00.0100.06313.66
4.4.90.0000.02013.66
4.4.80.0030.01713.66
4.4.70.0030.03713.66
4.4.60.0030.03713.66
4.4.50.0030.03313.66
4.4.40.0070.05013.66
4.4.30.0000.04013.66
4.4.20.0070.03313.66
4.4.10.0000.02313.66
4.4.00.0000.02313.66
4.3.110.0030.02713.66
4.3.100.0030.03013.66
4.3.90.0030.03013.66
4.3.80.0030.04313.66
4.3.70.0070.01713.66
4.3.60.0070.03313.66
4.3.50.0000.03713.66
4.3.40.0030.03013.66
4.3.30.0030.03013.66
4.3.20.0070.02013.66
4.3.10.0030.01713.66
4.3.00.0000.03313.66

preferences:
138.95 ms | 1394 KiB | 7 Q