3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function is_valid_date($date) { if (preg_match('/^((19|20)\\d\\d)-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01]) ([01]\d|2[0123]):([0-5]\d):([0-5]\d)$/', $date, $matches)){ return checkdate($matches[3], $matches[4], $matches[1]); } return false; } var_dump(is_valid_date("2012-12-02 75:30:00")); //true ?>

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.3.0rc40.0100.00098.97
7.3.0rc30.1210.00616.73
7.3.0beta10.0000.01112.78
7.3.0alpha10.0100.00012.84
7.2.60.0040.01116.81
7.2.00.0000.01419.22
7.1.200.0050.00515.57
7.1.100.0000.01418.34
7.1.70.0080.00317.44
7.1.60.0060.01919.82
7.1.50.0070.01517.07
7.1.00.0130.06322.43
7.0.200.0040.00416.93
7.0.140.0030.07321.95
7.0.110.0130.04319.93
7.0.100.0230.05019.98
7.0.90.0230.04319.95
7.0.80.0300.03719.96
7.0.70.0200.04019.93
7.0.60.0170.03319.98
7.0.50.0230.05021.97
7.0.40.0030.04320.25
7.0.30.0030.08720.06
7.0.20.0030.07320.05
7.0.10.0030.05720.05
7.0.00.0070.03720.17
5.6.280.0070.07021.08
5.6.260.0000.04320.51
5.6.250.0030.04020.64
5.6.240.0100.06020.67
5.6.230.0070.04320.68
5.6.220.0000.04320.85
5.6.210.0070.03020.69
5.6.200.0070.04021.06
5.6.190.0030.04021.14
5.6.180.0130.03021.08
5.6.170.0070.07721.08
5.6.160.0130.06721.22
5.6.150.0100.03321.09
5.6.140.0030.08021.03
5.6.130.0030.04020.93
5.6.120.0070.08321.03
5.6.110.0100.05021.21
5.6.100.0170.07020.93
5.6.90.0070.08020.91
5.6.80.0130.04020.48
5.6.70.0100.07720.53
5.6.60.0130.08020.49
5.6.50.0100.08020.32
5.6.40.0100.07720.30
5.6.30.0070.08020.31
5.6.20.0100.06720.57
5.6.10.0100.07320.50
5.6.00.0070.07320.56
5.5.380.0030.04720.51
5.5.370.0000.04720.52
5.5.360.0000.04020.50
5.5.350.0070.03720.16
5.5.340.0030.03720.96
5.5.330.0030.05020.90
5.5.320.0030.04021.02
5.5.310.0000.08720.84
5.5.300.0070.03720.96
5.5.290.0070.03720.89
5.5.280.0070.04020.94
5.5.270.0030.09020.89
5.5.260.0200.07720.73
5.5.250.0130.07720.83
5.5.240.0030.07320.13
5.5.230.0100.04720.08
5.5.220.0100.06720.36
5.5.210.0030.08320.27
5.5.200.0100.07720.34
5.5.190.0030.08020.31
5.5.180.0070.07320.11
5.5.160.0130.05720.34
5.5.150.0230.06020.32
5.5.140.0030.05020.36
5.5.130.0070.07320.32
5.5.120.0130.07020.09
5.5.110.0130.05020.15
5.5.100.0100.07320.28
5.5.90.0100.06720.08
5.5.80.0100.07720.17
5.5.70.0070.08320.09
5.5.60.0070.06320.24
5.5.50.0130.06720.16
5.5.40.0100.04320.16
5.5.30.0000.08719.96
5.5.20.0070.06320.15
5.5.10.0100.04720.23
5.5.00.0170.06320.15
5.4.450.0030.04319.41
5.4.440.0100.08019.64
5.4.430.0100.07719.35
5.4.420.0100.08319.37
5.4.410.0100.07319.20
5.4.400.0070.04719.16
5.4.390.0070.07719.04
5.4.380.0130.07019.34
5.4.370.0100.04319.09
5.4.360.0030.07718.95
5.4.350.0100.06719.34
5.4.340.0100.07319.20
5.4.320.0130.07719.24
5.4.310.0130.04319.31
5.4.300.0130.07018.98
5.4.290.0030.07319.24
5.4.280.0100.04319.09
5.4.270.0030.07719.14
5.4.260.0100.07319.14
5.4.250.0030.07718.98
5.4.240.0100.05719.33
5.4.230.0170.06318.96
5.4.220.0000.08319.00
5.4.210.0170.06018.96
5.4.200.0130.06019.17
5.4.190.0030.08019.13
5.4.180.0130.06319.17
5.4.170.0070.08318.94
5.4.160.0130.07018.99
5.4.150.0170.06019.02
5.4.140.0070.04316.37
5.4.130.0100.06716.63
5.4.120.0170.06016.52
5.4.110.0100.05316.41
5.4.100.0200.05716.53
5.4.90.0030.04716.60
5.4.80.0070.06316.60
5.4.70.0030.07316.41
5.4.60.0100.07016.63
5.4.50.0070.07016.38
5.4.40.0030.07016.68
5.4.30.0100.07016.23
5.4.20.0070.07316.40
5.4.10.0070.07316.54
5.4.00.0030.06015.85
5.3.290.0030.08014.70
5.3.280.0030.08314.73
5.3.270.0170.06014.48
5.3.260.0030.07314.61
5.3.250.0100.07014.58
5.3.240.0100.07314.64
5.3.230.0130.06714.61
5.3.220.0130.06714.52
5.3.210.0230.05314.52
5.3.200.0100.07014.54
5.3.190.0070.06014.57
5.3.180.0030.04714.70
5.3.170.0030.07314.64
5.3.160.0030.07714.58
5.3.150.0030.07314.59
5.3.140.0030.07314.55
5.3.130.0100.03714.54
5.3.120.0100.04014.52
5.3.110.0130.07014.59
5.3.100.0100.05314.06
5.3.90.0070.07314.04
5.3.80.0070.07714.03
5.3.70.0030.05013.97
5.3.60.0070.06014.04
5.3.50.0070.06314.03
5.3.40.0170.03314.00
5.3.30.0170.05313.90
5.3.20.0130.03313.93
5.3.10.0100.05713.68
5.3.00.0070.06313.61
5.2.170.0000.04011.59
5.2.160.0000.06711.59
5.2.150.0100.06011.59
5.2.140.0070.06011.59
5.2.130.0030.06711.59
5.2.120.0070.05711.59
5.2.110.0170.02311.59
5.2.100.0070.05711.59
5.2.90.0070.05311.59
5.2.80.0070.05711.59
5.2.70.0070.06311.59
5.2.60.0030.05711.59
5.2.50.0030.06311.59
5.2.40.0100.05011.59
5.2.30.0070.05711.59
5.2.20.0100.06311.59
5.2.10.0070.06011.59
5.2.00.0070.05711.59
5.1.60.0030.03311.59
5.1.50.0100.04711.59
5.1.40.0070.05311.59
5.1.30.0070.05311.59
5.1.20.0000.04711.59
5.1.10.0000.06011.59
5.1.00.0100.04011.59
5.0.50.0170.02711.59
5.0.40.0000.04711.59
5.0.30.0070.06011.59
5.0.20.0000.04711.59
5.0.10.0100.03711.59
5.0.00.0000.05711.59
4.4.90.0030.01711.59
4.4.80.0030.02311.59
4.4.70.0030.03711.59
4.4.60.0030.03311.59
4.4.50.0000.03711.59
4.4.40.0000.05311.59
4.4.30.0070.03311.59
4.4.20.0030.03711.59
4.4.10.0070.03311.59
4.4.00.0000.05311.59
4.3.110.0030.03711.59
4.3.100.0030.03311.59
4.3.90.0000.03011.59
4.3.80.0000.05311.59
4.3.70.0070.03011.59
4.3.60.0030.03011.59
4.3.50.0000.03011.59
4.3.40.0000.04711.59
4.3.30.0000.03711.59
4.3.20.0000.04011.59
4.3.10.0030.03011.59
4.3.00.0000.03311.59