3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fecha = "21/04/2015 12:03:59"; list($d, $M, $y, $h, $m, $s) = preg_split("/[\s,\/:]+/",$fecha); echo "\n->"; echo date("Y-m-d H:i:s",strtotime("$d-$M-$y $h:$m:$s"));//Ganadora echo "\n->"; echo date("Y-m-d H:i:s",strtotime("2015-20-04 19:11:33")); echo "\n->"; echo strtotime("20/04/2015 19:11:33") . 'No funciona'; echo "\n->"; echo date("Y-m-d H:i:s", 1429635779 - 7*60*60);
based on PMvaZ

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.10.0170.00316.61
7.3.00.0170.00716.44
7.2.130.0200.00316.95
7.2.120.0090.01216.54
7.2.110.0170.00716.47
7.2.100.0080.01616.60
7.2.90.0110.01116.82
7.2.80.0180.01016.64
7.2.70.0130.01316.82
7.2.60.0160.01216.86
7.2.50.0120.00917.07
7.2.40.0110.01116.76
7.2.30.0090.01216.77
7.2.20.0070.01116.86
7.2.10.0130.01316.84
7.2.00.0080.00918.28
7.1.250.0060.01015.64
7.1.100.0030.00618.32
7.1.70.0030.00617.70
7.1.60.0070.01719.46
7.1.50.0070.01416.84
7.1.00.0000.08022.50
7.0.200.1340.00315.11
7.0.140.0170.06322.18
7.0.100.0070.06721.72
7.0.90.0070.07319.92
7.0.80.0130.04319.85
7.0.70.0030.08019.92
7.0.60.0200.07019.92
7.0.50.0070.03720.33
7.0.40.0000.07020.13
7.0.30.0030.04320.07
7.0.20.0030.04020.13
7.0.10.0100.07720.04
7.0.00.0030.06720.04
5.6.280.0100.06720.77
5.6.250.0000.04720.63
5.6.240.0070.08020.60
5.6.230.0100.03720.57
5.6.220.0070.08020.49
5.6.210.0030.08720.67
5.6.200.0030.09021.02
5.6.190.0070.07721.08
5.6.180.0030.07720.93
5.6.170.0030.08021.09
5.6.160.0070.07721.06
5.6.150.0070.06721.10
5.6.140.0070.03321.16
5.6.130.0070.08021.10
5.6.120.0130.07321.03
5.6.110.0070.05320.99
5.6.100.0030.08321.10
5.6.90.0130.07721.09
5.6.80.0170.07320.34
5.6.70.0030.08320.30
5.6.60.0000.04020.44
5.6.50.0030.08320.32
5.6.40.0000.04020.40
5.6.30.0170.06720.40
5.6.20.0000.05320.39
5.6.10.0000.04320.40
5.6.00.0030.07020.44
5.5.380.0030.08720.34
5.5.370.0000.05020.34
5.5.360.0030.04020.44
5.5.350.0100.03320.47
5.5.340.0030.07720.87
5.5.330.0070.05720.79
5.5.320.0030.07720.88
5.5.310.0030.07720.61
5.5.300.0070.07020.79
5.5.290.0030.04320.82
5.5.280.0200.04720.63
5.5.270.0100.08020.79
5.5.260.0130.07320.86
5.5.250.0070.08320.63
5.5.240.0030.08020.30
5.5.230.0070.03320.10
5.5.220.0100.07720.14
5.5.210.0100.03720.20
5.5.200.0100.03020.09
5.5.190.0100.08320.21
5.5.180.0100.07720.20
5.5.160.0000.08720.11
5.5.150.0030.07020.23
5.5.140.0030.03720.17
5.5.130.0170.07020.18
5.5.120.0030.04020.26
5.5.110.0130.07020.25
5.5.100.0030.08320.10
5.5.90.0030.06320.10
5.5.80.0000.08320.16
5.5.70.0030.07720.11
5.5.60.0070.03020.04
5.5.50.0230.06020.05
5.5.40.0030.08020.05
5.5.30.0070.03019.92
5.5.20.0130.07720.14
5.5.10.0030.08719.96
5.5.00.0000.04320.11
5.4.450.0070.05019.40
5.4.440.0100.07019.27
5.4.430.0200.05719.35
5.4.420.0000.08319.30
5.4.410.0000.08319.04
5.4.400.0100.05718.82
5.4.390.0070.03319.11
5.4.380.0200.06018.81
5.4.370.0070.07718.90
5.4.360.0070.07719.06
5.4.350.0030.03319.23
5.4.340.0100.07018.98
5.4.320.0030.08019.08
5.4.310.0070.08718.90
5.4.300.0000.08019.12
5.4.290.0070.07319.05
5.4.280.0000.05319.22
5.4.270.0130.06019.05
5.4.260.0070.07319.02
5.4.250.0070.03718.90
5.4.240.0070.05019.11
5.4.230.0000.07318.80
5.4.220.0030.06018.96
5.4.210.0070.03018.75
5.4.200.0100.06318.97
5.4.190.0070.05719.01
5.4.180.0100.07019.05
5.4.170.0100.07019.09
5.4.160.0130.02319.03
5.4.150.0070.07319.09
5.4.140.0130.06316.44
5.4.130.0030.07316.41
5.4.120.0100.05016.33
5.4.110.0100.07316.48
5.4.100.0100.06716.29
5.4.90.0070.07316.36
5.4.80.0030.03316.40
5.4.70.0030.03316.29
5.4.60.0000.03316.19
5.4.50.0070.03016.34
5.4.40.0030.03316.23
5.4.30.0030.05716.33
5.4.20.0100.07016.18
5.4.10.0030.04316.19
5.4.00.0070.05315.81
5.3.290.0170.06714.52
5.3.280.0030.04714.60
5.3.270.0030.06714.58
5.3.260.0030.04014.60
5.3.250.0100.02314.61
5.3.240.0030.05014.56
5.3.230.0000.06014.59
5.3.220.0030.05314.58
5.3.210.0000.06314.56
5.3.200.0100.06714.57
5.3.190.0000.07714.56
5.3.180.0030.03314.52
5.3.170.0100.07314.50
5.3.160.0070.06014.38
5.3.150.0100.06714.42
5.3.140.0000.05014.41
5.3.130.0030.07314.54
5.3.120.0000.04014.46
5.3.110.0030.07014.38
5.3.100.0030.05013.87
5.3.90.0070.03014.00
5.3.80.0100.07013.95
5.3.70.0070.07013.97
5.3.60.0030.06013.93
5.3.50.0000.08013.90
5.3.40.0070.05013.72
5.3.30.0130.05313.77
5.3.20.0070.07313.68
5.3.10.0070.04713.61
5.3.00.0070.07013.63
5.2.170.0030.04310.98
5.2.160.0000.03010.96
5.2.150.0070.05711.14
5.2.140.0070.02311.21
5.2.130.0100.05710.96
5.2.120.0070.05011.02
5.2.110.0130.05311.02
5.2.100.0030.02311.09
5.2.90.0030.06010.96
5.2.80.0030.05711.14
5.2.70.0030.04011.09
5.2.60.0000.04310.90
5.2.50.0030.06711.04
5.2.40.0030.06010.98
5.2.30.0070.06010.96
5.2.20.0070.02011.00
5.2.10.0070.03010.88
5.2.00.0030.02710.66
5.1.60.0000.0239.83
5.1.50.0030.0239.98
5.1.40.0000.02710.04
5.1.30.0030.04010.40
5.1.20.0000.02710.27
5.1.10.0070.0239.95
5.1.00.0000.02710.12
5.0.50.0000.0209.18
5.0.40.0070.0139.18
5.0.30.0030.0309.18
5.0.20.0030.0179.18
5.0.10.0000.0209.18
5.0.00.0000.0339.18
4.4.90.0030.0339.18
4.4.80.0030.0179.18
4.4.70.0000.0139.18
4.4.60.0030.0139.18
4.4.50.0030.0209.18
4.4.40.0030.0239.18
4.4.30.0000.0179.18
4.4.20.0070.0109.18
4.4.10.0000.0139.18
4.4.00.0000.0239.18
4.3.110.0000.0179.18
4.3.100.0030.0139.18
4.3.90.0000.0139.18
4.3.80.0000.0239.18
4.3.70.0030.0139.18
4.3.60.0000.0179.18
4.3.50.0100.0079.18
4.3.40.0030.0239.18
4.3.30.0000.0179.18
4.3.20.0030.0139.18
4.3.10.0000.0139.18
4.3.00.0030.0139.18