3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = strtotime('this Thursday'); if($str <= strtotime("now")){ echo 'This thurs'."\n"; $thrs = date('mdy',$str); }else{ echo 'Last Thurs'."\n"; $str = strtotime('last Thursday'); $thrs = date('mdy',$str); } $link = 'http://marc.ucla.edu/mpeg/Hammer'.$thrs.'.mp3'; echo $link; // //echo date('mdy',$tuestr);

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.40.0070.00718.86
8.3.30.0150.00318.88
8.3.20.0100.00020.16
8.3.10.0040.00423.61
8.3.00.0080.00019.50
8.2.170.0090.00622.96
8.2.160.0130.00320.51
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00019.44
8.2.120.0040.00426.35
8.2.110.0030.00622.25
8.2.100.0120.00018.03
8.2.90.0050.00319.17
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0080.00018.05
8.2.50.0060.00318.34
8.2.40.0040.00422.21
8.2.30.0040.00419.43
8.2.20.0000.00818.10
8.2.10.0080.00018.19
8.2.00.0040.00418.25
8.1.270.0070.00022.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0160.00620.86
8.1.230.0070.00419.22
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.60
8.1.190.0040.00417.48
8.1.180.0000.00720.09
8.1.170.0080.00018.64
8.1.160.0000.00819.07
8.1.150.0000.00720.79
8.1.140.0000.00719.69
8.1.130.0000.00719.02
8.1.120.0000.00717.71
8.1.110.0060.00317.63
8.1.100.0030.00617.79
8.1.90.0000.00717.61
8.1.80.0000.00717.61
8.1.70.0040.00417.62
8.1.60.0040.00417.80
8.1.50.0000.00917.70
8.1.40.0040.00417.70
8.1.30.0040.00417.78
8.1.20.0050.00317.86
8.1.10.0000.00817.60
8.1.00.0000.00717.63
8.0.300.0090.00018.77
8.0.290.0050.00217.00
8.0.280.0000.00718.59
8.0.270.0000.00817.14
8.0.260.0030.00317.10
8.0.250.0000.00817.20
8.0.240.0000.00817.18
8.0.230.0040.00417.20
8.0.220.0030.00317.05
8.0.210.0040.00417.21
8.0.200.0030.00317.26
8.0.190.0070.00317.16
8.0.180.0040.00417.17
8.0.170.0050.00317.18
8.0.160.0000.00717.13
8.0.150.0030.00317.16
8.0.140.0040.00317.04
8.0.130.0030.00313.45
8.0.120.0040.00417.16
8.0.110.0060.00316.95
8.0.100.0050.00216.98
8.0.90.0040.00416.98
8.0.80.0060.01217.09
8.0.70.0080.00017.11
8.0.60.0070.00016.92
8.0.50.0070.00017.21
8.0.30.0090.00717.28
8.0.20.0110.00917.41
8.0.10.0000.00817.13
8.0.00.0090.00916.88
7.4.330.0050.00015.55
7.4.320.0070.00016.60
7.4.300.0030.00316.56
7.4.290.0000.00916.73
7.4.280.0050.00316.71
7.4.270.0080.00016.76
7.4.260.0030.00616.72
7.4.250.0000.00816.71
7.4.240.0050.00316.69
7.4.230.0000.00716.62
7.4.220.0030.02116.76
7.4.210.0030.01016.59
7.4.200.0070.00016.59
7.4.160.0110.01016.62
7.4.150.0030.01417.40
7.4.140.0110.00617.86
7.4.130.0030.02016.53
7.4.120.0110.01016.63
7.4.110.0100.00716.61
7.4.100.0090.00916.53
7.4.90.0030.01416.48
7.4.80.0160.00419.39
7.4.70.0050.01116.73
7.4.60.0060.01016.60
7.4.50.0060.00616.36
7.4.40.0190.00316.79
7.4.30.0080.01516.82
7.4.00.0030.01215.15
7.3.330.0020.00213.33
7.3.320.0030.00313.38
7.3.310.0030.00516.32
7.3.300.0000.00716.37
7.3.290.0080.00716.47
7.3.280.0080.00916.45
7.3.270.0100.00717.40
7.3.260.0100.00616.60
7.3.250.0050.01216.56
7.3.240.0110.00816.85
7.3.230.0270.03016.74
7.3.210.0100.00716.51
7.3.200.0150.00316.63
7.3.190.0030.01816.59
7.3.180.0130.00316.64
7.3.170.0100.00716.45
7.3.160.0070.01416.46
7.2.330.0140.00316.74
7.2.320.0160.00316.70
7.2.310.0140.00716.95
7.2.300.0090.01216.86
7.2.290.0110.00716.92
7.2.90.0040.01215.03
7.2.80.0080.00414.84
7.2.70.0870.00015.53
7.2.60.0540.00614.94
7.2.50.0250.00315.16
7.2.40.1800.01015.15
7.2.30.1990.00315.11
7.2.20.0690.00715.10
7.2.10.0150.01115.22
7.2.00.0160.00015.43
7.1.210.0000.01613.95
7.1.200.0140.00413.98
7.1.190.1940.00314.13
7.1.180.0130.00013.87
7.1.170.0030.00913.76
7.1.160.1940.00714.12
7.1.150.0110.00314.05
7.1.140.0440.00414.03
7.1.130.2420.00013.84
7.1.120.0110.00613.93
7.1.110.0160.00014.23
7.1.100.1830.00614.02
7.1.90.0080.00714.16
7.1.80.0090.01514.13
7.1.70.0360.01713.86
7.1.60.0380.01032.07
7.1.50.0320.01331.82
7.1.40.1240.00731.96
7.1.30.0260.00932.09
7.1.20.0250.02232.06
7.1.10.0030.01314.15
7.1.00.0180.00014.28
7.0.310.0110.00013.64
7.0.300.1540.01013.54
7.0.290.0090.00613.64
7.0.280.0540.00613.55
7.0.270.0430.00713.62
7.0.260.0910.00913.48
7.0.250.2860.01013.54
7.0.240.0090.00613.67
7.0.230.1250.00613.75
7.0.220.0440.00513.63
7.0.210.0660.00613.50
7.0.200.0220.00413.81
7.0.190.0110.00813.69
7.0.180.0660.01013.65
7.0.170.1010.00713.72
7.0.160.0190.00313.52
7.0.150.0090.01213.62
7.0.140.1600.00313.54
7.0.130.0190.00313.69
7.0.120.0130.00313.64
7.0.110.0080.00813.76
7.0.100.0100.00313.78
7.0.90.0420.00313.85
7.0.80.0110.00413.76
7.0.70.2120.00313.68
7.0.60.0090.00613.60
7.0.50.0570.00013.73
7.0.40.0250.00713.75
7.0.30.0380.00313.77
7.0.20.0330.00313.91
7.0.10.0080.00513.94
7.0.00.0050.01013.51

preferences:
47.29 ms | 400 KiB | 5 Q