3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __call($func, array $args) { echo $func; } } new foo-> I wish that PHP supported bare words,but this will have to do for now();

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.0330.04018.86
5.4.310.0230.04719.07
5.4.300.0330.03018.98
5.4.290.0300.04319.16
5.4.280.0270.03719.16
5.4.270.0270.05719.24
5.4.260.0230.06719.22
5.4.250.0400.06319.19
5.4.240.0270.03719.22
5.4.230.0230.03719.19
5.4.220.0200.04319.23
5.4.210.0270.04319.09
5.4.200.0270.04319.04
5.4.190.0300.05319.23
5.4.180.0430.05319.30
5.4.170.0330.07318.86
5.4.160.0330.06019.15
5.4.150.0400.05319.22
5.4.140.0230.03716.41
5.4.130.0200.04316.56
5.4.120.0230.03716.44
5.4.110.0200.03716.24
5.4.100.0270.03016.61
5.4.90.0170.04016.33
5.4.80.0270.04016.60
5.4.70.0270.03016.62
5.4.60.0300.02716.35
5.4.50.0230.03316.34
5.4.40.0370.02716.53
5.4.30.0230.05016.48
5.4.20.0230.04016.38
5.4.10.0230.03316.53
5.4.00.0170.04015.86
5.3.290.0330.07714.56
5.3.280.0270.04314.60
5.3.270.0300.07014.72
5.3.260.0300.05714.72
5.3.250.0330.03014.61
5.3.240.0300.03014.68
5.3.230.0230.03714.64
5.3.220.0270.03314.79
5.3.210.0300.03714.70
5.3.200.0200.04014.49
5.3.190.0300.03014.48
5.3.180.0270.04014.56
5.3.170.0270.03314.47
5.3.160.0270.04014.54
5.3.150.0230.03314.65
5.3.140.0200.03714.61
5.3.130.0330.04014.53
5.3.120.0300.03714.47
5.3.110.0270.04014.52
5.3.100.0200.04014.01
5.3.90.0300.02714.09
5.3.80.0200.04013.92
5.3.70.0300.03313.94
5.3.60.0300.03714.02
5.3.50.0300.03313.94
5.3.40.0200.03713.99
5.3.30.0170.03713.92
5.3.20.0230.03313.61
5.3.10.0200.03713.56
5.3.00.0200.03713.75
5.2.170.0230.02311.31
5.2.160.0130.03311.05
5.2.150.0270.03011.07
5.2.140.0200.02711.15
5.2.130.0170.03311.01
5.2.120.0170.03011.27
5.2.110.0170.03011.01
5.2.100.0200.03311.01
5.2.90.0130.03711.26
5.2.80.0170.03011.01
5.2.70.0170.03311.32
5.2.60.0200.02710.97
5.2.50.0200.02711.09
5.2.40.0170.02711.00
5.2.30.0130.03010.94
5.2.20.0130.03311.05
5.2.10.0230.02310.91
5.2.00.0200.03010.93
5.1.60.0130.02310.04
5.1.50.0170.02710.07
5.1.40.0170.0239.88
5.1.30.0200.03710.41
5.1.20.0130.02310.32
5.1.10.0170.03010.00
5.1.00.0200.05010.05
5.0.50.0100.0208.46
5.0.40.0200.0178.31
5.0.30.0200.0608.11
5.0.20.0130.0208.13
5.0.10.0100.0208.25
5.0.00.0100.0338.39
4.4.90.0070.0137.66
4.4.80.0100.0137.66
4.4.70.0070.0137.66
4.4.60.0030.0177.66
4.4.50.0070.0177.66
4.4.40.0030.0307.66
4.4.30.0070.0207.66
4.4.20.0100.0137.66
4.4.10.0030.0207.66
4.4.00.0070.0307.66
4.3.110.0100.0307.66
4.3.100.0130.0137.66
4.3.90.0070.0237.66
4.3.80.0070.0277.66
4.3.70.0170.0177.66
4.3.60.0130.0137.66
4.3.50.0100.0407.66
4.3.40.0100.0307.66
4.3.30.0030.0307.66
4.3.20.0130.0137.66
4.3.10.0100.0137.66
4.3.00.0030.0377.66

preferences:
134.18 ms | 1398 KiB | 7 Q