3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function my_array_walk(array $array, callable $cb ) { foreach ($array as $element) { $cb($element); } } my_array_walk(array('12'), function (int $element) {});

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.0120.00824.35
8.4.110.0110.00818.57
8.4.100.0090.01118.63
8.4.90.0100.01022.56
8.4.80.0100.00719.11
8.4.70.0140.00718.86
8.4.60.0110.01018.87
8.4.50.0100.01018.52
8.4.40.0130.01020.18
8.4.30.0140.00717.79
8.4.20.0180.00017.70
8.4.10.0100.01017.75
8.3.250.0130.00616.71
8.3.240.0040.00517.16
8.3.230.0090.01016.80
8.3.220.0040.00418.98
8.3.210.0100.00918.57
8.3.200.0050.00416.82
8.3.190.0110.00917.35
8.3.180.0100.00818.72
8.3.170.0040.01516.49
8.3.160.0140.00416.88
8.3.150.0060.01217.07
8.3.140.0040.00417.11
8.3.130.0000.00918.57
8.3.120.0060.00320.85
8.3.110.0110.00016.61
8.3.100.0030.00616.79
8.3.90.0120.00326.77
8.3.80.0060.00318.31
8.3.70.0150.00316.50
8.3.60.0110.00418.43
8.3.50.0150.00222.07
8.3.40.0140.00418.84
8.3.30.0110.00418.81
8.3.20.0080.00020.16
8.3.10.0040.00421.71
8.3.00.0060.01019.50
8.2.290.0130.00620.13
8.2.280.0110.00820.53
8.2.270.0000.00816.61
8.2.260.0040.00416.79
8.2.250.0080.00016.86
8.2.240.0060.00318.71
8.2.230.0080.00020.94
8.2.220.0070.01124.06
8.2.210.0040.00426.77
8.2.200.0040.00418.29
8.2.190.0130.00318.42
8.2.180.0110.00816.63
8.2.170.0090.00622.96
8.2.160.0100.01019.21
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0070.00022.26
8.2.120.0040.00426.35
8.2.110.0100.00019.38
8.2.100.0120.00019.53
8.2.90.0050.00319.21
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0100.00017.80
8.2.50.0040.00418.10
8.2.40.0110.00020.23
8.2.30.0050.00319.15
8.2.20.0000.00917.75
8.2.10.0000.00718.12
8.2.00.0070.00018.07
8.1.330.0090.00622.08
8.1.320.0100.00918.04
8.1.310.0140.00416.17
8.1.300.0060.00316.95
8.1.290.0100.00030.84
8.1.280.0070.00725.92
8.1.270.0190.00022.09
8.1.260.0050.00328.09
8.1.250.0050.00228.09
8.1.240.0060.00321.36
8.1.230.0080.00417.77
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.47
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0040.00418.35
8.1.160.0040.00420.77
8.1.150.0050.00318.71
8.1.140.0050.00319.41
8.1.130.0030.00517.61
8.1.120.0000.00717.45
8.1.110.0040.00417.38
8.1.100.0040.00417.40
8.1.90.0040.00417.42
8.1.80.0070.00017.45
8.1.70.0000.00717.31
8.1.60.0060.00317.52
8.1.50.0050.00317.44
8.1.40.0080.00017.48
8.1.30.0030.00517.57
8.1.20.0060.00317.61
8.1.10.0000.00717.55
8.1.00.0040.00417.44
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0030.00318.41
8.0.270.0030.00317.24
8.0.260.0030.00317.15
8.0.250.0030.00317.00
8.0.240.0060.00317.07
8.0.230.0050.00516.88
8.0.220.0020.00516.88
8.0.210.0050.00316.93
8.0.200.0000.00716.97
8.0.190.0040.00417.09
8.0.180.0000.00717.00
8.0.170.0000.00816.90
8.0.160.0000.00817.07
8.0.150.0040.00416.81
8.0.140.0040.00416.96
8.0.130.0050.00013.39
8.0.120.0080.00016.95
8.0.110.0000.00816.87
8.0.100.0040.00416.93
8.0.90.0070.00016.88
8.0.80.0150.00616.91
8.0.70.0080.00016.91
8.0.60.0050.00316.84
8.0.50.0050.00316.85
8.0.30.0060.01117.11
8.0.20.0080.01217.40
8.0.10.0040.00416.89
8.0.00.0160.00016.74
7.4.330.0040.00015.08
7.4.320.0030.00316.61
7.4.300.0060.00016.42
7.4.290.0070.00316.61
7.4.280.0040.00416.50
7.4.270.0000.00716.51
7.4.260.0030.00316.53
7.4.250.0070.00016.48
7.4.240.0050.00316.61
7.4.230.0000.00716.51
7.4.220.0110.00716.44
7.4.210.0080.00716.51
7.4.200.0000.00716.56
7.4.160.0090.00616.48
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0120.00716.56
7.4.120.0100.00816.59
7.4.110.0140.00716.45
7.4.100.0030.01316.45
7.4.90.0100.00716.46
7.4.80.0030.01219.39
7.4.70.0100.00716.47
7.4.60.0000.02016.55
7.4.50.0040.01416.20
7.4.40.0220.00316.57
7.4.30.0080.00816.60
7.4.00.0100.00715.14
7.3.330.0030.00313.38
7.3.320.0050.00013.35
7.3.310.0000.00716.34
7.3.300.0070.00016.38
7.3.290.0000.00616.24
7.3.280.0070.01116.38
7.3.270.0040.01417.40
7.3.260.0090.00916.57
7.3.250.0110.01016.46
7.3.240.0100.00716.52
7.3.230.0100.00716.41
7.3.210.0090.00916.50
7.3.200.0040.01816.63
7.3.190.0030.01316.37
7.3.180.0040.01416.63
7.3.170.0040.01516.38
7.3.160.0160.00316.53
7.2.330.0090.01216.72
7.2.320.0090.00916.43
7.2.310.0150.00316.54
7.2.300.0130.01016.68
7.2.290.0170.00316.70
7.2.60.0030.00916.56
7.2.00.0000.01719.25
7.1.200.0050.00515.70
7.1.100.0000.00818.07
7.1.70.0040.00417.13
7.1.60.0060.00619.90
7.1.50.0060.01316.96
7.1.00.0070.07322.46
7.0.200.0030.00616.91
7.0.80.0100.05721.69
7.0.70.0200.04721.80
7.0.60.0170.05021.77
7.0.50.0100.05722.16
7.0.40.0070.06022.25
7.0.30.0200.06022.02
7.0.20.0130.06022.23
7.0.10.0130.05322.18
7.0.00.0030.07022.14
5.6.280.0000.07721.08
5.6.230.0170.05320.51
5.6.220.0200.04720.80
5.6.210.0070.05720.57
5.6.200.0170.05321.09
5.6.190.0170.05321.18
5.6.180.0100.07021.08
5.6.170.0100.06021.21
5.6.160.0030.06721.11
5.6.150.0100.06021.15
5.6.140.0130.05321.07
5.6.130.0170.05321.13
5.6.120.0100.06021.15
5.6.110.0170.07021.09
5.6.100.0030.06721.09
5.6.90.0130.05721.16
5.6.80.0100.05720.54
5.6.70.0070.06020.53
5.6.60.0200.06020.45
5.6.50.0030.06020.41
5.6.40.0030.06020.45
5.6.30.0100.05720.43
5.6.20.0170.04720.42
5.6.10.0070.05720.43
5.6.00.0130.05020.54
5.5.370.0070.06020.40
5.5.360.0100.05720.43
5.5.350.0130.05320.39
5.5.340.0170.07020.90
5.5.330.0200.04720.87
5.5.320.0130.05720.69
5.5.310.0400.04320.96
5.5.300.0130.08020.89
5.5.290.0130.06020.93
5.5.280.0100.06020.95
5.5.270.0100.06020.92
5.5.260.0200.05320.83
5.5.250.0200.05720.74
5.5.240.0030.06320.32
5.5.230.0030.06320.30
5.5.220.0030.06720.32
5.5.210.0070.05720.06
5.5.200.0130.05020.13
5.5.190.0100.05720.23
5.5.180.0100.06020.28
5.5.160.0070.05720.27
5.5.150.0230.04020.31
5.5.140.0100.05320.21
5.5.130.0100.05320.27
5.5.120.0030.06020.21
5.5.110.0070.05720.29
5.5.100.0130.05320.22
5.5.90.0070.05720.16
5.5.80.0230.04020.07
5.5.70.0200.04720.18
5.5.60.0200.04320.18
5.5.50.0130.07020.18
5.5.40.0070.05720.13
5.5.30.0000.06320.16
5.5.20.0170.04720.09
5.5.10.0100.05719.98
5.5.00.0030.06320.07

preferences:
30.01 ms | 403 KiB | 5 Q