3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_Math($count = 140000) { $time_start = microtime(true); $mathFunctions = array("abs", "acos", "asin", "atan", "bindec", "floor", "exp", "sin", "tan", "pi", "is_finite", "is_nan", "sqrt"); foreach ($mathFunctions as $key => $function) { if (!function_exists($function)) unset($mathFunctions[$key]); } for ($i=0; $i < $count; $i++) { foreach ($mathFunctions as $function) { $r = call_user_func_array($function, array($i)); echo "."; } } return number_format(microtime(true) - $time_start, 3); } $total = 0; $functions = get_defined_functions();

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)
7.3.10.0060.01016.26
7.3.00.0060.00816.44
7.2.130.0050.00816.62
7.2.120.0080.00616.72
7.2.110.0050.00816.77
7.2.100.0030.01216.81
7.2.90.0050.01116.63
7.2.80.0030.00916.84
7.2.70.0080.00616.73
7.2.60.0080.00916.69
7.2.50.0080.00816.80
7.2.40.0070.00716.75
7.2.30.0120.00616.83
7.2.20.0100.00916.87
7.2.10.0060.00916.69
7.2.00.0070.01117.49
7.1.250.0050.00815.68
7.1.100.0000.01118.05
7.1.70.0000.01617.07
7.1.60.0030.01017.13
7.1.50.0040.01416.83
7.1.00.0070.07322.37
7.0.200.0030.01316.48
7.0.60.0130.06320.04
7.0.50.0000.04318.00
7.0.40.0030.06019.96
7.0.30.0270.04320.34
7.0.20.0200.06320.06
7.0.10.0070.04020.07
7.0.00.0100.08020.15
5.6.280.0070.03021.09
5.6.210.0100.07720.59
5.6.200.0100.07718.20
5.6.190.0100.04020.47
5.6.180.0300.04320.52
5.6.170.0230.04020.44
5.6.160.0170.06020.50
5.6.150.0100.03318.16
5.6.140.0070.03718.15
5.6.130.0130.08318.44
5.6.120.0100.08721.15
5.6.110.0100.07321.15
5.6.100.0130.08020.96
5.6.90.0230.07021.07
5.6.80.0070.07720.48
5.5.350.3300.04020.48
5.5.340.0130.07017.98
5.5.330.0130.06320.31
5.5.320.0230.04020.24
5.5.310.0170.05020.24
5.5.300.0130.07318.09
5.5.290.0100.06018.08
5.5.280.0070.07020.76
5.5.270.0030.05720.90
5.5.260.0070.08720.96
5.5.250.0070.08320.64
5.5.240.0030.06720.29
5.4.450.0700.06719.46
5.4.440.0830.06719.30
5.4.430.0900.06319.46
5.4.420.0730.07319.58
5.4.410.0870.06719.40
5.4.400.1070.06719.28
5.4.390.0630.06318.98
5.4.380.0830.05318.98
5.4.370.0870.04719.26
5.4.360.0530.06719.16
5.4.350.0670.06019.15
5.4.340.0870.06319.29
5.4.320.0830.05719.30
5.4.310.0700.05719.30
5.4.300.0770.05019.25
5.4.290.0900.04719.25
5.4.280.1070.05019.26
5.4.270.0900.06319.28
5.4.260.0770.05318.97
5.4.250.0970.05019.25
5.4.240.1100.06018.97
5.4.230.0770.05719.28
5.4.220.0830.05719.00
5.4.210.1030.06019.44
5.4.200.1000.06317.13
5.4.190.1170.05019.18
5.4.180.1370.05719.16
5.4.170.1030.06019.03
5.4.160.0900.07319.13
5.4.150.0100.05319.09
5.4.140.0230.04716.47
5.4.130.0500.05016.59
5.4.120.1030.06316.48
5.4.110.0870.05016.60
5.4.100.0800.05316.46
5.4.90.0870.05316.58
5.4.80.0100.06716.75
5.4.70.0170.06016.33
5.4.60.0330.04716.34
5.4.50.0900.04716.59
5.4.40.0730.05716.43
5.4.30.0170.04716.43
5.4.20.0130.05716.57
5.4.10.0630.05316.53
5.4.00.0770.06316.01
5.3.290.0630.06314.79
5.3.280.0700.06314.93
5.3.270.1030.05014.80
5.3.260.0900.06014.80
5.3.250.0970.07014.70
5.3.240.0770.07314.71
5.3.230.1170.06314.89
5.3.220.1130.06714.82
5.3.210.0930.07014.67
5.3.200.0630.06014.76
5.3.190.0870.05314.90
5.3.180.1000.05314.67
5.3.170.1100.07014.84
5.3.160.0830.08314.80
5.3.150.0900.05314.76
5.3.140.0870.05014.80
5.3.130.0770.07014.75
5.3.120.1000.07314.66
5.3.110.0970.07014.75
5.3.100.0970.05714.24
5.3.90.0870.06014.21
5.3.80.1070.06314.11
5.3.70.1070.04314.07
5.3.60.1170.05014.20
5.3.50.0800.05714.05
5.3.40.0970.05014.05
5.3.30.0730.05714.01
5.3.20.1130.04013.80
5.3.10.0900.04013.99
5.3.00.0900.06313.83
5.2.170.0830.06711.55
5.2.160.0770.04711.41
5.2.150.0870.04011.24
5.2.140.0630.04711.55
5.2.130.0670.04011.21
5.2.120.0630.04011.14
5.2.110.0700.03711.52
5.2.100.0670.04711.21
5.2.90.0670.05711.19
5.2.80.0700.05311.50
5.2.70.0830.04311.50
5.2.60.0830.04011.14
5.2.50.0500.04311.11
5.2.40.0530.04711.18
5.2.30.0530.04711.06
5.2.20.0370.04711.14
5.2.10.0500.05011.05
5.2.00.0700.05310.79
5.1.60.0670.03310.13
5.1.50.0570.04010.14
5.1.40.0630.03710.17
5.1.30.0530.05010.69
5.1.20.0530.03310.50
5.1.10.0430.03710.43
5.1.00.0570.04010.17
5.0.50.0300.0378.90
5.0.40.0330.0278.69
5.0.30.0230.0478.43
5.0.20.0330.0238.24
5.0.10.0270.0378.35
5.0.00.0500.0478.28
4.4.90.0370.0236.73
4.4.80.0300.0206.73
4.4.70.0330.0206.73
4.4.60.0400.0276.73
4.4.50.0270.0236.73
4.4.40.0370.0306.73
4.4.30.0270.0306.73
4.4.20.0230.0236.73
4.4.10.0330.0206.73
4.4.00.0270.0336.73
4.3.110.0370.0276.73
4.3.100.0400.0206.73
4.3.90.0230.0236.73
4.3.80.0430.0306.73
4.3.70.0330.0206.73
4.3.60.0130.0276.73
4.3.50.0470.0176.73
4.3.40.0330.0376.73
4.3.30.0130.0276.73
4.3.20.0130.0306.73
4.3.10.0130.0206.73
4.3.00.0100.0237.25

preferences:
40.47 ms | 400 KiB | 5 Q