3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $frequency = 19; $resultsCount = 319000; $result = (pow($frequency/2, 2) / $resultsCount - (pow($frequency/2, 2) / $resultsCount) * ((0 + 0 + 0)*3 /100)) * 100; var_dump($result);
based on Nd3ua

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.80.0040.00816.47
7.2.60.0070.00716.91
7.2.00.0000.01119.58
7.1.200.0000.00715.91
7.1.100.0060.00617.72
7.1.70.0000.00717.27
7.1.60.0130.01319.22
7.1.50.0060.01316.99
7.1.00.0100.07022.50
7.0.200.0000.00916.52
7.0.140.0100.06322.08
7.0.60.0070.05020.06
7.0.50.0030.07717.90
7.0.40.0070.05020.18
7.0.30.0230.05020.43
7.0.20.0370.04720.24
7.0.10.0070.05020.29
7.0.00.0100.07720.23
5.6.280.0070.07020.90
5.6.210.0030.04020.55
5.6.200.0100.08718.38
5.6.190.0100.06320.83
5.6.180.0300.07020.84
5.6.170.0300.05020.63
5.6.160.0070.04320.59
5.6.150.0130.07718.24
5.6.140.0070.08018.25
5.6.130.0130.07718.28
5.6.120.0030.09021.24
5.6.110.0100.08021.07
5.6.100.0170.08021.12
5.6.90.0170.07721.07
5.6.80.0070.08320.48
5.5.350.0270.08320.61
5.5.340.0100.06017.97
5.5.330.0130.07720.53
5.5.320.0200.04720.28
5.5.310.0330.05020.46
5.5.300.0100.08318.02
5.5.290.0100.07718.04
5.5.280.0070.07720.89
5.5.270.0030.04720.88
5.5.260.0030.08720.93
5.5.250.0100.08320.75
5.5.240.0030.04020.22
5.4.450.0130.05719.64
5.4.440.0670.04319.42
5.4.430.0670.05319.48
5.4.420.0100.05719.57
5.4.410.0570.06019.27
5.4.400.0500.05319.14
5.4.390.0370.06018.87
5.4.380.0430.08018.61
5.4.370.0630.07018.64
5.4.360.0600.05718.65
5.4.350.0670.05718.62
5.4.340.0430.05318.83
5.4.320.0430.05318.78
5.4.310.0500.06718.81
5.4.300.0400.05018.63
5.4.290.0500.06018.78
5.4.280.0430.05318.62
5.4.270.0430.06718.69
5.4.260.0370.06718.80
5.4.250.0270.05718.59
5.4.240.0270.05718.64
5.4.230.0270.06018.70
5.4.220.0270.06018.65
5.4.210.0370.05318.61
5.4.200.0400.05016.51
5.4.190.0400.06318.82
5.4.180.0400.08018.82
5.4.170.0470.06718.58
5.4.160.0470.07018.59
5.4.150.0570.06318.58
5.4.140.0330.05016.36
5.4.130.0370.05316.22
5.4.120.0230.06016.46
5.4.110.0300.05316.24
5.4.100.0270.05316.37
5.4.90.0170.05716.22
5.4.80.0470.05316.16
5.4.70.0370.05316.20
5.4.60.0330.06316.16
5.4.50.0470.06016.27
5.4.40.0400.04716.35
5.4.30.0500.04016.16
5.4.20.0300.07316.15
5.4.10.0200.06016.17
5.4.00.0270.07715.73
5.3.290.0200.07014.82
5.3.280.0500.05714.75
5.3.270.0400.05014.56
5.3.260.0200.07314.62
5.3.250.0330.05714.74
5.3.240.0400.04714.66
5.3.230.0300.07314.63
5.3.220.0200.06314.57
5.3.210.0430.06314.66
5.3.200.0330.05714.64
5.3.190.0200.06314.70
5.3.180.0300.07714.65
5.3.170.0370.04714.63
5.3.160.0330.05314.63
5.3.150.0400.05714.52
5.3.140.0270.05314.62
5.3.130.0400.05714.55
5.3.120.0430.06314.52
5.3.110.0330.05014.60
5.3.100.0200.06014.07
5.3.90.0370.07014.06
5.3.80.0330.06314.15
5.3.70.0400.08014.16
5.3.60.0200.07714.10
5.3.50.0330.06713.95
5.3.40.0370.05014.10
5.3.30.0330.07714.07
5.3.20.0270.05313.75
5.3.10.0370.06313.80
5.3.00.0300.05313.79
5.2.170.0230.04311.23
5.2.160.0300.05011.20
5.2.150.0370.05711.18
5.2.140.0200.04711.23
5.2.130.0300.04011.30
5.2.120.0270.04011.20
5.2.110.0400.03311.19
5.2.100.0230.04311.15
5.2.90.0300.03711.16
5.2.80.0230.04711.31
5.2.70.0400.04011.14
5.2.60.0270.04011.10
5.2.50.0330.03311.11
5.2.40.0200.04711.08
5.2.30.0500.05011.07
5.2.20.0200.03711.01
5.2.10.0400.03711.02
5.2.00.0170.06010.78
5.1.60.0270.03010.19
5.1.50.0170.04710.06
5.1.40.0270.03710.09
5.1.30.0330.03710.39
5.1.20.0330.03310.50
5.1.10.0170.04310.16
5.1.00.0330.03310.27
5.0.50.0070.0378.67
5.0.40.0230.0308.56
5.0.30.0070.0508.30
5.0.20.0070.0378.43
5.0.10.0270.0208.26
5.0.00.0200.0438.29
4.4.90.0070.0336.64
4.4.80.0100.0206.64
4.4.70.0130.0306.64
4.4.60.0100.0306.64
4.4.50.0070.0336.64
4.4.40.0130.0376.64
4.4.30.0170.0236.64
4.4.20.0130.0206.64
4.4.10.0230.0176.64
4.4.00.0100.0376.64
4.3.110.0100.0236.64
4.3.100.0070.0376.64
4.3.90.0130.0336.64
4.3.80.0070.0376.64
4.3.70.0100.0236.64
4.3.60.0130.0276.64
4.3.50.0100.0276.64
4.3.40.0070.0436.64
4.3.30.0030.0276.64
4.3.20.0100.0276.64
4.3.10.0130.0206.64
4.3.00.0030.0207.30