3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['x', 'y', 'z']; function array_fetch(array $a) { $element = current($a); next($a); var_dump($element); return $element; } $a=array_fetch($array);

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.40.0120.00618.59
8.3.30.0170.00318.54
8.3.20.0040.00420.54
8.3.10.0000.00823.61
8.3.00.0030.00522.46
8.2.170.0090.00622.96
8.2.160.0070.00721.99
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00320.88
8.2.120.0030.00326.35
8.2.110.0060.00322.07
8.2.100.0040.00817.66
8.2.90.0040.00417.48
8.2.80.0000.00817.97
8.2.70.0000.00817.80
8.2.60.0040.00418.09
8.2.50.0030.00618.10
8.2.40.0000.00720.36
8.2.30.0040.00419.18
8.2.20.0040.00418.02
8.2.10.0040.00419.20
8.2.00.0000.00718.02
8.1.270.0040.00420.20
8.1.260.0030.00626.35
8.1.250.0030.00628.09
8.1.240.0090.00022.24
8.1.230.0080.00419.01
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0050.00318.52
8.1.160.0000.00718.69
8.1.150.0000.00718.75
8.1.140.0000.00720.25
8.1.130.0000.00720.26
8.1.120.0070.00017.41
8.1.110.0000.00717.35
8.1.100.0050.00317.44
8.1.90.0000.00717.42
8.1.80.0000.00717.28
8.1.70.0070.00017.41
8.1.60.0000.00717.52
8.1.50.0060.00317.53
8.1.40.0050.00217.49
8.1.30.0050.00517.66
8.1.20.0050.00517.67
8.1.10.0000.00917.49
8.1.00.0000.00717.47
8.0.300.0000.00719.60
8.0.290.0040.00416.63
8.0.280.0030.00318.37
8.0.270.0030.00317.17
8.0.260.0030.00319.98
8.0.250.0060.00016.90
8.0.240.0040.00416.96
8.0.230.0040.00416.88
8.0.220.0050.00316.75
8.0.210.0040.00416.78
8.0.200.0030.00316.89
8.0.190.0020.00516.89
8.0.180.0020.00516.88
8.0.170.0000.00816.86
8.0.160.0070.00016.86
8.0.150.0000.00716.78
8.0.140.0040.00416.79
8.0.130.0030.00313.27
8.0.120.0030.00616.76
8.0.110.0040.00416.71
8.0.100.0000.00716.68
8.0.90.0000.00816.86
8.0.80.0040.01216.80
8.0.70.0000.00716.79
8.0.60.0040.00416.82
8.0.50.0030.00516.88
8.0.30.0090.01016.97
8.0.20.0100.01617.40
8.0.10.0000.00716.98
8.0.00.0110.00816.62
7.4.330.0050.00015.55
7.4.320.0030.00316.48
7.4.300.0000.00716.50
7.4.290.0070.00016.48
7.4.280.0000.00816.53
7.4.270.0000.00716.36
7.4.260.0040.00416.61
7.4.250.0030.00316.52
7.4.240.0030.00316.39
7.4.230.0000.00716.60
7.4.220.0060.00316.64
7.4.210.0080.00916.53
7.4.200.0030.00416.66
7.4.160.0090.00616.48
7.4.140.0070.01117.86
7.4.130.0150.00416.39
7.4.120.0180.00316.56
7.4.110.0080.00816.38
7.4.100.0100.00616.46
7.4.90.0070.01016.38
7.4.80.0120.00619.39
7.4.70.0100.00716.66
7.4.60.0090.01316.27
7.4.50.0120.00316.14
7.4.40.0060.01016.23
7.4.10.0100.00716.41
7.4.00.0080.00815.44
7.3.330.0050.00013.16
7.3.320.0060.00013.22
7.3.310.0000.00716.13
7.3.300.0070.00016.21
7.3.290.0030.00616.18
7.3.280.0060.00916.18
7.3.260.0100.00816.32
7.3.240.0110.00816.33
7.3.230.0100.00716.28
7.3.210.0120.00616.46
7.3.200.0080.00816.50
7.3.190.0070.01416.30
7.3.180.0070.01016.30
7.3.170.0040.01516.20
7.3.160.0090.00816.22
7.3.130.0030.01316.07
7.3.120.0090.00815.31
7.3.110.0090.00815.37
7.3.100.0070.00715.20
7.3.90.0060.00815.13
7.3.80.0050.00615.26
7.3.70.0080.00515.12
7.3.60.0030.01215.17
7.3.50.0080.00515.27
7.3.40.0050.00915.24
7.3.30.0060.00715.00
7.3.20.0060.00816.88
7.3.10.0050.00816.85
7.3.00.0140.00716.77
7.2.330.0070.01016.69
7.2.320.0160.00016.27
7.2.310.0130.00316.21
7.2.300.0080.00816.54
7.2.290.0060.01016.63
7.2.260.0040.01416.70
7.2.250.0070.01215.49
7.2.240.0050.01215.38
7.2.230.0070.00915.52
7.2.220.0100.00415.31
7.2.210.0030.01215.32
7.2.200.0060.01015.44
7.2.190.0060.00515.35
7.2.180.0080.00815.44
7.2.170.0040.00915.42
7.2.160.0020.01115.29
7.2.150.0060.00717.13
7.2.140.0160.00917.29
7.2.130.0040.01217.28
7.2.120.0190.00816.63
7.2.110.0100.00417.07
7.2.100.0070.00917.21
7.2.90.0050.00917.38
7.2.80.0170.01116.70
7.2.70.0170.00717.22
7.2.60.0060.00917.25
7.2.50.0060.00617.27
7.2.40.0100.00917.14
7.2.30.0070.00617.22
7.2.20.0080.00717.20
7.2.10.0070.00817.20
7.2.00.0060.00717.20
7.1.330.0030.01316.30
7.1.320.0040.00816.29
7.1.310.0080.00716.21
7.1.300.0060.00616.10
7.1.290.0030.01016.24
7.1.280.0080.00616.22
7.1.270.0050.00916.16
7.1.260.0160.00415.64
7.1.250.0070.00616.24
7.1.240.0130.00317.36
7.1.230.0080.00817.17
7.1.220.0150.00017.23
7.1.210.0070.00717.20
7.1.200.0100.00317.23
7.1.190.0130.00617.40
7.1.180.0070.00417.33
7.1.170.0030.00917.27
7.1.160.0000.01017.13
7.1.150.0070.00717.32
7.1.140.0060.00917.42
7.1.130.0040.01117.33
7.1.120.0070.00717.20
7.1.110.0030.01017.35
7.1.100.0060.00617.32
7.1.90.0070.00717.27
7.1.80.0030.00917.20
7.1.70.0030.01017.40
7.1.60.0000.01417.23
7.1.50.0040.01117.18
7.1.40.0030.01417.35
7.1.30.0030.01317.15
7.1.20.0110.00417.28
7.1.10.0110.00717.20
7.1.00.0060.00617.17

preferences:
59.55 ms | 400 KiB | 5 Q