3v4l.org

run code in 300+ PHP versions simultaneously
<?php $birthday = strtotime('2014-06-10'); $days = int(($birthday-time())/60/60/24); print "There are $days days until birthday."; ?>

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).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0040.01316.40
7.2.00.0040.01519.31
7.1.200.0030.00715.55
7.1.100.0070.01017.95
7.1.70.0070.00317.00
7.1.60.0180.00719.46
7.1.50.0040.01917.10
7.1.00.0000.08022.54
7.0.200.0060.00316.61
7.0.140.0000.07722.12
7.0.100.0030.06319.98
7.0.90.0130.07319.87
7.0.80.0070.05019.95
7.0.70.0030.08319.92
7.0.60.0070.04019.91
7.0.50.0170.07720.34
7.0.40.0100.08320.11
7.0.30.0130.05320.15
7.0.20.0070.06320.18
7.0.10.0000.08720.07
7.0.00.0070.07020.09
5.6.280.0030.07321.04
5.6.250.0030.08020.65
5.6.240.0070.07720.57
5.6.230.0130.07720.58
5.6.220.0000.08320.50
5.6.210.0030.05720.46
5.6.200.0130.03721.03
5.6.190.0100.07321.09
5.6.180.0100.08021.03
5.6.170.0070.04021.13
5.6.160.0100.06721.08
5.6.150.0130.06021.16
5.6.140.0100.06721.01
5.6.130.0100.04721.11
5.6.120.0030.09021.02
5.6.110.0100.08321.13
5.6.100.0000.08720.94
5.6.90.0000.04721.04
5.6.80.0070.04320.38
5.6.70.0130.07020.43
5.6.60.0130.05720.45
5.6.50.0200.06320.42
5.6.40.0070.07020.39
5.6.30.0170.06320.37
5.6.20.0130.03720.43
5.6.10.0130.07020.52
5.6.00.0130.07720.45
5.5.380.0200.04020.41
5.5.370.0070.08320.35
5.5.360.0030.06020.39
5.5.350.0100.07020.42
5.5.340.0070.03720.91
5.5.330.0130.08020.63
5.5.320.0130.06020.88
5.5.310.0130.04020.73
5.5.300.0070.06720.91
5.5.290.0100.08320.86
5.5.280.0130.05320.92
5.5.270.0000.06720.62
5.5.260.0100.08320.74
5.5.250.0070.04320.41
5.5.240.0030.08320.31
5.5.230.0130.08320.16
5.5.220.0000.07020.17
5.5.210.0100.04320.25
5.5.200.0130.07720.17
5.5.190.0100.04019.98
5.5.180.0130.07720.27
5.5.160.0200.05720.20
5.5.150.0030.08020.21
5.5.140.0100.06320.17
5.5.130.0130.04720.10
5.5.120.0170.07020.21
5.5.110.0100.07720.09
5.5.100.0130.07020.17
5.5.90.0130.04719.96
5.5.80.0130.04320.15
5.5.70.0270.05720.14
5.5.60.0130.07720.07
5.5.50.0070.06320.14
5.5.40.0000.04320.14
5.5.30.0030.06019.92
5.5.20.0130.03320.07
5.5.10.0100.08020.03
5.5.00.0100.06019.95
5.4.450.0130.05319.11
5.4.440.0070.07719.44
5.4.430.0100.07319.44
5.4.420.0100.08019.44
5.4.410.0070.06019.32
5.4.400.0130.04718.83
5.4.390.0030.07718.98
5.4.380.0170.06319.10
5.4.370.0000.07018.96
5.4.360.0070.03719.14
5.4.350.0000.04318.96
5.4.340.0130.03719.04
5.4.320.0100.07018.90
5.4.310.0100.07019.24
5.4.300.0030.06019.05
5.4.290.0030.08018.81
5.4.280.0170.04718.78
5.4.270.0100.07019.17
5.4.260.0100.05318.81
5.4.250.0030.08019.01
5.4.240.0070.07719.08
5.4.230.0100.07318.93
5.4.220.0030.07719.15
5.4.210.0070.03718.89
5.4.200.0070.08018.93
5.4.190.0100.07319.06
5.4.180.0070.08018.96
5.4.170.0070.05318.77
5.4.160.0030.07719.09
5.4.150.0130.06319.18
5.4.140.0070.08316.18
5.4.130.0030.04016.33
5.4.120.0070.07716.38
5.4.110.0130.06716.31
5.4.100.0030.04316.36
5.4.90.0030.06316.50
5.4.80.0070.03716.47
5.4.70.0100.06716.26
5.4.60.0070.03716.31
5.4.50.0070.05716.18
5.4.40.0070.07016.26
5.4.30.0030.05316.23
5.4.20.0100.06716.38
5.4.10.0070.05716.28
5.4.00.0030.07315.58
5.3.290.0030.05014.67
5.3.280.0100.07314.50
5.3.270.0100.07714.61
5.3.260.0030.08014.57
5.3.250.0100.07014.46
5.3.240.0070.03714.59
5.3.230.0070.08314.59
5.3.220.0030.08014.54
5.3.210.0100.07714.41
5.3.200.0030.04314.51
5.3.190.0030.05014.51
5.3.180.0170.05314.49
5.3.170.0070.03314.49
5.3.160.0000.05314.52
5.3.150.0100.05314.38
5.3.140.0030.04014.36
5.3.130.0030.05714.55
5.3.120.0100.03314.54
5.3.110.0030.04314.53
5.3.100.0100.04313.98
5.3.90.0070.07314.01
5.3.80.0100.07014.01
5.3.70.0100.07013.88
5.3.60.0070.03713.86
5.3.50.0000.04713.90
5.3.40.0030.05713.80
5.3.30.0100.07013.66
5.3.20.0000.07713.68
5.3.10.0100.07013.59
5.3.00.0070.07013.63
5.2.170.0070.06011.18
5.2.160.0100.06010.98
5.2.150.0030.06310.99
5.2.140.0070.06011.05
5.2.130.0070.06011.06
5.2.120.0070.04311.14
5.2.110.0070.06011.10
5.2.100.0100.04311.15
5.2.90.0070.05711.09
5.2.80.0030.04010.91
5.2.70.0030.06310.88
5.2.60.0030.06011.05
5.2.50.0030.06011.01
5.2.40.0030.03311.06
5.2.30.0030.06010.82
5.2.20.0030.03310.94
5.2.10.0100.05710.71
5.2.00.0000.05310.76
5.1.60.0070.05010.28
5.1.50.0100.03310.28
5.1.40.0100.04710.28
5.1.30.0070.05310.39
5.1.20.0130.02010.28
5.1.10.0100.03710.28
5.1.00.0000.06010.28
5.0.50.0030.03010.28
5.0.40.0100.03710.28
5.0.30.0030.05710.28
5.0.20.0070.03310.28
5.0.10.0070.03010.28
5.0.00.0000.03710.28
4.4.90.0000.02310.28
4.4.80.0000.03710.28
4.4.70.0000.02310.28
4.4.60.0030.03310.28
4.4.50.0070.03310.28
4.4.40.0070.04010.28
4.4.30.0030.03710.28
4.4.20.0030.03010.28
4.4.10.0000.03310.28
4.4.00.0030.04310.28
4.3.110.0070.02710.28
4.3.100.0030.03310.28
4.3.90.0000.02710.28
4.3.80.0000.02710.28
4.3.70.0000.03010.28
4.3.60.0000.02310.28
4.3.50.0030.02010.28
4.3.40.0030.02310.28
4.3.30.0000.02310.28
4.3.20.0000.02010.28
4.3.10.0030.01710.28
4.3.00.0030.01310.28

preferences:
33.72 ms | 400 KiB | 5 Q