3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentpage = 'http://artmuseum.princeton.edu/learn/schedule-a-tour-or-visit/group-visits/calendar'; $now = mktime(0, 0, 0, date("m"), date("d"), date("Y")); $now1 = mktime(0, 0, 0, date("m")+1, date("d"), date("Y")); $now2 = mktime(0, 0, 0, date("m")+2, date("d"), date("Y")); $now3 = mktime(0, 0, 0, date("m")+3, date("d"), date("Y")); $now4 = mktime(0, 0, 0, date("m")+4, date("d"), date("Y")); $now5 = mktime(0, 0, 0, date("m")+5, date("d"), date("Y")); $now6 = mktime(0, 0, 0, date("m")+6, date("d"), date("Y")); $now7 = mktime(0, 0, 0, date("m")+7, date("d"), date("Y")); $now8 = mktime(0, 0, 0, date("m")+8, date("d"), date("Y")); $now9 = mktime(0, 0, 0, date("m")+9, date("d"), date("Y")); $now10 = mktime(0, 0, 0, date("m")+10, date("d"), date("Y")); $now11 = mktime(0, 0, 0, date("m")+11, date("d"), date("Y")); $now12 = mktime(0, 0, 0, date("m")+12, date("d"), date("Y")); $now13 = mktime(0, 0, 0, date("m")+13, date("d"), date("Y")); $now14 = mktime(0, 0, 0, date("m")+14, date("d"), date("Y")); $now15 = mktime(0, 0, 0, date("m")+15, date("d"), date("Y")); $now16 = mktime(0, 0, 0, date("m")+16, date("d"), date("Y")); $now17 = mktime(0, 0, 0, date("m")+17, date("d"), date("Y")); /* Labels */ $monthlabel = date("F Y", $now); $monthlabel1 = date("F Y", $now1); $monthlabel2 = date("F Y", $now2); $monthlabel3 = date("F Y", $now3); $monthlabel4 = date("F Y", $now4); $monthlabel5 = date("F Y", $now5); $monthlabel6 = date("F Y", $now6); $monthlabel7 = date("F Y", $now7); $monthlabel8 = date("F Y", $now8); $monthlabel9 = date("F Y", $now9); $monthlabel10 = date("F Y", $now10); $monthlabel11 = date("F Y", $now11); $monthlabel12 = date("F Y", $now12); $monthlabel13 = date("F Y", $now13); $monthlabel14 = date("F Y", $now14); $monthlabel15 = date("F Y", $now15); $monthlabel16 = date("F Y", $now16); $monthlabel17 = date("F Y", $now17); /* Values */ echo $monthvalue = $currentpage."?year=".date("Y", $now)."&month=".date("n", $now); echo $monthvalue1 = $currentpage."?year=".date("Y", $now1)."&month=".date("n", $now1); echo $monthvalue2 = $currentpage."?year=".date("Y", $now2)."&month=".date("n", $now2); echo $monthvalue3 = $currentpage."?year=".date("Y", $now3)."&month=".date("n", $now3); echo $monthvalue4 = $currentpage."?year=".date("Y", $now4)."&month=".date("n", $now4); echo $monthvalue5 = $currentpage."?year=".date("Y", $now5)."&month=".date("n", $now5); echo $monthvalue6 = $currentpage."?year=".date("Y", $now6)."&month=".date("n", $now6); echo $monthvalue7 = $currentpage."?year=".date("Y", $now7)."&month=".date("n", $now7); echo $monthvalue8 = $currentpage."?year=".date("Y", $now8)."&month=".date("n", $now8); echo $monthvalue9 = $currentpage."?year=".date("Y", $now9)."&month=".date("n", $now9); echo $monthvalue10 = $currentpage."?year=".date("Y", $now10)."&month=".date("n", $now10); echo $monthvalue11 = $currentpage."?year=".date("Y", $now11)."&month=".date("n", $now11); echo $monthvalue12 = $currentpage."?year=".date("Y", $now12)."&month=".date("n", $now12); echo $monthvalue13 = $currentpage."?year=".date("Y", $now13)."&month=".date("n", $now13); echo $monthvalue14 = $currentpage."?year=".date("Y", $now14)."&month=".date("n", $now14); echo $monthvalue15 = $currentpage."?year=".date("Y", $now15)."&month=".date("n", $now15); echo $monthvalue16 = $currentpage."?year=".date("Y", $now16)."&month=".date("n", $now16); echo $monthvalue17 = $currentpage."?year=".date("Y", $now17)."&month=".date("n", $now17);

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)
8.3.60.0090.00616.75
8.3.50.0160.00722.10
8.3.40.0110.00419.03
8.3.30.0040.01119.27
8.3.20.0080.00020.50
8.3.10.0080.00023.42
8.3.00.0090.00020.96
8.2.180.0120.00916.63
8.2.170.0120.00922.96
8.2.160.0140.00022.11
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0000.00819.95
8.2.110.0090.00022.11
8.2.100.0090.00420.53
8.2.90.0000.00819.53
8.2.80.0030.00617.97
8.2.70.0050.00317.75
8.2.60.0030.00618.18
8.2.50.0090.00018.07
8.2.40.0060.00318.41
8.2.30.0000.00718.57
8.2.20.0050.00317.87
8.2.10.0000.00818.33
8.2.00.0030.00519.71
8.1.280.0040.01125.92
8.1.270.0000.00823.92
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00322.13
8.1.230.0080.00319.28
8.1.220.0000.00817.93
8.1.210.0000.00918.77
8.1.200.0100.00017.60
8.1.190.0080.00017.48
8.1.180.0030.00518.10
8.1.170.0030.00618.92
8.1.160.0040.00422.18
8.1.150.0040.00418.96
8.1.140.0030.00617.73
8.1.130.0000.00718.03
8.1.120.0040.00417.63
8.1.110.0000.00717.69
8.1.100.0070.00017.74
8.1.90.0000.00717.71
8.1.80.0080.00017.61
8.1.70.0000.00717.67
8.1.60.0030.00917.64
8.1.50.0000.00817.75
8.1.40.0030.00617.64
8.1.30.0000.00817.87
8.1.20.0060.00317.72
8.1.10.0000.00817.76
8.1.00.0080.00017.68
8.0.300.0070.00018.77
8.0.290.0030.00617.00
8.0.280.0000.00718.64
8.0.270.0020.00517.48
8.0.260.0030.00317.47
8.0.250.0000.00717.16
8.0.240.0030.00317.19
8.0.230.0030.00317.17
8.0.220.0090.00017.12
8.0.210.0030.00517.24
8.0.200.0070.00017.19
8.0.190.0000.00817.27
8.0.180.0080.00017.27
8.0.170.0080.00017.25
8.0.160.0000.00917.14
8.0.150.0050.00217.20
8.0.140.0000.00817.21
8.0.130.0060.00013.61
8.0.120.0040.00417.20
8.0.110.0040.00417.27
8.0.100.0040.00417.15
8.0.90.0000.00717.04
8.0.80.0090.00617.27
8.0.70.0050.00317.03
8.0.60.0020.00517.36
8.0.50.0040.00417.30
8.0.30.0140.00617.38
8.0.20.0090.01217.40
8.0.10.0040.00417.39
8.0.00.0070.01116.95
7.4.330.0000.00615.25
7.4.320.0000.00816.79
7.4.300.0000.00716.72
7.4.290.0050.00216.79
7.4.280.0040.00416.86
7.4.270.0050.00316.75
7.4.260.0030.00316.85
7.4.250.0050.00316.81
7.4.240.0050.00316.77
7.4.230.0070.00016.84
7.4.220.0100.00716.74
7.4.210.0090.01216.83
7.4.200.0040.00416.69
7.4.160.0100.00716.71
7.4.150.0080.01117.40
7.4.140.0140.00517.86
7.4.130.0080.01016.71
7.4.120.0080.00916.82
7.4.110.0140.00316.75
7.4.100.0100.00916.75
7.4.90.0180.00616.91
7.4.80.0120.01219.39
7.4.70.0060.01516.93
7.4.60.0140.00316.59
7.4.50.0030.00616.80
7.4.40.0130.00316.59
7.4.30.0090.00916.88
7.4.00.0080.00915.32
7.3.330.0030.00313.34
7.3.320.0020.00213.48
7.3.310.0000.00716.43
7.3.300.0000.00716.50
7.3.290.0070.00716.45
7.3.280.0110.00816.49
7.3.270.0110.00717.40
7.3.260.0120.00616.60
7.3.250.0130.00716.75
7.3.240.0060.01216.73
7.3.230.0060.01216.70
7.3.210.0110.01016.88
7.3.200.0050.01419.39
7.3.190.0090.01016.57
7.3.180.0080.00816.60
7.3.170.0160.00316.58
7.3.160.0150.00416.59
7.3.120.0140.00415.08
7.3.110.0060.00814.91
7.3.100.0080.00815.15
7.3.90.0090.00414.95
7.3.80.0030.00915.11
7.3.70.0000.01415.09
7.3.60.0040.00615.07
7.3.50.0030.01015.05
7.3.40.0090.00315.14
7.3.30.0060.00514.97
7.3.20.0030.00916.82
7.3.10.0080.00816.74
7.3.00.0060.01016.60
7.2.330.0080.01916.73
7.2.320.0080.00816.95
7.2.310.0120.00617.02
7.2.300.0110.00816.97
7.2.290.0120.00616.73
7.2.250.0100.00915.26
7.2.240.0090.01015.23
7.2.230.0070.01015.26
7.2.220.0080.00615.47
7.2.210.0110.00315.59
7.2.200.0040.01315.18
7.2.190.0020.01115.23
7.2.180.0070.00515.15
7.2.170.0080.00715.37
7.1.330.0070.00515.86
7.1.320.0030.00715.98
7.1.310.0040.00716.04
7.1.300.0050.01115.85
7.1.290.0050.00715.91
7.1.280.0060.00615.91
7.1.270.0050.00915.86
7.1.260.0070.00615.71
7.1.70.0090.00017.11
7.1.60.0080.01519.70
7.1.50.0090.01217.00
7.1.00.0030.08022.41
7.0.200.0000.01117.03
7.0.140.0070.07322.12
7.0.100.0070.05021.76
7.0.90.0100.08321.77
7.0.80.0030.04721.74
7.0.70.0100.07021.65
7.0.60.0000.07321.79
7.0.50.0030.08722.12
7.0.40.0100.04320.17
7.0.30.0100.06720.03
7.0.20.0070.04320.04
7.0.10.0030.08320.14
7.0.00.0070.07320.09
5.6.280.0070.07320.85
5.6.250.0030.05020.82
5.6.240.0070.04720.65
5.6.230.0100.08720.69
5.6.220.0070.05720.64
5.6.210.0000.09020.54
5.6.200.0030.05021.14
5.6.190.0030.07321.14
5.6.180.0100.04321.23
5.6.170.0030.08721.11
5.6.160.0030.08021.09
5.6.150.0130.08021.22
5.6.140.0070.05021.16
5.6.130.0030.04721.01
5.6.120.0070.07721.06
5.6.110.0030.09321.15
5.6.100.0100.08021.14
5.6.90.0100.08321.20
5.6.80.0130.06720.48
5.6.70.0100.04020.54
5.6.60.0030.06720.45
5.6.50.0130.06720.40
5.6.40.0070.03720.41
5.6.30.0000.07020.47
5.6.20.0030.07720.46
5.6.10.0130.06020.37
5.6.00.0070.05720.47
5.5.380.0130.03720.38
5.5.370.0030.08320.39
5.5.360.0130.08020.47
5.5.350.0100.08320.41
5.5.340.0100.06720.71
5.5.330.0030.06320.84
5.5.320.0030.05020.71
5.5.310.0070.06020.95
5.5.300.0000.07020.86
5.5.290.0130.06320.89
5.5.280.0100.07320.95
5.5.270.0130.07720.96
5.5.260.0130.06020.78
5.5.250.0000.07720.73
5.5.240.0000.04320.38
5.5.230.0030.07720.32
5.5.220.0030.07720.21
5.5.210.0070.05720.27
5.5.200.0070.04320.32
5.5.190.0070.08020.27
5.5.180.0170.03720.24
5.5.160.0030.08020.32
5.5.150.0070.07720.32
5.5.140.0070.04720.20
5.5.130.0070.04020.33
5.5.120.0130.04020.34
5.5.110.0030.04020.20
5.5.100.0000.08019.99
5.5.90.0100.06020.03
5.5.80.0070.03720.16
5.5.70.0100.04320.18
5.5.60.0130.06720.11
5.5.50.0170.06320.09
5.5.40.0070.07320.14
5.5.30.0130.07020.20
5.5.20.0030.05020.10
5.5.10.0070.04320.09
5.5.00.0030.08020.18
5.4.450.0070.06719.36
5.4.440.0000.08319.27
5.4.430.0100.05719.14
5.4.420.0100.04719.14
5.4.410.0070.06319.14
5.4.400.0030.06719.07
5.4.390.0000.04719.05
5.4.380.0000.08319.11
5.4.370.0000.08019.09
5.4.360.0100.06019.09
5.4.350.0030.04019.03
5.4.340.0070.04319.26
5.4.320.0000.06718.78
5.4.310.0070.07019.23
5.4.300.0100.07718.78
5.4.290.0000.06319.07
5.4.280.0030.07718.98
5.4.270.0100.04019.05
5.4.260.0000.04319.05
5.4.250.0130.07019.14
5.4.240.0000.08319.04
5.4.230.0030.04019.07
5.4.220.0070.07018.80
5.4.210.0130.04318.93
5.4.200.0100.07719.00
5.4.190.0070.06318.83
5.4.180.0200.06718.88
5.4.170.0100.06719.02
5.4.160.0100.08019.00
5.4.150.0100.06719.13
5.4.140.0030.08016.33
5.4.130.0000.08316.31
5.4.120.0100.06716.32
5.4.110.0130.06316.48
5.4.100.0070.05716.48
5.4.90.0130.07016.26
5.4.80.0100.07016.27
5.4.70.0030.04316.30
5.4.60.0130.07016.27
5.4.50.0130.06016.29
5.4.40.0030.05016.23
5.4.30.0130.06016.40
5.4.20.0130.06716.44
5.4.10.0130.06316.32
5.4.00.0070.07015.79
5.3.290.0030.08014.75
5.3.280.0130.07014.66
5.3.270.0030.07714.60
5.3.260.0130.07014.68
5.3.250.0100.07314.65
5.3.240.0000.08314.54
5.3.230.0030.07314.54
5.3.220.0130.06014.51
5.3.210.0070.07014.63
5.3.200.0070.07714.48
5.3.190.0100.05714.64
5.3.180.0170.04714.58
5.3.170.0070.06014.50
5.3.160.0030.08014.59
5.3.150.0070.06014.58
5.3.140.0000.08014.62
5.3.130.0130.07314.60
5.3.120.0130.07014.57
5.3.110.0100.06714.64
5.3.100.0070.07313.94
5.3.90.0030.08013.92
5.3.80.0070.07314.07
5.3.70.0170.05314.02
5.3.60.0070.03714.07
5.3.50.0070.07314.01
5.3.40.0070.06014.02
5.3.30.0100.07313.85
5.3.20.0000.05713.55
5.3.10.0000.05013.70
5.3.00.0030.04013.66

preferences:
48.44 ms | 401 KiB | 5 Q