3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var(3000.03, FILTER_VALIDATE_REGEXP,array("options"=>array("regexp"=>"/^([1-9][0-9]*|0)(\.[0-9]{2})?$/")))); var_dump(filter_var(3000.03, FILTER_VALIDATE_REGEXP,array("options"=>array("regexp"=>"/\d+(?:\.\d{1,2})?/"))));
based on CLa8f

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.60.0030.01316.82
7.2.00.0000.01319.55
7.1.200.0060.01715.86
7.1.100.0000.00917.86
7.1.70.0000.00917.36
7.1.60.0150.00619.46
7.1.50.0060.01916.66
7.1.00.0000.08022.30
7.0.200.0480.00614.57
7.0.140.0070.06322.18
7.0.60.0170.06719.90
7.0.50.0070.04017.81
7.0.40.0030.04320.23
7.0.30.0530.06320.05
7.0.20.0300.08320.25
7.0.10.0070.08720.34
7.0.00.0130.05020.30
5.6.280.0000.07021.05
5.6.210.0130.07720.72
5.6.200.0070.04318.12
5.6.190.0030.07320.67
5.6.180.0100.07720.39
5.6.170.0230.08320.40
5.6.160.0070.04320.49
5.6.150.0070.04718.19
5.6.140.0030.04318.22
5.6.130.0100.04018.14
5.6.120.0070.03721.09
5.6.110.0200.07021.11
5.6.100.0100.06720.97
5.6.90.0100.07021.02
5.6.80.0100.05020.39
5.5.350.4270.04020.40
5.5.340.0130.07318.02
5.5.330.0100.04020.40
5.5.320.0270.07720.32
5.5.310.0270.07720.29
5.5.300.0100.03317.92
5.5.290.0170.05318.01
5.5.280.0170.06720.72
5.5.270.0170.07320.83
5.5.260.0130.06320.95
5.5.250.0170.07720.47
5.5.240.0000.07320.11
5.4.450.0600.06319.53
5.4.440.1270.06319.32
5.4.430.0630.06719.46
5.4.420.0900.05019.48
5.4.410.0370.06019.47
5.4.400.0170.05318.65
5.4.390.0170.05718.60
5.4.380.0230.06018.65
5.4.370.0170.05318.51
5.4.360.0230.04718.50
5.4.350.0200.05018.52
5.4.340.0200.06018.48
5.4.320.0200.07318.44
5.4.310.0170.07718.74
5.4.300.0130.05718.59
5.4.290.0170.05318.68
5.4.280.0130.06018.73
5.4.270.0100.06318.45
5.4.260.0130.05318.61
5.4.250.0130.05318.59
5.4.240.0200.06018.44
5.4.230.0200.07018.55
5.4.220.0200.05018.61
5.4.210.0100.05718.67
5.4.200.0230.04316.63
5.4.190.0100.06018.75
5.4.180.0070.06318.67
5.4.170.0070.06318.66
5.4.160.0170.05718.51
5.4.150.0170.05318.70
5.4.140.0200.05016.18
5.4.130.0230.04316.18
5.4.120.0170.05016.27
5.4.110.0270.05016.04
5.4.100.0230.04716.17
5.4.90.0230.04316.18
5.4.80.0170.05716.07
5.4.70.0130.05716.27
5.4.60.0100.05716.15
5.4.50.0100.06016.18
5.4.40.0100.06016.32
5.4.30.0070.06016.26
5.4.20.0130.05716.32
5.4.10.0070.06016.19
5.4.00.0170.04715.60
5.3.290.0200.05314.68
5.3.280.0100.06714.63
5.3.270.0130.06714.52
5.3.260.0170.05714.57
5.3.250.0130.05314.51
5.3.240.0230.04314.59
5.3.230.0200.05714.74
5.3.220.0230.04314.55
5.3.210.0170.05714.59
5.3.200.0170.05014.61
5.3.190.0130.05314.49
5.3.180.0130.05014.55
5.3.170.0070.06314.47
5.3.160.0170.05314.59
5.3.150.0200.07014.54
5.3.140.0130.05714.62
5.3.130.0030.07014.52
5.3.120.0170.06314.45
5.3.110.0130.07014.49
5.3.100.0200.07314.13
5.3.90.0300.04014.00
5.3.80.0200.05014.00
5.3.70.0170.05313.93
5.3.60.0270.05714.00
5.3.50.0200.05013.90
5.3.40.0170.06313.92
5.3.30.0100.08314.01
5.3.20.0300.06013.65
5.3.10.0200.05713.60
5.3.00.0100.05713.55
5.2.170.0170.04311.11
5.2.160.0130.05311.07
5.2.150.0130.04311.13
5.2.140.0100.04711.11
5.2.130.0200.04011.04
5.2.120.0130.04711.03
5.2.110.0100.04311.10
5.2.100.0130.04711.24
5.2.90.0130.06011.24
5.2.80.0100.05011.23
5.2.70.0170.03711.13
5.2.60.0100.04711.03
5.2.50.0130.04011.05
5.2.40.0130.03711.00
5.2.30.0170.05711.01
5.2.20.0170.05311.00
5.2.10.0170.05310.98
5.2.00.0200.03710.78
5.1.60.0130.03310.01
5.1.50.0100.04010.05
5.1.40.0030.05010.07
5.1.30.0130.03710.45
5.1.20.0100.04710.33
5.1.10.0130.05010.10
5.1.00.0170.04710.06
5.0.50.0100.0438.61
5.0.40.0100.0378.42
5.0.30.0130.0508.27
5.0.20.0130.0308.23
5.0.10.0200.0178.12
5.0.00.0100.0438.18
4.4.90.0070.0305.88
4.4.80.0100.0235.86
4.4.70.0170.0175.83
4.4.60.0130.0235.90
4.4.50.0030.0305.92
4.4.40.0100.0435.89
4.4.30.0170.0205.90
4.4.20.0070.0305.96
4.4.10.0130.0275.94
4.4.00.0070.0335.90
4.3.110.0070.0235.81
4.3.100.0070.0305.79
4.3.90.0030.0235.79
4.3.80.0070.0335.77
4.3.70.0030.0275.79
4.3.60.0030.0275.79
4.3.50.0100.0205.78
4.3.40.0070.0335.84
4.3.30.0030.0234.59
4.3.20.0070.0304.57
4.3.10.0070.0234.59
4.3.00.0070.0278.77