3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a' => 12, 'b' => 'foo', 'caution' => array('blubb' => array('bar' => 'baz'))); function foo(&$item, $key) { $item = (object)$item; } $start = microtime(true); for ($i = 0; $i < 10000; $i++) { array_walk_recursive($arr, 'foo'); } $end = microtime(true) - $start; echo "Run: " . sprintf('%.08f',$end) . PHP_EOL;

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)
7.4.10.0070.02114.75
7.4.00.0080.01714.99
7.3.130.0100.01714.56
7.3.120.0100.01614.83
7.3.110.0060.01414.83
7.3.100.0060.01214.69
7.3.90.0030.01414.75
7.3.80.0070.01114.79
7.3.70.0040.01214.67
7.3.60.0110.00914.81
7.3.50.0010.01614.88
7.3.40.0030.01614.80
7.3.30.0050.01414.75
7.3.20.0090.00916.56
7.3.10.0080.00916.71
7.3.00.0060.01016.74
7.2.260.0100.01314.88
7.2.250.0040.01814.90
7.2.240.0090.01515.10
7.2.230.0040.01315.05
7.2.220.0060.01115.15
7.2.210.0060.01415.10
7.2.200.0070.01214.98
7.2.190.0120.00914.94
7.2.180.0020.01615.00
7.2.170.0070.01215.06
7.2.160.0030.01814.95
7.2.150.0070.01217.01
7.2.140.0050.01216.82
7.2.130.0060.00916.82
7.2.120.0090.01216.87
7.2.110.0030.01316.85
7.2.100.0020.01616.81
7.2.90.0080.00816.94
7.2.80.0070.01316.90
7.2.70.0070.01217.09
7.2.60.0050.01316.74
7.2.50.0070.01516.85
7.2.40.0050.01516.96
7.2.30.0070.01216.73
7.2.20.0020.01616.84
7.2.10.0030.01417.07
7.2.00.0040.01517.66
7.1.330.0080.01715.64
7.1.320.0040.01715.89
7.1.310.0030.01415.81
7.1.300.0060.01515.83
7.1.290.0050.01515.71
7.1.280.0070.01415.79
7.1.270.0030.01815.86
7.1.260.0040.01515.76
7.1.250.0030.01615.75
7.1.240.0030.01815.76
7.1.230.0050.01815.79
7.1.220.0050.01415.65
7.1.210.0030.01815.78
7.1.200.0030.01515.82
7.1.190.0080.01115.86
7.1.180.0070.01615.68
7.1.170.0110.01115.73
7.1.160.0030.01815.90
7.1.150.0050.01515.74
7.1.140.0030.01715.71
7.1.130.0090.01115.75
7.1.120.0070.01315.66
7.1.110.0040.01515.76
7.1.100.0070.01515.70
7.1.90.0080.01315.67
7.1.80.0050.01515.80
7.1.70.0030.01616.28
7.1.60.0060.01816.91
7.1.50.0060.01816.27
7.1.40.0020.01815.83
7.1.30.0050.01615.82
7.1.20.0060.01315.75
7.1.10.0030.02315.69
7.1.00.0020.02517.99
7.0.330.0040.01415.26
7.0.320.0030.01615.38
7.0.310.0020.01615.31
7.0.300.0070.01315.39
7.0.290.0080.01015.48
7.0.280.0020.01915.50
7.0.270.0030.01515.18
7.0.260.0030.01415.33
7.0.250.0090.00915.40
7.0.240.0000.01815.43
7.0.230.0030.01615.17
7.0.220.0060.01615.35
7.0.210.0030.01415.46
7.0.200.0030.01115.86
7.0.190.0080.01415.30
7.0.180.0110.01015.45
7.0.170.0100.01115.52
7.0.160.0070.01515.53
7.0.150.0120.00915.45
7.0.140.0060.03717.65
7.0.130.0070.01415.28
7.0.120.0080.01115.54
7.0.110.0030.01715.48
7.0.100.0090.03316.92
7.0.90.0110.03516.91
7.0.80.0110.03216.83
7.0.70.0100.02916.84
7.0.60.0040.03816.88
7.0.50.0060.03816.92
7.0.40.0140.02515.72
7.0.30.0040.03715.67
7.0.20.0080.03415.73
7.0.10.0070.03315.76
7.0.00.0100.02415.58
5.6.400.0030.02514.25
5.6.390.0080.02114.12
5.6.380.0050.02414.34
5.6.370.0060.02614.13
5.6.360.0000.02914.20
5.6.350.0030.02514.36
5.6.340.0050.02514.26
5.6.330.0030.02714.45
5.6.320.0080.02014.61
5.6.310.0030.02514.48
5.6.300.0050.02814.32
5.6.290.0030.02614.25
5.6.280.0040.04416.58
5.6.270.0070.01814.32
5.6.260.0030.02714.35
5.6.250.0050.04916.58
5.6.240.0080.04816.36
5.6.230.0060.04916.46
5.6.220.0080.04716.46
5.6.210.0100.03916.45
5.6.200.0080.04816.62
5.6.190.0110.04016.58
5.6.180.0040.04116.45
5.6.170.0030.05016.51
5.6.160.0090.04216.64
5.6.150.0060.04816.44
5.6.140.0080.04516.67
5.6.130.0080.04616.51
5.6.120.0020.05216.61
5.6.110.0070.05016.50
5.6.100.0080.04416.47
5.6.90.0080.04416.50
5.6.80.0040.04916.21
5.6.70.0070.04516.26
5.6.60.0070.04516.19
5.6.50.0080.04816.37
5.6.40.0100.04416.47
5.6.30.0070.04716.33
5.6.20.0040.03816.24
5.6.10.0050.04716.25
5.6.00.0050.04616.21
5.5.380.0090.04716.36
5.5.370.0060.04716.24
5.5.360.0090.04116.18
5.5.350.0070.04716.35
5.5.340.0080.04016.39
5.5.330.0020.03816.41
5.5.320.0080.04816.50
5.5.310.0050.04616.45
5.5.300.0010.04316.51
5.5.290.0090.04616.29
5.5.280.0070.04816.43
5.5.270.0060.04816.44
5.5.260.0100.04416.56
5.5.250.0070.04816.30
5.5.240.0070.04516.19
5.5.230.0040.05216.18
5.5.220.0040.04816.11
5.5.210.0080.04316.28
5.5.200.0080.04316.15
5.5.190.0100.04016.10
5.5.180.0040.05015.96
5.5.170.0030.02614.20
5.5.160.0070.04616.27
5.5.150.0090.03916.23
5.5.140.0080.03216.13
5.5.130.0120.04416.18
5.5.120.0080.04616.19
5.5.110.0070.04316.18
5.5.100.0040.04616.12
5.5.90.0020.04516.16
5.5.80.0100.04516.14
5.5.70.0070.04916.18
5.5.60.0030.03516.28
5.5.50.0040.03316.13
5.5.40.0020.03516.01
5.5.30.0090.03015.99
5.5.20.0050.03416.04
5.5.10.0020.03516.14
5.5.00.0090.03116.22
5.4.450.0060.04714.13
5.4.440.0070.04814.16
5.4.430.0040.04214.18
5.4.420.0050.04614.17
5.4.410.0020.04814.06
5.4.400.0040.04514.04
5.4.390.0090.04314.10
5.4.380.0070.04414.08
5.4.370.0060.03714.06
5.4.360.0030.04814.08
5.4.350.0050.04114.16
5.4.340.0060.04714.00
5.4.330.0030.02411.65
5.4.320.0020.04014.10
5.4.310.0030.04714.16
5.4.300.0080.03713.99
5.4.290.0040.04614.06
5.4.280.0050.04914.10
5.4.270.0090.04313.99
5.4.260.0080.04013.95
5.4.250.0080.04413.90
5.4.240.0050.04514.04
5.4.230.0020.03713.97
5.4.220.0020.03214.02
5.4.210.0050.03214.08
5.4.200.0040.03514.08
5.4.190.0070.03313.88
5.4.180.0020.03214.03
5.4.170.0050.02813.97
5.4.160.0020.03213.98
5.4.150.0040.03514.07
5.4.140.0060.03013.13
5.4.130.0030.03113.08
5.4.120.0020.04213.09
5.4.110.0020.03413.16
5.4.100.0040.03113.07
5.4.90.0040.03213.15
5.4.80.0030.03213.23
5.4.70.0020.04313.07
5.4.60.0030.04013.18
5.4.50.0040.03213.21
5.4.40.0030.03413.23
5.4.30.0040.03013.11
5.4.20.0050.03013.12
5.4.10.0030.03113.16
5.4.00.0030.02912.89
5.3.290.0030.05012.49
5.3.280.0080.04112.37
5.3.270.0050.03512.39
5.3.260.0070.03012.35
5.3.250.0030.03412.40
5.3.240.0040.03512.37
5.3.230.0040.03712.38
5.3.220.0080.03112.36
5.3.210.0060.03912.35
5.3.200.0060.03012.37
5.3.190.0070.03512.39
5.3.180.0080.03012.40
5.3.170.0070.04112.44
5.3.160.0050.03412.48
5.3.150.0030.03412.47
5.3.140.0070.03312.31
5.3.130.0080.03112.38
5.3.120.0060.03112.46
5.3.110.0070.03312.47
5.3.100.0100.04112.13
5.3.90.0060.03812.25
5.3.80.0070.03112.20
5.3.70.0060.03412.21
5.3.60.0040.03312.21
5.3.50.0050.03412.11
5.3.40.0020.04012.17
5.3.30.0110.03212.24
5.3.20.0110.04112.01
5.3.10.0020.03711.99
5.3.00.0030.03911.97
5.2.170.0030.09011.04
5.2.160.0100.07711.03
5.2.150.0030.08011.20
5.2.140.0030.09011.05
5.2.130.0070.07011.15
5.2.120.0070.06311.22
5.2.110.0030.07011.16
5.2.100.0100.05311.15
5.2.90.0100.07311.23
5.2.80.0070.08011.11
5.2.70.0000.08711.02
5.2.60.0100.07710.94
5.2.50.0030.06711.09
5.2.40.0030.09010.89
5.2.30.0030.08011.07
5.2.20.0070.07710.82
5.2.10.0100.07011.00
5.2.00.0070.07710.82
5.1.60.0130.06710.07
5.1.50.0030.03310.05
5.1.40.0000.05010.04
5.1.30.0030.08310.35
5.1.20.0070.07310.36
5.1.10.0070.05310.19
5.1.00.0070.07310.20
5.0.50.0030.0609.55
5.0.40.0130.0579.55
5.0.30.0070.0809.55
5.0.20.0030.0739.55
5.0.10.0030.0709.55
5.0.00.0070.0579.55
4.4.90.0070.0179.55
4.4.80.0030.0379.55
4.4.70.0070.0339.55
4.4.60.0030.0209.55
4.4.50.0000.0209.55
4.4.40.0030.0509.55
4.4.30.0030.0339.55
4.4.20.0030.0409.55
4.4.10.0000.0339.55
4.4.00.0070.0439.55
4.3.110.0070.0179.55
4.3.100.0070.0309.55
4.3.90.0000.0379.55
4.3.80.0000.0279.55
4.3.70.0030.0279.55
4.3.60.0000.0179.55
4.3.50.0030.0379.55
4.3.40.0070.0479.55
4.3.30.0000.0379.55
4.3.20.0000.0379.55
4.3.10.0000.0439.55
4.3.00.0000.0339.55

preferences:
49.61 ms | 401 KiB | 5 Q