3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"); function test_print($item, $key) { if ($item != "orange") echo "$item \n"; } array_walk($fruits, 'test_print'); ?>

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.0140.00318.68
8.3.30.0090.00618.82
8.3.20.0080.00020.18
8.3.10.0080.00023.54
8.3.00.0040.00420.89
8.2.170.0070.00722.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00620.66
8.2.110.0060.00322.25
8.2.100.0080.00320.35
8.2.90.0000.00819.16
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0040.00421.07
8.2.30.0040.00418.24
8.2.20.0000.00717.56
8.2.10.0000.00818.17
8.2.00.0000.00717.73
8.1.270.0080.00023.84
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0070.00419.10
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0040.00417.11
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0060.00318.67
8.1.160.0000.00722.04
8.1.150.0030.00518.59
8.1.140.0000.00717.45
8.1.130.0000.00717.80
8.1.120.0000.00717.40
8.1.110.0000.00717.43
8.1.100.0040.00417.42
8.1.90.0050.00317.50
8.1.80.0030.00517.36
8.1.70.0040.00417.40
8.1.60.0040.00717.46
8.1.50.0030.00617.42
8.1.40.0040.00417.41
8.1.30.0090.00017.58
8.1.20.0060.00317.47
8.1.10.0070.00017.53
8.1.00.0040.00417.29
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0050.00318.30
8.0.270.0040.00417.26
8.0.260.0030.00317.29
8.0.250.0000.00716.92
8.0.240.0030.00316.98
8.0.230.0000.00816.79
8.0.220.0000.00716.73
8.0.210.0050.00316.76
8.0.200.0030.00316.80
8.0.190.0000.01016.93
8.0.180.0000.00816.80
8.0.170.0000.00916.92
8.0.160.0000.00716.84
8.0.150.0000.00816.88
8.0.140.0050.00216.81
8.0.130.0030.00313.33
8.0.120.0040.00416.88
8.0.110.0000.00716.88
8.0.100.0040.00416.88
8.0.90.0000.00716.96
8.0.80.0030.01316.91
8.0.70.0000.00816.84
8.0.60.0040.00416.86
8.0.50.0020.00516.76
8.0.30.0120.00917.01
8.0.20.0100.01217.40
8.0.10.0050.00316.93
8.0.00.0030.01416.84
7.4.330.0050.00015.00
7.4.320.0030.00316.56
7.4.300.0050.00216.44
7.4.290.0050.00316.59
7.4.280.0070.00016.59
7.4.270.0030.00416.51
7.4.260.0000.00716.46
7.4.250.0040.00416.43
7.4.240.0050.00216.45
7.4.230.0000.00716.61
7.4.220.0090.00916.48
7.4.210.0070.00716.44
7.4.200.0000.00716.48
7.4.190.0050.00216.45
7.4.160.0110.00416.48
7.4.150.0150.00317.40
7.4.140.0090.01017.86
7.4.130.0130.00716.54
7.4.120.0070.01216.61
7.4.110.0060.01516.42
7.4.100.0110.00716.72
7.4.90.0070.01616.40
7.4.80.0100.01019.39
7.4.70.0080.00816.58
7.4.60.0090.00916.52
7.4.50.0000.00516.54
7.4.40.0100.00616.61
7.4.30.0090.00616.51
7.4.10.0150.00414.89
7.4.00.0060.01114.93
7.3.330.0000.00513.29
7.3.320.0060.00013.22
7.3.310.0070.00016.29
7.3.300.0030.00316.18
7.3.290.0090.00616.31
7.3.280.0070.01016.24
7.3.270.0150.00317.40
7.3.260.0060.01216.60
7.3.250.0080.00816.44
7.3.240.0120.01016.43
7.3.230.0100.00716.53
7.3.210.0040.01416.37
7.3.200.0060.01119.39
7.3.190.0090.00916.35
7.3.180.0090.00616.50
7.3.170.0120.00316.28
7.3.160.0060.01016.28
7.3.130.0070.01114.84
7.3.120.0090.00714.82
7.3.110.0100.00314.79
7.3.100.0040.01214.39
7.3.90.0040.00414.71
7.3.80.0030.00814.94
7.3.70.0130.00014.53
7.3.60.0030.00614.93
7.3.50.0080.00814.88
7.3.40.0030.01014.66
7.3.30.0100.00314.77
7.3.20.0000.01116.77
7.3.10.0030.01116.73
7.3.00.0040.00716.74
7.2.330.0140.00716.29
7.2.320.0100.00716.66
7.2.310.0000.01616.45
7.2.300.0110.00716.62
7.2.290.0140.00316.39
7.2.260.0060.00914.86
7.2.250.0130.00315.10
7.2.240.0100.00615.20
7.2.230.0060.00615.07
7.2.220.0080.00415.10
7.2.210.0040.00814.98
7.2.200.0110.00314.98
7.2.190.0070.00714.96
7.2.180.0090.00614.89
7.2.170.0060.00614.80
7.2.160.0000.00914.71
7.2.150.0120.00316.55
7.2.140.0040.01116.93
7.2.130.0030.01216.63
7.2.120.0060.01016.90
7.2.110.0090.00916.56
7.2.100.0030.01017.06
7.2.90.0040.00716.89
7.2.80.0040.01116.75
7.2.70.0060.00316.75
7.2.60.0040.00416.68
7.2.50.0040.00816.96
7.2.40.0110.00016.84
7.2.30.0060.00616.96
7.2.20.0030.01016.79
7.2.10.0000.01416.80
7.2.00.0050.00718.16
7.1.330.0060.00915.99
7.1.320.0100.00315.70
7.1.310.0060.00615.66
7.1.300.0070.00315.78
7.1.290.0070.00715.79
7.1.280.0040.00715.54
7.1.270.0030.00615.52
7.1.260.0070.00715.70
7.1.250.0090.00615.81
7.1.240.0100.00715.55
7.1.230.0110.00715.75
7.1.220.0040.01515.61
7.1.210.0100.00315.85
7.1.200.0130.00315.71
7.1.190.0100.00315.70
7.1.180.0100.00015.80
7.1.170.0090.00315.80
7.1.160.0030.00615.38
7.1.150.0040.00715.71
7.1.140.0040.00815.53
7.1.130.0070.00715.83
7.1.120.0060.00315.78
7.1.110.0060.00615.73
7.1.100.0050.00817.01
7.1.90.0030.01415.70
7.1.80.0030.00715.59
7.1.70.0060.00316.44
7.1.60.0100.00517.59
7.1.50.0050.01216.20
7.1.40.0000.01115.64
7.1.30.0080.00315.69
7.1.20.0080.00315.79
7.1.10.0080.00415.84
7.1.00.0050.04119.05
7.0.330.0000.00915.40
7.0.320.0070.00315.12
7.0.310.0000.01215.42
7.0.300.0090.00915.36
7.0.290.0030.01315.54
7.0.280.0040.00415.12
7.0.270.0070.00315.46
7.0.260.0090.00315.42
7.0.250.0000.01115.45
7.0.240.0090.00415.27
7.0.230.0060.00315.17
7.0.220.0040.00815.41
7.0.210.0040.00415.38
7.0.200.0060.00616.07
7.0.190.0030.01015.47
7.0.180.0120.00015.21
7.0.170.0060.00615.45
7.0.160.0030.01015.36
7.0.150.0000.01515.30
7.0.140.0030.04018.72
7.0.130.0030.00915.46
7.0.120.0070.01115.09
7.0.110.0000.01015.46
7.0.100.0100.00715.39
7.0.90.0060.00615.51
7.0.80.0070.00715.51
7.0.70.0040.00415.59
7.0.60.0050.02118.60
7.0.50.0020.04016.52
7.0.40.0050.05016.91
7.0.30.0130.03016.65
7.0.20.0120.02316.77
7.0.10.0040.02516.62
7.0.00.0080.04016.69
5.6.400.0070.00414.32
5.6.390.0050.00514.32
5.6.380.0030.00614.61
5.6.370.0030.01014.45
5.6.360.0070.00314.74
5.6.350.0060.00914.19
5.6.340.0000.01314.35
5.6.330.0030.00614.51
5.6.320.0080.00414.32
5.6.310.0030.00914.25
5.6.300.0040.00813.97
5.6.290.0030.01014.35
5.6.280.0080.03717.76
5.6.270.0080.00814.50
5.6.260.0030.01014.32
5.6.250.0060.00614.48
5.6.240.0040.00814.41
5.6.230.0030.01014.23
5.6.220.0000.00914.20
5.6.210.0050.04517.44
5.6.200.0070.04716.28
5.6.190.0040.03617.42
5.6.180.0110.04017.37
5.6.170.0160.04017.54
5.6.160.0110.03617.48
5.6.150.0110.04016.30
5.6.140.0060.04416.20
5.6.130.0070.04216.36
5.6.120.0030.04617.59
5.6.110.0050.02517.73
5.6.100.0070.04517.79
5.6.90.0080.04017.76
5.6.80.0090.03317.33
5.6.70.0060.00614.28
5.6.60.0040.01114.28
5.6.50.0040.00414.05
5.6.40.0110.00014.34
5.6.30.0070.01014.38
5.6.20.0060.01014.12
5.6.10.0040.00814.58
5.6.00.0000.01314.37
5.5.380.0030.01414.51
5.5.370.0100.00314.29
5.5.360.0110.00314.37
5.5.350.0170.02217.34
5.5.340.0070.04416.23
5.5.330.0120.02817.29
5.5.320.0190.03817.30
5.5.310.0190.04617.34
5.5.300.0050.04216.19
5.5.290.0030.04616.10
5.5.280.0130.03817.67
5.5.270.0160.03817.60
5.5.260.0090.04017.43
5.5.250.0030.02517.52
5.5.240.0030.04317.23
5.5.230.0070.00714.25
5.5.220.0000.01013.91
5.5.210.0060.00314.27
5.5.200.0110.00314.39
5.5.190.0000.01014.09
5.5.180.0090.00314.23
5.5.170.0000.01114.33
5.5.160.0060.00614.19
5.5.150.0030.01314.25
5.5.140.0070.00714.28
5.5.130.0000.01513.88
5.5.120.0080.00314.27
5.5.110.0060.00313.96
5.5.100.0070.00714.04
5.5.90.0040.00814.03
5.5.80.0000.00914.30
5.5.70.0090.00314.08
5.5.60.0130.00014.36
5.5.50.0030.01014.15
5.5.40.0120.00314.32
5.5.30.0040.00814.39
5.5.20.0070.00714.18
5.5.10.0040.01114.07
5.5.00.0030.01013.92
5.4.450.0370.02216.31
5.4.440.0330.02631.35
5.4.430.0180.02616.12
5.4.420.0130.02626.63
5.4.410.0120.02625.48
5.4.400.0180.02024.35
5.4.390.0170.02523.03
5.4.380.0100.02715.75
5.4.370.0050.03115.81
5.4.360.0120.02515.87
5.4.350.0030.03515.81
5.4.340.0100.02715.87
5.4.330.0030.00913.07
5.4.320.0050.02212.79
5.4.310.0040.02412.78
5.4.300.0050.02612.79
5.4.290.0050.02812.78
5.4.280.0060.02912.73
5.4.270.0040.03112.73
5.4.260.0060.03012.73
5.4.250.0040.03312.73
5.4.240.0070.03112.73
5.4.230.0070.03012.73
5.4.220.0070.03012.73
5.4.210.0050.02912.73
5.4.200.0080.02712.73
5.4.190.0120.02212.73
5.4.180.0080.02712.73
5.4.170.0040.03212.73
5.4.160.0090.02612.73
5.4.150.0040.02812.73
5.4.140.0090.02712.57
5.4.130.0060.02712.56
5.4.120.0040.02912.54
5.4.110.0070.02812.54
5.4.100.0080.02612.54
5.4.90.0040.03212.54
5.4.80.0090.02412.54
5.4.70.0060.02812.54
5.4.60.0050.02812.54
5.4.50.0030.02912.54
5.4.40.0070.02512.53
5.4.30.0040.03012.53
5.4.20.0070.02512.53
5.4.10.0070.02912.53
5.4.00.0070.02812.27
5.3.290.0050.02112.94
5.3.280.0090.02912.89
5.3.270.0090.04512.89
5.3.260.0090.03412.89
5.3.250.0050.03212.89
5.3.240.0090.03712.89
5.3.230.0070.03212.88
5.3.220.0050.03212.87
5.3.210.0080.03012.87
5.3.200.0090.04012.87
5.3.190.0080.02812.87
5.3.180.0080.03012.87
5.3.170.0090.02712.87
5.3.160.0070.02912.87
5.3.150.0060.03112.87
5.3.140.0050.03112.86
5.3.130.0100.02912.86
5.3.120.0080.02912.86
5.3.110.0080.04312.86
5.3.100.0090.04012.59
5.3.90.0090.05212.58
5.3.80.0090.04912.58
5.3.70.0100.03912.58
5.3.60.0070.04212.57
5.3.50.0080.03712.54
5.3.40.0080.02612.54
5.3.30.0050.02812.52
5.3.20.0100.04512.41
5.3.10.0110.04212.39
5.3.00.0050.02812.39
5.2.170.0080.0379.21
5.2.160.0080.0319.22
5.2.150.0070.0389.21
5.2.140.0050.0419.21
5.2.130.0100.0329.17
5.2.120.0100.0339.18
5.2.110.0090.0369.18
5.2.100.0050.0359.18
5.2.90.0060.0359.18
5.2.80.0060.0409.17
5.2.70.0060.0409.17
5.2.60.0060.0399.13
5.2.50.0070.0399.09
5.2.40.0080.0369.07
5.2.30.0050.0399.04
5.2.20.0060.0359.03
5.2.10.0110.0318.94
5.2.00.0050.0388.80
5.1.60.0080.0328.09
5.1.50.0070.0388.09
5.1.40.0030.0408.06
5.1.30.0100.0368.41
5.1.20.0040.0438.43
5.1.10.0050.0398.16
5.1.00.0060.0408.16
5.0.50.0070.0286.64
5.0.40.0050.0326.50
5.0.30.0060.0446.30
5.0.20.0030.0316.27
5.0.10.0050.0306.25
5.0.00.0130.0356.25
4.4.90.0090.0194.78
4.4.80.0060.0224.76
4.4.70.0040.0224.76
4.4.60.0100.0174.76
4.4.50.0060.0224.77
4.4.40.0080.0334.71
4.4.30.0040.0234.76
4.4.20.0050.0234.84
4.4.10.0090.0294.85
4.4.00.0100.0464.76
4.3.110.0030.0244.67
4.3.100.0090.0184.66
4.3.90.0080.0204.63
4.3.80.0090.0314.59
4.3.70.0080.0214.63
4.3.60.0040.0254.63
4.3.50.0090.0364.63
4.3.40.0060.0504.54
4.3.30.0080.0563.31
4.3.20.0080.0393.29
4.3.10.0030.0203.25
4.3.00.0100.02031.64

preferences:
40.45 ms | 400 KiB | 5 Q