3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/Madrid'); //$time = mktime(12,0,0,1,15,2013); $now = mktime(8,28,0,2,17,2014); $last = mktime(8,28,0,2,10,2014); $agoraMadrid = date("d/m/Y H:i:s", $now); $lastMadrid = date("d/m/Y H:i:s", $last); //date_default_timezone_set('America/Sao_Paulo'); date_default_timezone_set('Etc/GMT+2'); $agoraAqui = date("d/m/Y H:i:s", $now); $lastAqui = date("d/m/Y H:i:s", $last); date_default_timezone_set('America/Bahia'); $agoraLa = date("d/m/Y H:i:s", $now); $lastLa = date("d/m/Y H:i:s", $last); printf("17-02-2014\n"); printf("Madrid %-20s\n", $agoraMadrid); printf("Sao Paulo %-20s\n", $agoraAqui); printf("\n10-02-2014\n"); printf("Madrid %-20s\n", $lastMadrid); printf("Sao Paulo %-20s\n", $lastAqui);

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.0150.01598.97
7.3.0rc30.0420.00616.47
7.3.0beta10.0030.00312.52
7.2.00.0030.01019.24
7.1.200.0030.01215.61
7.1.100.0120.00318.30
7.1.70.0070.00317.27
7.1.60.0030.00917.38
7.1.50.0100.01017.23
7.1.00.0070.07322.42
7.0.200.0100.00717.15
7.0.140.0030.07322.07
7.0.80.0430.04719.91
7.0.70.0700.06719.90
7.0.60.0430.07319.95
7.0.50.0430.06720.25
7.0.40.0070.08320.09
7.0.30.0030.06020.09
7.0.20.0070.08320.10
7.0.10.0030.07720.05
7.0.00.0100.07720.05
5.6.280.0070.07020.82
5.6.230.0070.08720.71
5.6.220.0130.07720.52
5.6.210.0100.08720.74
5.6.200.0130.07321.03
5.6.190.0030.06021.07
5.6.180.0000.05021.06
5.6.170.0030.09021.00
5.6.160.0130.07021.02
5.6.150.0070.08721.08
5.6.140.0170.06021.01
5.6.130.0100.05021.16
5.6.120.0030.04720.96
5.6.110.0170.04021.00
5.6.100.0030.08021.08
5.6.90.0000.05021.08
5.6.80.0100.08320.54
5.6.70.0070.08320.39
5.6.60.0070.05320.46
5.6.50.0130.04320.49
5.6.40.0070.04720.39
5.6.30.0070.08020.30
5.6.20.0200.07020.52
5.6.10.0070.06720.45
5.6.00.0030.05320.34
5.5.370.0230.06320.57
5.5.360.0030.05020.53
5.5.350.0030.05720.40
5.5.340.0070.06320.73
5.5.330.0000.05020.80
5.5.320.0130.05320.83
5.5.310.0070.08020.83
5.5.300.0070.08320.75
5.5.290.0100.05720.80
5.5.280.0100.07020.88
5.5.270.0070.04020.74
5.5.260.0200.07320.85
5.5.250.0130.08020.60
5.5.240.0130.05020.03
5.5.230.0070.05720.10
5.5.220.0100.07020.20
5.5.210.0100.07720.02
5.5.200.0130.07020.23
5.5.190.0000.08320.28
5.5.180.0100.08020.27
5.5.160.0100.08020.18
5.5.150.0000.05020.17
5.5.140.0130.06720.21
5.5.130.0130.07720.07
5.5.120.0100.07320.23
5.5.110.0070.08320.23
5.5.100.0070.03719.94
5.5.90.0030.05320.06
5.5.80.0000.04020.05
5.5.70.0070.05019.99
5.5.60.0130.02719.96
5.5.50.0030.04019.95
5.5.40.0070.03720.02
5.5.30.0030.03320.08
5.5.20.0070.03720.04
5.5.10.0030.03719.96
5.5.00.0000.04319.95
5.4.450.0100.03719.39
5.4.440.0130.03719.13
5.4.430.0100.07719.27
5.4.420.0030.08319.21
5.4.410.0100.05319.22
5.4.400.0130.07019.13
5.4.390.0030.07319.06
5.4.380.0070.07318.96
5.4.370.0030.06019.04
5.4.360.0070.07719.14
5.4.350.0030.04018.81
5.4.340.0130.05718.96
5.4.320.0030.07718.90
5.4.310.0030.05719.05
5.4.300.0100.07319.11
5.4.290.0200.06318.80
5.4.280.0070.08018.98
5.4.270.0070.08018.96
5.4.260.0030.04319.22
5.4.250.0100.04019.05
5.4.240.0030.04019.05
5.4.230.0000.03719.07
5.4.220.0000.04318.83
5.4.210.0030.06718.80
5.4.200.0000.04019.14
5.4.190.0030.03719.09
5.4.180.0070.03019.11
5.4.170.0030.04319.02
5.4.160.0170.07018.88
5.4.150.0070.04319.00
5.4.140.0030.03716.39
5.4.130.0070.04716.17
5.4.120.0070.03316.40
5.4.110.0100.03016.27
5.4.100.0030.03316.26
5.4.90.0070.04016.29
5.4.80.0030.03716.46
5.4.70.0070.03016.46
5.4.60.0070.03316.45
5.4.50.0070.06316.31
5.4.40.0070.03016.24
5.4.30.0000.03716.23
5.4.20.0030.03316.18
5.4.10.0030.04016.23
5.4.00.0000.03715.51
5.3.290.0030.07714.50
5.3.280.0100.06014.59
5.3.270.0030.06014.54
5.3.260.0030.04714.61
5.3.250.0070.03314.61
5.3.240.0030.04014.60
5.3.230.0030.06714.56
5.3.220.0030.05014.42
5.3.210.0000.04014.58
5.3.200.0070.03314.53
5.3.190.0000.04014.50
5.3.180.0000.03714.56
5.3.170.0000.04014.42
5.3.160.0100.05314.54
5.3.150.0000.04014.48
5.3.140.0000.04014.51
5.3.130.0030.03714.37
5.3.120.0130.03014.51
5.3.110.0000.04014.49
5.3.100.0070.06013.90
5.3.90.0000.05714.01
5.3.80.0030.03713.99
5.3.70.0070.03313.97
5.3.60.0070.03313.86
5.3.50.0030.03713.80
5.3.40.0000.04013.93
5.3.30.0000.07013.77
5.3.20.0000.03713.64
5.3.10.0130.03013.64
5.3.00.0070.05713.62
5.2.170.0030.03310.99
5.2.160.0000.03011.17
5.2.150.0070.02310.96
5.2.140.0030.02711.00
5.2.130.0030.03011.09
5.2.120.0000.03011.15
5.2.110.0030.02710.94
5.2.100.0070.02710.96
5.2.90.0030.02711.09
5.2.80.0000.03011.05
5.2.70.0000.03011.06
5.2.60.0000.03011.07
5.2.50.0130.04711.06
5.2.40.0000.03710.99
5.2.30.0070.06010.86
5.2.20.0100.06010.95
5.2.10.0100.04710.93
5.2.00.0030.05710.86
5.1.60.0000.06010.86
5.1.50.0030.05710.86
5.1.40.0070.03710.86
5.1.30.0070.05310.86
5.1.20.0000.05010.86
5.1.10.0100.05010.86
5.1.00.0000.06010.86
5.0.50.0030.03710.86
5.0.40.0030.02310.86
5.0.30.0070.05710.86
5.0.20.0000.03310.86
5.0.10.0030.04310.86
5.0.00.0130.05310.86
4.4.90.0000.01310.86
4.4.80.0070.03310.86
4.4.70.0030.03310.86
4.4.60.0000.03710.86
4.4.50.0030.03710.86
4.4.40.0030.05010.86
4.4.30.0070.02710.86
4.4.20.0030.03310.86
4.4.10.0000.03710.86
4.4.00.0000.04010.86
4.3.110.0000.03710.86
4.3.100.0070.03010.86
4.3.90.0030.01710.86
4.3.80.0030.04710.86
4.3.70.0030.03010.86
4.3.60.0070.03310.86
4.3.50.0000.03010.86
4.3.40.0000.03710.86
4.3.30.0100.03010.86
4.3.20.0000.03010.86
4.3.10.0000.02710.86
4.3.00.0030.03310.86