3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(2,5,9,12); $ct=1; foreach ($array as $id) { if (++$ct%2==0) echo 'użytkownik id='.$id.' jest kolegą użytkownika id='.next($array).'<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.0090.00916.50
8.3.50.0090.00616.23
8.3.40.0070.00718.70
8.3.30.0100.00318.77
8.3.20.0080.00020.33
8.3.10.0080.00023.36
8.3.00.0000.00823.51
8.2.180.0140.00716.50
8.2.170.0070.00722.96
8.2.160.0100.00320.39
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0140.00321.18
8.2.110.0060.00322.13
8.2.100.0110.00317.80
8.2.90.0080.00019.01
8.2.80.0080.00017.97
8.2.70.0080.00017.38
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0060.00320.61
8.2.30.0070.00020.69
8.2.20.0020.00517.71
8.2.10.0070.00017.93
8.2.00.0040.00417.93
8.1.280.0070.01025.92
8.1.270.0000.00924.00
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0000.00922.61
8.1.230.0070.00419.10
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0030.00617.22
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00918.50
8.1.160.0000.00720.80
8.1.150.0000.00718.88
8.1.140.0000.00819.62
8.1.130.0000.00717.75
8.1.120.0000.00717.47
8.1.110.0000.00717.40
8.1.100.0040.00417.41
8.1.90.0070.00017.36
8.1.80.0040.00417.44
8.1.70.0040.00417.47
8.1.60.0080.00017.62
8.1.50.0030.00517.55
8.1.40.0040.00417.52
8.1.30.0000.00817.63
8.1.20.0040.00417.63
8.1.10.0040.00417.40
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.55
8.0.270.0000.00717.19
8.0.260.0030.00317.14
8.0.250.0070.00017.00
8.0.240.0040.00416.99
8.0.230.0030.00316.84
8.0.220.0070.00016.87
8.0.210.0030.00516.80
8.0.200.0000.00617.01
8.0.190.0040.00416.88
8.0.180.0000.00916.90
8.0.170.0000.00716.80
8.0.160.0030.00316.93
8.0.150.0000.00716.84
8.0.140.0030.00616.85
8.0.130.0030.00313.34
8.0.120.0080.00016.85
8.0.110.0000.00716.72
8.0.100.0040.00417.01
8.0.90.0040.00416.82
8.0.80.0070.01416.93
8.0.70.0030.00516.80
8.0.60.0030.00516.89
8.0.50.0020.00516.88
8.0.30.0070.00917.05
8.0.20.0080.01117.41
8.0.10.0040.00417.07
8.0.00.0100.01016.77
7.4.330.0000.00516.67
7.4.320.0060.00016.47
7.4.300.0000.00616.58
7.4.290.0030.00316.43
7.4.280.0070.00316.50
7.4.270.0000.00816.52
7.4.260.0040.00416.58
7.4.250.0040.00416.46
7.4.240.0030.00516.49
7.4.230.0050.00316.70
7.4.220.0140.00316.58
7.4.210.0080.00916.54
7.4.200.0000.00716.58
7.4.160.0130.00716.57
7.4.150.0070.01317.40
7.4.140.0070.01117.86
7.4.130.0140.00716.45
7.4.120.0130.00616.53
7.4.110.0090.00916.71
7.4.100.0100.01316.59
7.4.90.0140.01116.55
7.4.80.0100.01119.39
7.4.70.0100.00716.37
7.4.60.0080.00816.36
7.4.50.0080.00316.35
7.4.40.0000.01616.57
7.4.30.0090.00916.61
7.4.00.0070.00714.82
7.3.330.0000.00613.13
7.3.320.0020.00213.14
7.3.310.0000.00816.13
7.3.300.0030.00316.22
7.3.290.0070.00016.12
7.3.280.0080.00816.23
7.3.270.0060.01517.40
7.3.260.0100.00716.32
7.3.250.0090.00816.41
7.3.240.0130.00816.46
7.3.230.0060.01216.39
7.3.210.0080.00816.27
7.3.200.0100.00619.39
7.3.190.0080.00816.64
7.3.180.0140.00316.53
7.3.170.0150.00616.45
7.3.160.0040.01316.37
7.2.330.0050.01416.35
7.2.320.0180.00416.33
7.2.310.0090.00616.64
7.2.300.0070.01416.51
7.2.290.0070.01016.48
7.2.60.0090.00316.71
7.2.00.0000.01119.18
7.1.200.0030.00915.66
7.1.100.0030.01318.08
7.1.70.0040.00417.02
7.1.60.0030.02119.20
7.1.50.0040.01516.80
7.1.00.0070.07322.51
7.0.200.0070.00316.80
7.0.60.0070.07721.72
7.0.50.0030.04317.88
7.0.40.0130.08020.04
7.0.30.0400.07020.13
7.0.20.0300.05020.00
7.0.10.0000.09320.11
7.0.00.0130.08320.03
5.6.280.0030.03321.11
5.6.210.0030.08320.51
5.6.200.0030.04318.18
5.6.190.0070.08720.40
5.6.180.0300.03720.57
5.6.170.0230.08020.42
5.6.160.0100.08020.52
5.6.150.0100.04318.17
5.6.140.0030.04318.22
5.6.130.0000.04318.15
5.6.120.0070.04021.05
5.6.110.0100.08320.98
5.6.100.0130.08020.99
5.6.90.0070.07321.12
5.6.80.0200.07320.50
5.5.350.0430.06320.46
5.5.340.0030.07717.89
5.5.330.0070.08320.19
5.5.320.0570.07320.13
5.5.310.0300.06720.50
5.5.300.0070.08017.92
5.5.290.0100.07717.95
5.5.280.0070.07720.84
5.5.270.0030.04020.67
5.5.260.0100.08720.86
5.5.250.0030.09320.54
5.5.240.0130.07720.32

preferences:
64.03 ms | 400 KiB | 5 Q