3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recipients = ['aaa@b.com', 'bbbb@b.com', 'ccccc@b.com']; print_r($recipients); echo 'To: ' . array_shift($recipients) . PHP_EOL; foreach ($recipients as $r){ echo 'Cc: ' . array_shift($recipients) . PHP_EOL; } print_r($recipients);

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.5.10.0080.00919.98
8.5.00.0120.01019.80
8.4.150.0090.00416.79
8.4.140.0110.00917.72
8.4.130.0100.01119.35
8.4.120.0080.01020.53
8.4.110.0100.01217.70
8.4.100.0120.00917.57
8.4.90.0100.00720.33
8.4.80.0100.00820.54
8.4.70.0100.01018.85
8.4.60.0110.00918.48
8.4.50.0130.00718.65
8.4.40.0160.00319.52
8.4.30.0170.00318.84
8.4.20.0150.00422.41
8.4.10.0030.00626.11
8.3.280.0030.00014.05
8.3.270.0090.01116.72
8.3.260.0120.00716.24
8.3.250.0060.00317.29
8.3.240.0050.00318.35
8.3.230.0140.00516.54
8.3.220.0120.00718.98
8.3.210.0110.00718.23
8.3.200.0090.01016.69
8.3.190.0140.00416.97
8.3.180.0150.00618.71
8.3.170.0100.00019.04
8.3.160.0130.00717.31
8.3.150.0110.00717.11
8.3.140.0060.00318.79
8.3.130.0090.00018.18
8.3.120.0030.00520.86
8.3.110.0090.00020.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0090.00018.30
8.3.70.0070.01118.18
8.3.60.0070.01018.18
8.3.50.0150.00616.70
8.3.40.0100.00720.34
8.3.30.0110.00418.68
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0140.00616.80
8.2.280.0120.00718.36
8.2.270.0070.00716.45
8.2.260.0040.01416.96
8.2.250.0090.00016.36
8.2.240.0000.00917.18
8.2.230.0100.00022.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0000.00916.75
8.2.190.0120.00316.58
8.2.180.0040.01116.75
8.2.170.0070.00718.79
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00326.16
8.2.110.0060.00320.99
8.2.100.0120.00017.72
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0060.00319.21
8.2.50.0050.00318.10
8.2.40.0000.00720.61
8.2.30.0040.00418.05
8.2.20.0050.00219.16
8.2.10.0040.00717.53
8.2.00.0040.00417.54
8.1.330.0100.00916.22
8.1.320.0110.00416.11
8.1.310.0140.00318.22
8.1.300.0080.00016.25
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0090.00021.09
8.1.230.0110.00017.42
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00617.13
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00518.58
8.1.160.0040.00418.86
8.1.150.0050.00318.71
8.1.140.0070.00017.42
8.1.130.0070.00017.34
8.1.120.0000.01017.50
8.1.110.0170.00017.43
8.1.100.0160.00017.42
8.1.90.0120.00017.49
8.1.80.0040.00417.46
8.1.70.0090.00917.41
8.1.60.0060.00317.64
8.1.50.0040.00417.63
8.1.40.0050.00217.67
8.1.30.0000.00917.55
8.1.20.0040.00417.55
8.1.10.0000.00817.51
8.1.00.0020.00517.45
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00718.46
8.0.270.0040.00416.90
8.0.260.0050.00516.89
8.0.250.0070.00416.87
8.0.240.0100.00216.93
8.0.230.0100.00716.86
8.0.220.0060.01116.79
8.0.210.0080.00816.76
8.0.200.0070.00716.77
8.0.190.0110.00416.68
8.0.180.0120.00016.83
8.0.170.0160.00016.84
8.0.160.0110.00416.97
8.0.150.0050.00516.70
8.0.140.0090.00416.72
8.0.130.0040.00816.78
8.0.120.0080.00516.79
8.0.110.0040.00916.72
8.0.100.0120.00016.84
8.0.90.0130.00316.90
8.0.80.0120.00416.68
8.0.70.0030.01516.73
8.0.60.0130.00316.64
8.0.50.0150.00216.71
8.0.30.0140.00516.80
8.0.20.0130.00416.84
8.0.10.0080.00816.92

preferences:
150.67 ms | 403 KiB | 5 Q