3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currMonth = date('Y-m') ; $ts = time() ; $nextWed = false ; do { $currentWed = $nextWed ; $nextWedTS = strtotime('next wednesday', $ts) ; $ts = $nextWedTS ; $nextWed = date('Y-m-d', $nextWedTS) ; $nextWedMonth = date('Y-m', $nextWedTS) ; } while ($nextWedMonth == $currMonth) ; echo $currentWed;

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.3.00.0030.01516.68
7.2.130.0130.00616.49
7.2.120.0070.01417.09
7.2.110.0120.00416.97
7.2.100.0130.00216.61
7.2.90.0070.00816.98
7.2.80.0050.01117.09
7.2.70.0100.00517.17
7.2.60.0050.01017.00
7.2.50.0140.00116.99
7.2.40.0110.00417.16
7.2.30.0210.01016.89
7.2.20.0070.00716.89
7.2.10.0090.00816.92
7.2.00.0060.00917.92
7.1.250.0030.01315.79
7.1.240.0110.00515.97
7.1.230.0060.01016.16
7.1.220.0120.00516.11
7.1.210.1010.00615.92
7.1.200.0060.01016.06
7.1.190.0090.00815.91
7.1.180.0120.00716.06
7.1.170.0120.00215.84
7.1.160.0090.00615.95
7.1.150.0100.00615.88
7.1.140.0070.00715.76
7.1.130.0080.00716.03
7.1.120.0070.00615.83
7.1.110.0100.00416.05
7.1.100.0050.00816.83
7.1.90.0110.00516.05
7.1.80.0080.00615.95
7.1.70.0060.00716.43
7.1.60.0060.01017.09
7.1.50.0120.00916.33
7.1.40.0100.00716.03
7.1.30.0080.00615.91
7.1.20.0130.00615.95
7.1.10.0110.00416.06
7.1.00.0070.01518.09
7.0.330.0090.00315.60
7.0.320.0030.00615.23
7.0.310.0080.00315.31
7.0.300.0070.00515.53
7.0.290.0020.01315.45
7.0.280.0080.00515.45
7.0.270.0060.00715.60
7.0.260.0070.00715.58
7.0.250.0400.00215.62
7.0.240.0090.00515.64
7.0.230.0060.01015.61
7.0.220.0110.00315.55
7.0.210.0120.00115.54
7.0.200.0060.00715.92
7.0.190.0090.00615.51
7.0.180.0090.00615.41
7.0.170.0020.01115.68
7.0.160.0130.00215.70
7.0.150.0040.00715.48
7.0.140.0070.02917.60
7.0.130.0210.00715.54
7.0.120.0090.00415.51
7.0.110.0050.01115.51
7.0.100.0200.00615.54
7.0.90.0110.00515.43
7.0.80.0300.02716.79
7.0.70.0220.02816.97
7.0.60.0250.03016.93
7.0.50.0220.02517.13
7.0.40.0100.02515.74
7.0.30.0080.02215.80
7.0.20.0060.02815.77
7.0.10.0070.02815.72
7.0.00.0060.03115.62
5.6.380.0140.00514.66
5.6.370.0130.00314.50
5.6.360.0060.00614.54
5.6.350.0080.00614.58
5.6.340.0090.00614.51
5.6.330.0100.00314.49
5.6.320.0100.00314.45
5.6.310.0070.00914.46
5.6.300.0110.00314.48
5.6.290.0090.00514.28
5.6.280.0080.02716.53
5.6.270.0100.00314.55
5.6.260.0090.00714.46
5.6.250.0080.00514.60
5.6.240.0090.00714.47
5.6.230.0040.03316.40
5.6.220.0050.02016.44
5.6.210.0080.03016.61
5.6.200.0070.02116.72
5.6.190.0120.02816.76
5.6.180.0070.03116.55
5.6.170.0070.03216.58
5.6.160.0080.02116.66
5.6.150.0100.01716.50
5.6.140.0100.02916.69
5.6.130.0120.03016.57
5.6.120.0050.03716.66
5.6.110.0050.02916.56
5.6.100.0100.02716.61
5.6.90.0050.02616.53
5.6.80.0150.02516.43
5.6.70.0040.03516.39
5.6.60.0100.02216.34
5.6.50.0120.01516.34
5.6.40.0140.02816.49
5.6.30.0060.03216.24
5.6.20.0090.02716.36
5.6.10.0090.03116.30
5.6.00.0090.02316.22
5.5.380.0070.00512.20
5.5.370.0110.01614.92
5.5.360.0060.02114.94
5.5.350.0110.03014.96
5.5.340.0090.02315.10
5.5.330.0090.02315.05
5.5.320.0140.02315.10
5.5.310.0040.02515.06
5.5.300.0100.02715.09
5.5.290.0080.03015.01
5.5.280.0070.01815.05
5.5.270.0040.03715.08
5.5.260.0060.03015.10
5.5.250.0060.02215.04
5.5.240.0070.02114.84
5.5.230.0080.01914.89
5.5.220.0060.02714.80
5.5.210.0050.02114.87
5.5.200.0100.02614.84
5.5.190.0090.01914.82
5.5.180.0030.03114.86
5.5.170.0060.00612.98
5.5.160.0070.03014.86
5.5.150.0030.03214.88
5.5.140.0040.02014.86
5.5.130.0070.02814.85
5.5.120.0070.03014.84
5.5.110.0080.02914.82
5.5.100.0100.02814.85
5.5.90.0120.02114.82
5.5.80.0120.02514.84
5.5.70.0100.02814.85
5.5.60.0050.03314.81
5.5.50.0090.01814.84
5.5.40.0070.03014.81
5.5.30.0090.02714.80
5.5.20.0060.02614.81
5.5.10.0040.03114.79
5.5.00.0050.02714.79
5.4.450.0090.02114.58
5.4.440.0110.02914.59
5.4.430.0080.02314.59
5.4.420.0160.02214.51
5.4.410.0100.02114.55
5.4.400.0100.02214.50
5.4.390.0120.02814.43
5.4.380.0080.02014.50
5.4.370.0110.02714.51
5.4.360.0080.03014.50
5.4.350.0090.02814.48
5.4.340.0060.02614.49
5.4.330.0090.00312.20
5.4.320.0110.01514.48
5.4.310.0020.03214.43
5.4.300.0050.03014.43
5.4.290.0100.02714.49
5.4.280.0050.02814.43
5.4.270.0050.02214.45
5.4.260.0060.03014.48
5.4.250.0100.02514.43
5.4.240.0050.03114.49
5.4.230.0080.02714.49
5.4.220.0060.03114.54
5.4.210.0050.02114.47
5.4.200.0070.02814.43
5.4.190.0040.03214.44
5.4.180.0040.02814.39
5.4.170.0060.02914.45
5.4.160.0080.02614.47
5.4.150.0070.02914.43
5.4.140.0050.02913.61
5.4.130.0090.02413.60
5.4.120.0060.02713.57
5.4.110.0060.02813.63
5.4.100.0100.01913.54
5.4.90.0090.02413.59
5.4.80.0050.02613.62
5.4.70.0050.02913.61
5.4.60.0090.01613.54
5.4.50.0060.02313.60
5.4.40.0120.02013.54
5.4.30.0040.02113.60
5.4.20.0040.02413.54
5.4.10.0100.02313.59
5.4.00.0080.02613.40
5.3.290.0030.03313.00
5.3.280.0060.03012.98
5.3.270.0030.02912.94
5.3.260.0080.02712.98
5.3.250.0080.02012.95
5.3.240.0060.02813.00
5.3.230.0040.02912.98
5.3.220.0030.02912.97
5.3.210.0060.02912.94
5.3.200.0060.02112.94
5.3.190.0040.02312.99
5.3.180.0100.01912.98
5.3.170.0050.02912.97
5.3.160.0050.02712.93
5.3.150.0060.02712.98
5.3.140.0090.01712.96
5.3.130.0040.02912.98
5.3.120.0060.02712.95
5.3.110.0070.02712.98
5.3.100.0080.02812.75
5.3.90.0080.02412.77
5.3.80.0050.02212.78
5.3.70.0060.02612.79
5.3.60.0030.03112.77
5.3.50.0030.02112.75
5.3.40.0060.01612.78
5.3.30.0060.02712.70
5.3.20.0080.01812.69
5.3.10.0060.01412.68
5.3.00.0060.02912.67

preferences:
36.7 ms | 400 KiB | 5 Q