3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function hello($userAgent, $username, $apiToken, $method, $path, $data) { print_r(func_get_args()); echo "Hello"; } } $caller = function($userAgent, $username, $apiToken, $method, $path, $data){ Test::hello($userAgent, $username, $apiToken, $method, $path, $data); ); $caller(1,2,3,4,5,6);

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.80.0130.06320.38
5.5.240.0070.07320.24
5.4.400.0200.07718.96
5.4.390.0300.05719.06
5.4.380.0230.03319.04
5.4.370.0300.06719.13
5.4.360.0230.07319.02
5.4.350.0200.03719.22
5.4.340.0200.06019.14
5.4.320.0270.06719.22
5.4.310.0170.05318.84
5.4.300.0230.07019.24
5.4.290.0130.04019.22
5.4.280.0230.07319.04
5.4.270.0200.05019.09
5.4.260.0170.04719.13
5.4.250.0230.03018.97
5.4.240.0270.06719.13
5.4.230.0270.06719.30
5.4.220.0270.07019.16
5.4.210.0200.04719.14
5.4.200.0270.07019.18
5.4.190.0400.05019.30
5.4.180.0270.07019.16
5.4.170.0230.04319.22
5.4.160.0330.05319.12
5.4.150.0230.04018.96
5.4.140.0170.04016.44
5.4.130.0230.04316.38
5.4.120.0200.07016.54
5.4.110.0300.03716.61
5.4.100.0200.03316.30
5.4.90.0230.05716.56
5.4.80.0230.07716.57
5.4.70.0330.05716.54
5.4.60.0270.07316.43
5.4.50.0300.06316.55
5.4.40.0170.05316.18
5.4.30.0270.06316.37
5.4.20.0200.03716.53
5.4.10.0230.05016.42
5.4.00.0230.03315.83
5.3.290.0330.06314.75
5.3.280.0170.04014.59
5.3.270.0270.07714.70
5.3.260.0400.06014.53
5.3.250.0270.06714.66
5.3.240.0230.04014.73
5.3.230.0200.04014.68
5.3.220.0470.05714.69
5.3.210.0170.04314.57
5.3.200.0270.06714.69
5.3.190.0300.06714.66
5.3.180.0270.04014.56
5.3.170.0230.03714.54
5.3.160.0100.04314.68
5.3.150.0130.04314.57
5.3.140.0200.05314.57
5.3.130.0230.07014.41
5.3.120.0200.07314.63
5.3.110.0130.06014.67
5.3.100.0130.04314.04
5.3.90.0070.04314.18
5.3.80.0230.06713.93
5.3.70.0170.03314.03
5.3.60.0170.07014.01
5.3.50.0200.04013.97
5.3.40.0230.06713.86
5.3.30.0230.03714.06
5.3.20.0200.06313.61
5.3.10.0170.03313.74
5.3.00.0200.06313.79
5.2.170.0170.05311.08
5.2.160.0170.04011.24
5.2.150.0230.03311.26
5.2.140.0130.05711.15
5.2.130.0200.03711.16
5.2.120.0200.05711.08
5.2.110.0230.03311.00
5.2.100.0230.05011.08
5.2.90.0270.05011.15
5.2.80.0170.06011.00
5.2.70.0170.04711.01
5.2.60.0130.04311.13
5.2.50.0170.03011.18
5.2.40.0130.03711.00
5.2.30.0230.06011.12
5.2.20.0170.02710.86
5.2.10.0130.05310.77
5.2.00.0130.04010.82
5.1.60.0130.04310.15
5.1.50.0070.03710.15
5.1.40.0170.0179.88
5.1.30.0130.05010.41
5.1.20.0170.03010.52
5.1.10.0130.02710.05
5.1.00.0100.03010.05
5.0.50.0170.0378.55
5.0.40.0070.0238.34
5.0.30.0100.0478.21
5.0.20.0070.0208.20
5.0.10.0030.0208.10
5.0.00.0100.0278.38
4.4.90.0030.0177.98
4.4.80.0070.0177.98
4.4.70.0070.0277.98
4.4.60.0070.0137.98
4.4.50.0000.0207.98
4.4.40.0070.0237.98
4.4.30.0100.0307.98
4.4.20.0030.0207.98
4.4.10.0030.0207.98
4.4.00.0070.0237.98
4.3.110.0070.0177.98
4.3.100.0030.0177.98
4.3.90.0030.0177.98
4.3.80.0030.0307.98
4.3.70.0030.0177.98
4.3.60.0030.0177.98
4.3.50.0030.0177.98
4.3.40.0030.0277.98
4.3.30.0000.0177.98
4.3.20.0030.0177.98
4.3.10.0030.0207.98
4.3.00.0030.0177.98

preferences:
147.1 ms | 1394 KiB | 7 Q