3v4l.org

run code in 300+ PHP versions simultaneously
<?php $this_thr_str = strtotime('this Thursday'); if($this_thr_str <= strtotime("now")){ echo 'This thurs<br>'; $thrs = date('mdy',$this_thr_str); }else{ echo 'Last Thurs<br>'; $thrs = strtotime('last Tuesday'); } $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.60.0110.00416.63
8.3.50.0100.00716.36
8.3.40.0070.00718.80
8.3.30.0100.00618.88
8.3.20.0110.00020.29
8.3.10.0030.00623.48
8.3.00.0080.00019.51
8.2.180.0140.00316.88
8.2.170.0150.00022.96
8.2.160.0090.00622.26
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00519.43
8.2.120.0070.00026.35
8.2.110.0070.00322.20
8.2.100.0090.00318.02
8.2.90.0040.00419.17
8.2.80.0060.00318.15
8.2.70.0000.00817.88
8.2.60.0050.00218.05
8.2.50.0000.00818.10
8.2.40.0050.00320.68
8.2.30.0000.00719.25
8.2.20.0000.00818.15
8.2.10.0000.00718.07
8.2.00.0030.00618.25
8.1.280.0060.01025.92
8.1.270.0100.00722.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00621.20
8.1.230.0090.00319.18
8.1.220.0030.00617.91
8.1.210.0080.00018.77
8.1.200.0070.00317.48
8.1.190.0050.00317.60
8.1.180.0040.00418.10
8.1.170.0040.00418.63
8.1.160.0070.00019.15
8.1.150.0050.00220.78
8.1.140.0060.00319.63
8.1.130.0000.00718.98
8.1.120.0070.00017.67
8.1.110.0040.00417.73
8.1.100.0070.00017.55
8.1.90.0040.00417.61
8.1.80.0030.00317.66
8.1.70.0030.00517.59
8.1.60.0040.00417.76
8.1.50.0030.00517.74
8.1.40.0040.00417.59
8.1.30.0020.00517.67
8.1.20.0000.00717.77
8.1.10.0000.00817.71
8.1.00.0090.00017.75
8.0.300.0040.00420.16
8.0.290.0040.00417.00
8.0.280.0000.00718.58
8.0.270.0080.00017.30
8.0.260.0000.00717.17
8.0.250.0000.00717.16
8.0.240.0030.00617.21
8.0.230.0030.00317.19
8.0.220.0000.00717.20
8.0.210.0000.00817.14
8.0.200.0030.00317.20
8.0.190.0030.00617.11
8.0.180.0040.00417.09
8.0.170.0040.00417.13
8.0.160.0000.00817.11
8.0.150.0000.00717.09
8.0.140.0000.00717.10
8.0.130.0030.00313.55
8.0.120.0040.00417.16
8.0.110.0000.00817.20
8.0.100.0070.00017.18
8.0.90.0000.00717.20
8.0.80.0000.01717.21
8.0.70.0040.00417.21
8.0.60.0050.00217.16
8.0.50.0070.00017.05
8.0.30.0100.00717.27
8.0.20.0090.01117.41
8.0.10.0000.00817.28
8.0.00.0070.01117.12
7.4.330.0060.00015.55
7.4.320.0000.00616.65
7.4.300.0040.00416.69
7.4.290.0000.01016.74
7.4.280.0050.00316.63
7.4.270.0000.00616.75
7.4.260.0070.00316.56
7.4.250.0050.00216.69
7.4.240.0000.00816.73
7.4.230.0030.00316.56
7.4.220.0070.01316.75
7.4.210.0110.00716.74
7.4.200.0000.00716.48
7.4.160.0120.00316.71
7.4.150.0130.00317.40
7.4.140.0060.01217.86
7.4.130.0160.00316.69
7.4.120.0100.01016.73
7.4.110.0120.00616.63
7.4.100.0140.00316.63
7.4.90.0060.01216.62
7.4.80.0130.00319.39
7.4.70.0070.01016.50
7.4.60.0100.00716.64
7.4.50.0060.00916.70
7.4.40.0090.00916.73
7.4.30.0030.01416.61
7.4.00.0000.01615.13
7.3.330.0060.00013.38
7.3.320.0020.00213.37
7.3.310.0040.00416.52
7.3.300.0000.00716.47
7.3.290.0040.01016.50
7.3.280.0060.01116.44
7.3.270.0130.00317.40
7.3.260.0120.00516.69
7.3.250.0090.00916.68
7.3.240.0090.00916.67
7.3.230.0080.00816.51
7.3.210.0050.01116.55
7.3.200.0130.00316.43
7.3.190.0160.00016.50
7.3.180.0080.00917.04
7.3.170.0100.00616.48
7.3.160.0030.01216.59
7.2.330.0090.00916.65
7.2.320.0150.00416.76
7.2.310.0130.01016.79
7.2.300.0100.01317.13
7.2.290.0140.00317.00
7.2.90.0080.00817.01
7.2.80.0070.01016.84
7.2.70.0000.01316.98
7.2.60.0030.01217.19
7.2.50.0100.00717.09
7.2.40.0090.00916.87
7.2.30.0100.00517.29
7.2.20.1210.00715.50
7.2.10.0140.00317.29
7.2.00.0030.01016.96
7.1.210.0030.01415.95
7.1.200.0090.00615.88
7.1.190.1280.00316.14
7.1.180.0130.00315.93
7.1.170.0090.00515.72
7.1.160.0150.00215.68
7.1.150.0070.00716.00
7.1.140.0000.01515.97
7.1.130.0030.00915.75
7.1.120.0090.00915.99
7.1.110.0100.00515.81
7.1.100.0060.01215.89
7.1.90.0050.01016.00
7.1.80.0030.01615.95
7.1.70.0150.00615.83
7.1.60.0280.01533.90
7.1.50.1360.01033.93
7.1.40.0260.01534.18
7.1.30.0290.01033.70
7.1.20.0350.00833.98
7.1.10.0060.01215.83
7.1.00.0070.01116.04
7.0.310.0040.01115.54
7.0.300.0060.00615.28
7.0.290.0130.00615.71
7.0.280.0070.01115.53
7.0.270.0060.00815.61
7.0.260.0030.01215.57
7.0.250.0080.00815.66
7.0.240.0040.00915.31
7.0.230.0090.00915.70
7.0.220.0100.00815.52
7.0.210.0040.01415.69
7.0.200.0120.00315.68
7.0.190.0100.00315.70
7.0.180.0110.00315.73
7.0.170.0130.00315.73
7.0.160.0090.00915.57
7.0.150.0110.00715.70
7.0.140.0070.00715.70
7.0.130.0030.01515.55
7.0.120.0040.01115.38
7.0.110.0050.01115.69
7.0.100.0080.00315.57
7.0.90.0090.00315.42
7.0.80.0050.00515.46
7.0.70.0130.00015.57
7.0.60.1440.00615.64
7.0.50.0050.00815.62
7.0.40.0120.00015.70
7.0.30.0120.00015.70
7.0.20.0040.00815.61
7.0.10.0080.00615.65
7.0.00.0060.00415.51

preferences:
47.05 ms | 400 KiB | 5 Q