3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days_of_week = array("monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"); function stringParse(array $string) { for($i = 0; $i < count($string); $i++) { $string[$i] = substr($string[$i],0,3); //echo $string[$i].'<br />'; } return $string; } $days_of_week = stringParse($days_of_week); foreach($days_of_week as $stry) {echo $stry.'<br />';}

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.00816.63
8.3.50.0080.01022.05
8.3.40.0070.00718.97
8.3.30.0090.00618.89
8.3.20.0040.00420.16
8.3.10.0070.00320.43
8.3.00.0000.00823.66
8.2.180.0060.01516.63
8.2.170.0070.01422.96
8.2.160.0140.00722.09
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00020.80
8.2.120.0040.00426.35
8.2.110.0060.00321.06
8.2.100.0000.01218.03
8.2.90.0050.00319.30
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0080.00018.16
8.2.50.0000.00818.09
8.2.40.0080.00022.21
8.2.30.0040.00419.40
8.2.20.0080.00017.68
8.2.10.0000.00718.15
8.2.00.0020.00518.13
8.1.280.0090.00625.92
8.1.270.0130.00322.01
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.61
8.1.230.0030.00717.77
8.1.220.0040.00417.77
8.1.210.0080.00018.77
8.1.200.0100.00017.25
8.1.190.0080.00017.35
8.1.180.0000.00918.10
8.1.170.0060.00318.64
8.1.160.0040.00420.83
8.1.150.0000.00720.72
8.1.140.0090.00019.47
8.1.130.0030.00317.69
8.1.120.0040.00317.43
8.1.110.0000.00817.48
8.1.100.0070.00017.47
8.1.90.0000.00717.48
8.1.80.0000.00817.42
8.1.70.0070.00017.38
8.1.60.0000.00817.56
8.1.50.0030.00517.47
8.1.40.0000.00817.55
8.1.30.0040.00417.71
8.1.20.0040.00417.52
8.1.10.0000.00717.60
8.1.00.0070.00017.39
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0030.00317.19
8.0.260.0030.00317.16
8.0.250.0030.00316.96
8.0.240.0030.00316.97
8.0.230.0080.00016.95
8.0.220.0070.00416.92
8.0.210.0030.00316.86
8.0.200.0000.00716.82
8.0.190.0040.00416.95
8.0.180.0070.00016.76
8.0.170.0050.00216.80
8.0.160.0070.00016.80
8.0.150.0000.00816.85
8.0.140.0000.00716.75
8.0.130.0030.00313.39
8.0.120.0000.00816.86
8.0.110.0040.00416.93
8.0.100.0040.00416.89
8.0.90.0000.00816.77
8.0.80.0070.00716.86
8.0.70.0000.00716.73
8.0.60.0040.00416.83
8.0.50.0000.00816.91
8.0.30.0100.00717.03
8.0.20.0060.01417.40
8.0.10.0040.00416.96
8.0.00.0080.01016.63
7.4.330.0020.00216.72
7.4.320.0000.00616.50
7.4.300.0070.00016.53
7.4.290.0040.00416.50
7.4.280.0000.00816.59
7.4.270.0070.00016.52
7.4.260.0040.00416.48
7.4.250.0070.00016.57
7.4.240.0000.00716.60
7.4.230.0040.00416.70
7.4.220.0070.01016.57
7.4.210.0070.01016.67
7.4.200.0000.00716.66
7.4.160.0030.01316.50
7.4.150.0030.02117.40
7.4.140.0070.01117.86
7.4.130.0070.01116.40
7.4.120.0090.01116.51
7.4.110.0030.02016.51
7.4.100.0100.01016.41
7.4.90.0130.00316.31
7.4.80.0060.01219.39
7.4.70.0120.00416.55
7.4.60.0130.00916.54
7.4.50.0070.01016.45
7.4.40.0030.01516.59
7.4.30.0030.00616.55
7.4.00.0030.01014.93
7.3.330.0060.00313.37
7.3.320.0000.00613.19
7.3.310.0030.00316.47
7.3.300.0070.00016.40
7.3.290.0030.00316.35
7.3.280.0110.01016.38
7.3.270.0070.01017.40
7.3.260.0090.00916.22
7.3.250.0110.00916.43
7.3.240.0130.00616.50
7.3.230.0120.00616.39
7.3.210.0110.00816.64
7.3.200.0070.01019.39
7.3.190.0060.00916.25
7.3.180.0080.00816.29
7.3.170.0090.01216.60
7.3.160.0130.00316.35
7.2.330.0140.01016.45
7.2.320.0100.00616.77
7.2.310.0040.01416.75
7.2.300.0030.01316.86
7.2.290.0130.00316.68
7.2.00.0060.00619.70
7.1.100.0060.00318.44
7.1.70.0030.01017.27
7.1.60.0130.01019.40
7.1.50.0110.01116.95
7.1.00.0000.08022.40
7.0.200.0080.00316.47
7.0.60.0270.04020.04
7.0.50.0100.04317.72
7.0.40.0070.06020.04
7.0.30.0230.06020.33
7.0.20.0330.07720.06
7.0.10.0170.07720.22
7.0.00.0100.08320.19
5.6.280.0030.04321.12
5.6.210.0000.04720.48
5.6.200.0070.08318.18
5.6.190.0130.04720.45
5.6.180.0270.04320.66
5.6.170.0230.04320.71
5.6.160.0030.04720.43
5.6.150.0100.07718.18
5.6.140.0130.07318.15
5.6.130.0100.06718.28
5.6.120.0200.07321.02
5.6.110.0100.08321.01
5.6.100.0100.06720.96
5.6.90.0170.07321.00
5.6.80.0000.08320.51
5.5.350.0170.08720.41
5.5.340.0130.07318.04
5.5.330.0070.08020.43
5.5.320.0600.06020.38
5.5.310.0170.04020.20
5.5.300.0070.08018.00
5.5.290.0070.03718.05
5.5.280.0100.08320.89
5.5.270.0100.07320.88
5.5.260.0100.08020.68
5.5.250.0100.07720.59
5.5.240.0170.07020.16

preferences:
51.83 ms | 401 KiB | 5 Q