3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __reindex(&$v,$k, &$aReindexed) { $kNew = $k+100; $aReindexed[$kNew] = $v; } $aTest = array(4,"f","_","test"); $aReindexed = array(); array_walk($aTest, "__reindex", &$aReindexed ); print_r($aReindexed); ?>

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.2.40.0020.00619.23
7.4.00.0030.01314.88
7.3.120.0130.00514.60
7.3.110.0090.01014.65
7.3.100.0050.01614.66
7.3.90.0060.00914.40
7.3.80.0090.01214.49
7.3.70.0090.00614.58
7.3.60.0030.01214.62
7.3.50.0050.00814.53
7.3.40.0080.01614.69
7.3.30.0000.01914.31
7.3.20.0130.00714.57
7.3.10.0140.00414.68
7.3.00.0070.01014.77
7.2.250.0040.01614.78
7.2.240.0030.01114.96
7.2.230.0070.01014.77
7.2.220.0100.00614.62
7.2.210.0100.00714.97
7.2.200.0110.00314.59
7.2.190.0090.00614.64
7.2.180.0110.00814.81
7.2.170.0060.01414.67
7.2.160.0090.01814.64
7.2.150.0230.00514.88
7.2.140.0210.01214.51
7.2.130.0150.00714.58
7.2.120.0210.00314.59
7.2.110.0160.01014.92
7.2.100.0210.00414.89
7.2.90.0220.00014.63
7.2.80.0160.00714.92
7.2.70.0210.00014.66
7.2.60.0160.00614.70
7.2.50.0220.00314.95
7.2.40.0120.01514.65
7.2.30.0150.00915.00
7.2.20.0160.00714.78
7.2.10.0120.01614.65
7.2.00.0120.00914.68
7.1.330.0090.01213.48
7.1.320.0060.01413.35
7.1.310.0090.00713.69
7.1.300.0040.00913.73
7.1.290.0000.01813.46
7.1.280.0030.01313.39
7.1.270.0090.00913.54
7.1.260.0070.00713.63
7.1.250.0070.01413.65
7.1.240.0120.00713.45
7.1.230.0060.01113.85
7.1.220.0080.01313.39
7.1.210.0150.01013.61
7.1.200.0280.00813.85
7.1.190.0050.01013.22
7.1.180.0120.00313.55
7.1.170.0070.01613.57
7.1.160.0160.01013.71
7.1.150.0140.01113.36
7.1.140.0190.00513.37
7.1.130.0180.00713.66
7.1.120.0180.00613.76
7.1.110.0190.00813.80
7.1.100.0100.01413.58
7.1.90.0220.00013.80
7.1.80.0110.01113.71
7.1.70.0090.00513.40
7.1.60.0090.00713.19
7.1.50.0150.00612.92
7.1.40.0040.01113.32
7.1.30.0090.00613.59
7.1.20.0100.00513.29
7.1.10.0040.01113.34
7.1.00.0100.00313.49
7.0.330.0070.01113.33
7.0.320.0170.00413.25
7.0.310.0070.01113.34
7.0.300.0170.00313.45
7.0.290.0140.00913.46
7.0.280.0160.00513.17
7.0.270.0050.01513.35
7.0.260.0100.01013.29
7.0.250.0110.01113.28
7.0.240.0110.01113.63
7.0.230.0150.00313.37
7.0.220.0090.01713.54
7.0.210.0200.01013.30
7.0.200.0150.00413.29
7.0.190.0140.00713.33
7.0.180.0130.00713.33
7.0.170.0130.00413.54
7.0.160.0170.00013.45
7.0.150.0120.00713.38
7.0.140.0150.00613.49
7.0.130.0130.01013.15
7.0.120.0130.00713.59
7.0.110.0170.00613.34
7.0.100.0110.00813.53
7.0.90.0100.01313.19
7.0.80.0130.01013.41
7.0.70.0160.00213.32
7.0.60.0230.00313.24
7.0.50.0210.00013.47
7.0.40.0000.02313.52
7.0.30.0160.00513.77
7.0.20.0150.00413.50
7.0.10.0110.01113.35
7.0.00.0120.00813.60
5.6.400.0110.00413.88
5.6.390.0150.00514.22
5.6.380.0130.00913.84
5.6.370.0140.00614.11
5.6.360.0160.00814.21
5.6.350.0150.00513.79
5.6.340.0100.01014.05
5.6.330.0150.00713.99
5.6.320.0040.01314.07
5.6.310.0150.01114.21
5.6.300.0090.01013.91
5.6.290.0110.00714.15
5.6.280.0180.00314.14
5.6.270.0100.01013.99
5.6.260.0170.00614.30
5.6.250.0160.00614.03
5.6.240.0110.01214.32
5.6.230.0200.00314.20
5.6.220.0140.00714.11
5.6.210.0120.00814.24
5.6.200.0190.00814.39
5.6.190.0230.00314.32
5.6.180.0130.00714.14
5.6.170.0150.00514.10
5.6.160.0130.00613.94
5.6.150.0190.00014.09
5.6.140.0120.00814.25
5.6.130.0140.01014.00
5.6.120.0130.00914.14
5.6.110.0110.01113.85
5.6.100.0110.00813.82
5.6.90.0160.00514.11
5.6.80.0100.01013.94
5.6.70.0340.00613.83
5.6.60.0150.01513.77
5.6.50.0140.01414.17
5.6.40.0100.01014.06
5.6.30.0140.00614.10
5.6.20.0130.00713.98
5.6.10.0100.01013.78
5.6.00.0090.01214.00
5.5.380.0230.00513.88
5.5.370.0150.01214.18
5.5.360.0120.00814.14
5.5.350.0100.01013.95
5.5.340.0070.01414.05
5.5.330.0160.00914.02
5.5.320.0150.01013.93
5.5.310.0070.01413.82
5.5.300.0050.01714.01
5.5.290.0200.00313.69
5.5.280.0140.00513.82
5.5.270.0070.01314.23
5.5.260.0140.00513.91
5.5.250.0140.00513.70
5.5.240.0180.00313.85
5.5.230.0150.01214.28
5.5.220.0140.01413.81
5.5.210.0100.01014.08
5.5.200.0220.00014.23
5.5.190.0090.00913.76
5.5.180.0080.01213.71
5.5.170.0120.00813.85
5.5.160.0040.01713.71
5.5.150.0100.01013.86
5.5.140.0170.01014.10
5.5.130.0130.00814.11
5.5.120.0100.01013.91
5.5.110.0150.00814.12
5.5.100.0230.00313.72
5.5.90.0090.01814.04
5.5.80.0140.00714.12
5.5.70.0170.00813.85
5.5.60.0140.01214.07
5.5.50.0210.00413.72
5.5.40.0110.01113.76
5.5.30.0180.00713.79
5.5.20.0090.01314.05
5.5.10.0120.00613.56
5.5.00.0190.00913.55
5.4.450.0120.00612.70
5.4.440.0080.00812.70
5.4.430.0070.00712.70
5.4.420.0090.00612.70
5.4.410.0100.00312.70
5.4.400.0060.00812.70
5.4.390.0100.00712.70
5.4.380.0070.01112.70
5.4.370.0040.00812.70
5.4.360.0060.00912.70
5.4.350.0090.00412.70
5.4.340.0040.00912.70
5.4.330.0130.00012.70
5.4.320.0110.00412.70
5.4.310.0120.00412.70
5.4.300.0130.00312.70
5.4.290.0060.00912.70
5.4.280.0070.00712.70
5.4.270.0100.01012.70
5.4.260.0100.00712.70
5.4.250.0170.00312.70
5.4.240.0130.00712.70
5.4.230.0120.00412.70
5.4.220.0190.00012.70
5.4.210.0180.00012.70
5.4.200.0150.00612.70
5.4.190.0080.00812.70
5.4.180.0130.00612.70
5.4.170.0130.00312.70
5.4.160.0050.01012.70
5.4.150.0070.00712.70
5.4.140.0070.00712.70
5.4.130.0080.00512.70
5.4.120.0080.00612.70
5.4.110.0090.00512.70
5.4.100.0060.01012.70
5.4.90.0050.00912.70
5.4.80.0090.00512.70
5.4.70.0100.00312.70
5.4.60.0110.00512.70
5.4.50.0090.00412.70
5.4.40.0070.00712.70
5.4.30.0090.00912.70
5.4.20.0030.01312.70
5.4.10.0110.00612.70
5.4.00.0100.00312.70
5.3.290.0130.00312.70
5.3.280.0200.00312.70
5.3.270.0080.00812.70
5.3.260.0090.00412.70
5.3.250.0090.00512.70
5.3.240.0100.00412.70
5.3.230.0130.00012.70
5.3.220.0090.00312.70
5.3.210.0100.00612.70
5.3.200.0070.00412.70
5.3.190.0110.00912.70
5.3.180.0120.00412.70
5.3.170.0070.00712.70
5.3.160.0070.00512.70
5.3.150.0160.00012.70
5.3.140.0060.00612.70
5.3.130.0100.00312.70
5.3.120.0080.00412.70
5.3.110.0090.00412.70
5.3.100.0080.00312.70
5.3.90.0060.00612.70
5.3.80.0130.00012.70
5.3.70.0060.00712.70
5.3.60.0150.00012.70
5.3.50.0160.00012.70
5.3.40.0060.00912.70
5.3.30.0120.00512.70
5.3.20.0070.00712.70
5.3.10.0120.00312.70
5.3.00.0040.01112.70
5.2.170.0040.00912.70
5.2.160.0060.00612.70
5.2.150.0040.01112.70
5.2.140.0090.00612.70
5.2.130.0080.00412.70
5.2.120.0050.01012.70
5.2.110.0080.00512.70
5.2.100.0130.00012.70
5.2.90.0080.00512.70
5.2.80.0080.00812.70
5.2.70.0070.00712.70
5.2.60.0100.00212.70
5.2.50.0080.00512.70
5.2.40.0100.00212.70
5.2.30.0120.00012.70
5.2.20.0090.00212.70
5.2.10.0060.00612.70
5.2.00.0070.00512.70
5.1.60.0100.00012.70
5.1.50.0050.00512.70
5.1.40.0080.00212.70
5.1.30.0110.00412.70
5.1.20.0050.00512.70
5.1.10.0050.00812.70
5.1.00.0080.00612.70
5.0.50.0080.00012.70
5.0.40.0090.00312.70
5.0.30.0180.00512.70
5.0.20.0030.00612.70
5.0.10.0080.00012.70
5.0.00.0070.00212.70
4.4.90.0050.00212.70
4.4.80.0050.00212.70
4.4.70.0060.00012.70
4.4.60.0070.00012.70
4.4.50.0070.00012.70
4.4.40.0050.00312.70
4.4.30.0040.00412.70
4.4.20.0000.00812.70
4.4.10.0000.00812.70
4.4.00.0030.00412.70
4.3.110.0070.00012.70
4.3.100.0000.00912.70
4.3.90.0100.00012.70
4.3.80.0040.00212.70
4.3.70.0070.00012.70
4.3.60.0070.00012.70
4.3.50.0080.00012.70
4.3.40.0070.00012.70
4.3.30.0000.00612.70
4.3.20.0060.00012.70
4.3.10.0060.00012.70
4.3.00.0060.00012.70

preferences:
159.19 ms | 993 KiB | 7 Q