3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 123.321; $y = 321.123; $start = microtime(true); for ($i = 0; $i < 100000; $i++) $b = hypot($x, $y); var_dump(microtime(true) - $start); var_dump($b); $start = microtime(true); for ($i = 0; $i < 100000; $i++) $b = sqrt($x * $x + $y * $y); var_dump(microtime(true) - $start); var_dump($b);

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.4.00.0100.02015.21
7.3.120.0070.02814.98
7.3.110.0070.02614.49
7.3.100.0090.01214.79
7.3.90.0030.01914.57
7.3.80.0030.01714.98
7.3.70.0030.02114.95
7.3.60.0000.01714.69
7.3.50.0000.02714.84
7.3.40.0000.02314.51
7.3.30.0070.01414.94
7.3.20.0070.01716.63
7.3.10.0040.02216.74
7.3.00.0070.01616.65
7.2.250.0070.02515.06
7.2.240.0130.01615.13
7.2.230.0030.02014.99
7.2.220.0100.01715.08
7.2.210.0030.01914.81
7.2.200.0120.00915.19
7.2.190.0030.02015.13
7.2.180.0030.02214.91
7.2.170.0040.01815.27
7.2.00.0070.01319.62
7.1.330.0070.03015.93
7.1.320.0060.03216.04
7.1.310.0000.03715.81
7.1.300.0060.02815.70
7.1.290.0030.03115.85
7.1.280.0000.02815.80
7.1.270.0000.03916.01
7.1.260.0000.03115.71
7.1.70.0060.00916.99
7.1.60.0070.03119.57
7.1.50.0030.03617.00
7.1.00.0030.09022.66
7.0.200.0060.01616.71
7.0.140.0070.04322.29
7.0.60.0130.08320.20
7.0.50.0100.08718.06
7.0.40.0030.05320.02
7.0.30.0100.05320.23
7.0.20.0300.08320.23
7.0.10.0070.09320.15
7.0.00.0030.05320.15
5.6.210.0070.10020.64
5.6.200.0130.08318.25
5.6.190.0130.10020.41
5.6.180.0470.10720.68
5.6.170.0330.07320.54
5.6.160.0070.11020.45
5.6.150.0100.08718.33
5.6.140.0070.07018.24
5.6.130.0000.07018.20
5.6.120.0130.10721.17
5.6.110.0070.09021.15
5.6.100.0070.08721.14
5.6.90.0070.08321.27
5.6.80.0030.05720.60
5.5.350.0130.08720.58
5.5.340.0100.10718.07
5.5.330.0030.09020.23
5.5.320.0300.06720.33
5.5.310.0200.10720.27
5.5.300.0100.08018.10
5.5.290.0070.07718.14
5.5.280.0070.10720.95
5.5.270.0070.11320.82
5.5.260.0070.08020.85
5.5.250.0070.05720.80
5.5.240.0030.12320.36
5.4.450.0270.10719.41
5.4.440.0300.11019.48
5.4.430.0230.10719.31
5.4.420.0270.10719.56
5.4.410.0400.10319.59
5.4.400.0300.10019.16
5.4.390.0270.10318.80
5.4.380.0230.11019.29
5.4.370.0230.06718.88
5.4.360.0230.10719.10
5.4.350.0200.06019.19
5.4.340.0300.10719.07
5.4.320.0400.09019.08
5.4.310.0270.08318.88
5.4.300.0270.05719.28
5.4.290.0400.08719.24
5.4.280.0300.10019.16
5.4.270.0330.10319.28
5.4.260.0230.10719.28
5.4.250.0330.09719.14
5.4.240.0330.09719.27
5.4.230.0400.06319.14
5.4.220.0300.11019.07
5.4.210.0230.10319.05
5.4.200.0230.07019.25
5.4.190.0370.09319.25
5.4.180.0330.10019.15
5.4.170.0370.07019.36
5.4.160.0200.09319.26
5.4.150.0270.10019.18
5.4.140.0230.09316.46
5.4.130.0200.10316.35
5.4.120.0230.06316.25
5.4.110.0270.08016.34
5.4.100.0300.08716.50
5.4.90.0270.05316.47
5.4.80.0270.05716.53
5.4.70.0270.09716.52
5.4.60.0200.07016.24
5.4.50.0300.09716.35
5.4.40.0200.08016.32
5.4.30.0230.09716.26
5.4.20.0270.08316.15
5.4.10.0170.06316.48
5.4.00.0330.08015.95
5.3.290.0230.06714.70
5.3.280.0370.10314.68
5.3.270.0300.10714.57
5.3.260.0370.09314.71
5.3.250.0370.09714.61
5.3.240.0230.07714.50
5.3.230.0300.10014.71
5.3.220.0270.06314.44
5.3.210.0270.10014.46
5.3.200.0230.10714.52
5.3.190.0230.06014.54
5.3.180.0170.06314.45
5.3.170.0230.10014.59
5.3.160.0230.11314.59
5.3.150.0300.08714.46
5.3.140.0330.10014.66
5.3.130.0330.10314.52
5.3.120.0230.09314.66
5.3.110.0300.08714.44
5.3.100.0270.08014.01
5.3.90.0200.11313.99
5.3.80.0270.07713.99
5.3.70.0370.06014.12
5.3.60.0300.10313.97
5.3.50.0330.10713.78
5.3.40.0270.08013.94
5.3.30.0300.09713.84
5.3.20.0230.11013.72
5.3.10.0230.06313.75
5.3.00.0300.11013.66
5.2.170.0170.10312.96
5.2.160.0270.10312.96
5.2.150.0200.10712.96
5.2.140.0270.10312.96
5.2.130.0200.09712.96
5.2.120.0230.07712.96
5.2.110.0170.10712.96
5.2.100.0230.09712.96
5.2.90.0200.08012.96
5.2.80.0370.09312.96
5.2.70.0300.09712.96
5.2.60.0170.10712.96
5.2.50.0230.09012.96
5.2.40.0200.07312.96
5.2.30.0230.10312.96
5.2.20.0130.11012.96
5.2.10.0270.09012.96
5.2.00.0230.05712.96
5.1.60.0230.09012.96
5.1.50.0230.08012.96
5.1.40.0230.09312.96
5.1.30.0230.10012.96
5.1.20.0230.09012.96
5.1.10.0130.05712.96
5.1.00.0130.07012.96
5.0.50.0130.11312.96
5.0.40.0030.14012.96
5.0.30.0130.13312.96
5.0.20.0130.13012.96
5.0.10.0170.10012.96
5.0.00.0100.13712.96
4.4.90.0100.12312.96
4.4.80.0030.12312.96
4.4.70.0100.11012.96
4.4.60.0100.09312.96
4.4.50.0070.13012.96
4.4.40.0100.14012.96
4.4.30.0070.12012.96
4.4.20.0100.11712.96
4.4.10.0130.12712.96
4.4.00.0070.10712.96
4.3.110.0100.12312.96
4.3.100.0070.07712.96
4.3.90.0070.11312.96
4.3.80.0130.13712.96
4.3.70.0070.09712.96
4.3.60.0030.10012.96
4.3.50.0100.13012.96
4.3.40.0070.13712.96
4.3.30.0000.10012.96
4.3.20.0070.07312.96
4.3.10.0030.07712.96
4.3.00.0030.07712.96

preferences:
18.8 ms | 401 KiB | 5 Q