3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tweetLookup = [ 'Four', 'One', 'Two', 'Three', ]; for ($i = 0; $i <= 25; $i++) { echo $i . ": " . $tweetLookup[date("d", strtotime( "+$i days")) % 4]; echo "\n"; }

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.4.120.0130.00724.21
8.4.110.0130.00720.84
8.4.100.0120.00918.65
8.4.90.0120.00822.18
8.4.80.0090.00918.34
8.4.70.0110.01119.16
8.4.60.0100.01118.75
8.4.50.0160.00718.82
8.4.40.0170.00319.70
8.4.30.0130.00320.28
8.4.20.0070.01317.93
8.4.10.0090.00022.22
8.3.250.0120.00719.11
8.3.240.0110.00717.20
8.3.230.0090.00216.88
8.3.220.0100.00918.77
8.3.210.0090.01016.60
8.3.200.0140.00616.71
8.3.190.0110.00717.11
8.3.180.0110.00719.07
8.3.170.0060.01316.86
8.3.160.0150.00318.87
8.3.150.0090.00918.82
8.3.140.0050.00318.76
8.3.130.0050.00318.73
8.3.120.0080.00418.82
8.3.110.0000.01020.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0090.00316.88
8.3.70.0120.00316.73
8.3.60.0060.01218.55
8.3.50.0130.00620.36
8.3.40.0120.00418.88
8.3.30.0030.01019.10
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0050.00322.29
8.2.280.0180.00118.72
8.2.270.0100.01016.61
8.2.260.0070.01116.50
8.2.250.0110.00716.73
8.2.240.0080.00019.03
8.2.230.0120.00022.58
8.2.220.0100.00037.54
8.2.210.0000.00826.77
8.2.200.0030.00718.54
8.2.190.0090.00918.13
8.2.180.0110.01125.92
8.2.170.0150.00019.21
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0030.00521.17
8.2.110.0070.00319.27
8.2.100.0110.00017.97
8.2.90.0050.00319.28
8.2.80.0000.00817.97
8.2.70.0070.00717.61
8.2.60.0050.00318.18
8.2.50.0030.00518.07
8.2.40.0000.00819.30
8.2.30.0080.00018.36
8.2.20.0000.00720.45
8.2.10.0070.00018.18
8.2.00.0070.00019.37
8.1.330.0110.00921.98
8.1.320.0110.00817.95
8.1.310.0080.00016.36
8.1.300.0040.00418.30
8.1.290.0090.00030.84
8.1.280.0040.01125.92
8.1.270.0090.00022.22
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00319.48
8.1.230.0040.00822.78
8.1.220.0080.00017.79
8.1.210.0000.00918.77
8.1.200.0060.00317.60
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0000.00918.74
8.1.160.0070.00019.02
8.1.150.0050.00318.88
8.1.140.0070.00017.66
8.1.130.0070.00019.01
8.1.120.0030.00617.73
8.1.110.0060.00317.68
8.1.100.0000.00817.75
8.1.90.0060.00317.65
8.1.80.0050.00317.68
8.1.70.0000.00717.71
8.1.60.0080.00017.81
8.1.50.0280.00617.60
8.1.40.0180.00617.63
8.1.30.0270.00317.70
8.1.20.0220.00617.74
8.1.10.0190.00817.68
8.1.00.0190.01017.65
8.0.300.0040.00419.81
8.0.290.0050.00317.00
8.0.280.0000.00718.63
8.0.270.0040.00417.02
8.0.260.0060.00018.49
8.0.250.0050.00317.18
8.0.240.0070.00017.11
8.0.230.0030.00517.18
8.0.220.0000.00817.12
8.0.210.0040.00417.00
8.0.200.0000.00717.22
8.0.190.0040.00417.13
8.0.180.0160.00817.03
8.0.170.0200.00417.13
8.0.160.0200.00317.14
8.0.150.0170.00717.02
8.0.140.0220.00016.95
8.0.130.0180.00417.14
8.0.120.0180.00417.07
8.0.110.0180.00417.02
8.0.100.0200.00317.01
8.0.90.0130.01317.09
8.0.80.0210.00017.09
8.0.70.0130.00917.11
8.0.60.0170.00616.88
8.0.50.0220.00317.06
8.0.30.0170.00317.05
8.0.20.0170.00717.04
8.0.10.0090.01317.27
7.4.330.0000.00515.55
7.4.320.0030.00316.84
7.4.300.0070.00016.63
7.4.290.0170.00616.69
7.4.280.0230.00016.60
7.4.270.0170.00716.72
7.4.260.0110.01416.74
7.4.250.0170.00816.76
7.4.240.0140.01016.65
7.4.230.0180.00716.63
7.4.220.0150.00616.57
7.4.210.0110.01016.46
7.4.200.0120.00916.57
7.4.190.0120.00816.65
7.4.180.0130.00716.61
7.4.160.0170.00316.70
7.4.150.0160.00616.62
7.4.140.0160.00616.45
7.4.130.0130.00916.41
7.4.120.0180.00416.57
7.4.110.0180.00516.59
7.4.100.0140.00616.58
7.4.90.0190.00316.49
7.4.80.0130.00616.55
7.4.70.0130.00916.51
7.4.60.0150.01016.42
7.4.50.0150.00716.53
7.4.40.0190.00316.36
7.4.30.0170.00316.49
7.4.20.0110.01116.49
7.4.10.0170.00616.43
7.4.00.0080.01616.51

preferences:
28.92 ms | 403 KiB | 5 Q