3v4l.org

run code in 300+ PHP versions simultaneously
<?php $menu = array( array(1,3,'Wurm 1.1', 2, 10), array(2,6,'Vogel 2.1', 2, 30), array(3,0,'Tiger 1', 1, 10), array(4,6,'Hund 2.2', 2, 40), array(5,3,'Katze 1.2', 2, 11), array(6,0,'Pferd 2', 1, 20), array(7,1,'Baer 1.1.1', 3, 0), array(8,3,'Schwein 1.3', 2, 12), array(9,4,'Esel 2.2.1', 3, 0), ); // Algorithmus hier $result = array(); $target = array( array(3,0,'Tiger 1', 1, 10), array(1,3,'Wurm 1.1', 2, 10), array(7,1,'Baer 1.1.1', 3, 0), array(5,3,'Katze 1.2', 2, 11), array(8,3,'Schwein 1.3', 2, 12), array(6,0,'Pferd 2', 1, 20), array(2,6,'Vogel 2.1', 2, 30), array(4,6,'Hund 2.2', 2, 40), array(9,4,'Esel 2.2.1', 3, 0), ); var_dump($result == $target);

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.0.30.0060.01616.90
8.0.20.0120.00817.40
8.0.00.0100.01216.67
7.4.160.0030.01216.57
7.4.150.0060.01317.40
7.4.140.0100.01017.86
7.4.130.0080.01016.32
7.4.120.0080.01016.44
7.4.110.0110.01016.42
7.4.100.0090.00916.46
7.4.90.0110.00716.49
7.4.80.0160.00718.04
7.4.70.0150.01016.51
7.4.60.0130.00616.39
7.4.50.0120.00516.48
7.4.40.0080.00816.30
7.4.30.0070.01116.31
7.4.20.0220.00216.31
7.4.10.0120.01215.95
7.4.00.0100.00815.63
7.3.270.0080.00817.40
7.3.260.0130.01016.23
7.3.240.0090.00916.25
7.3.230.0070.01416.33
7.3.220.0100.00716.45
7.3.210.0140.01416.38
7.3.200.0180.00917.86
7.3.190.0120.01316.36
7.3.180.0080.00916.11
7.3.170.0010.01616.17
7.3.160.0100.00716.25
7.3.150.0060.01116.10
7.3.140.0160.00916.29
7.3.130.0120.01015.79
7.3.120.0150.00615.62
7.3.110.0100.00915.14
7.3.100.0090.01015.12
7.3.90.0090.00915.15
7.3.80.0110.00615.29
7.3.70.0130.00615.17
7.3.60.0100.01015.11
7.3.50.0060.01015.20
7.3.40.0070.00915.14
7.3.30.0080.00715.26
7.3.20.0080.00815.71
7.3.10.0090.00915.91
7.3.00.0590.00515.88
7.2.340.0110.00816.54
7.2.330.0110.01316.54
7.2.320.0200.00816.50
7.2.310.0100.00716.48
7.2.300.0100.00816.31
7.2.290.0150.00316.44
7.2.280.0130.01116.27
7.2.270.0160.00916.30
7.2.260.0140.00815.87
7.2.250.0140.00915.72
7.2.240.0110.00715.43
7.2.230.0140.00615.26
7.2.220.0080.01015.34
7.2.210.0120.00715.29
7.2.200.0110.00915.36
7.2.190.0090.00915.38
7.2.180.0090.00815.36
7.2.170.0100.00815.29
7.2.160.0090.00915.46
7.2.150.0100.00815.82
7.2.140.0100.01015.89
7.2.130.0960.00915.71
7.2.120.0450.01215.78
7.2.110.0750.00615.73
7.2.100.0690.00915.86
7.2.90.0490.00815.88
7.2.80.0300.00915.88
7.2.70.0260.01015.78
7.2.60.0260.00815.87
7.2.50.0460.00915.97
7.2.40.0460.01016.12
7.2.30.0350.01016.49
7.2.20.0290.01116.44
7.2.10.0240.00816.33
7.2.00.0260.00816.36
7.1.330.0170.00814.96
7.1.320.0120.00814.88
7.1.310.0110.00814.92
7.1.300.0090.01014.92
7.1.290.0160.00414.99
7.1.280.0110.00914.97
7.1.270.0120.00714.90
7.1.260.0080.01014.97
7.1.250.0650.01014.80
7.1.240.0990.00814.64
7.1.230.0780.01014.65
7.1.220.0710.00714.62
7.1.210.0590.00914.61
7.1.200.0260.00814.78
7.1.190.0320.00514.66
7.1.180.0460.01014.60
7.1.170.0470.00914.60
7.1.160.0490.00614.85
7.1.150.0410.00915.20
7.1.140.0280.00915.35
7.1.130.0220.00915.27
7.1.120.0300.01015.26
7.1.110.0330.01115.15
7.1.100.0390.01015.05
7.1.90.0190.01014.96
7.1.80.0310.00815.00
7.1.70.0280.00814.73
7.1.60.0390.01020.86
7.1.50.0340.00820.73
7.1.40.0410.01120.54
7.1.30.0330.01020.58
7.1.20.0280.01120.66
7.1.10.0240.00814.62
7.1.00.0220.00914.62
7.0.330.1010.00914.01
7.0.320.0720.00513.94
7.0.310.0400.00414.11
7.0.300.0570.00814.05
7.0.290.0630.01314.44
7.0.280.0560.00813.88
7.0.270.0280.00914.89
7.0.260.0260.00714.93
7.0.250.0360.00914.74
7.0.240.0460.00914.69
7.0.230.0280.01114.60
7.0.220.0370.00914.74
7.0.210.0360.01114.33
7.0.200.0280.00814.32
7.0.190.0300.00914.32
7.0.180.0650.01114.12
7.0.170.0320.00914.16
7.0.160.0260.01014.21
7.0.150.0230.00914.15
7.0.140.0230.00914.17
7.0.130.0260.01014.29
7.0.120.0200.00914.23
7.0.110.0180.00914.31
7.0.100.0210.00914.19
7.0.90.0310.00814.26
7.0.80.0250.00914.23
7.0.70.0230.00814.25
7.0.60.0190.01014.11
7.0.50.0220.00914.33
7.0.40.0220.01214.30
7.0.30.0170.01114.32
7.0.20.0210.01014.24
7.0.10.0210.00914.25
7.0.00.0240.00914.25
5.6.400.0110.01115.02
5.6.390.0160.00914.91
5.6.380.0120.01014.78
5.6.370.0170.01014.86
5.6.360.0200.00714.86
5.6.350.0130.01214.95
5.6.340.0160.00814.83
5.6.330.0160.00914.88
5.6.320.0180.00914.79
5.6.310.0130.01114.97
5.6.300.0160.02617.07
5.6.290.0140.02917.05
5.6.280.0160.03117.04
5.6.270.0160.03317.06
5.6.260.0150.03017.07
5.6.250.0180.03517.16
5.6.240.0150.03017.09
5.6.230.0160.03017.02
5.6.220.0120.03017.14
5.6.210.0190.02917.05
5.6.200.0180.02817.16
5.6.190.0160.02917.13
5.6.180.0150.02917.10
5.6.170.0140.03017.01
5.6.160.0170.02917.01
5.6.150.0170.02617.04
5.6.140.0140.03417.04
5.6.130.0160.02917.12
5.6.120.0140.03017.10
5.6.110.0140.03217.07
5.6.100.0170.03217.05
5.6.90.0150.03317.02
5.6.80.0150.02816.72
5.6.70.0160.02816.79
5.6.60.0170.02816.75
5.6.50.0150.03016.76
5.6.40.0140.02916.75
5.6.30.0150.03016.77
5.6.20.0130.03216.79
5.6.10.0160.03016.80
5.6.00.0150.03116.79
5.5.380.0150.02915.41
5.5.370.0140.03215.42
5.5.360.0120.03015.44
5.5.350.0150.03115.27
5.5.340.0160.03015.59
5.5.330.0150.02815.59
5.5.320.0160.02615.45
5.5.310.0150.03115.51
5.5.300.0150.02615.57
5.5.290.0130.03215.56
5.5.280.0150.02715.54
5.5.270.0140.03115.46
5.5.260.0160.02815.55
5.5.250.0160.02815.44
5.5.240.0160.02715.11
5.5.230.0120.02915.29
5.5.220.0120.03015.13
5.5.210.0120.03315.29
5.5.200.0120.03015.21
5.5.190.0120.02815.25
5.5.180.0130.02915.18
5.5.170.0130.01014.71
5.5.160.0140.02915.23
5.5.150.0110.03115.24
5.5.140.0140.02715.20
5.5.130.0150.02515.17
5.5.120.0140.03215.25
5.5.110.0130.02915.19
5.5.100.0160.03115.21
5.5.90.0130.02515.21
5.5.80.0150.02515.13
5.5.70.0130.02915.18
5.5.60.0120.03015.22
5.5.50.0160.02615.23
5.5.40.0130.02615.13
5.5.30.0140.02815.20
5.5.20.0170.02915.25
5.5.10.0130.02915.31
5.5.00.0130.03215.25
5.4.450.0120.02614.46
5.4.440.0120.02514.41
5.4.430.0150.03114.37
5.4.420.0160.03014.33
5.4.410.0120.02514.45
5.4.400.0130.02814.24
5.4.390.0120.02914.18
5.4.380.0120.02414.24
5.4.370.0120.03114.21
5.4.360.0150.02714.22
5.4.350.0120.02714.24
5.4.340.0120.02914.20
5.4.330.0100.00711.51
5.4.320.0150.02414.25
5.4.310.0140.02614.24
5.4.300.0120.02714.23
5.4.290.0120.02714.25
5.4.280.0130.02914.21
5.4.270.0120.02814.21
5.4.260.0110.03014.23
5.4.250.0130.02914.19
5.4.240.0120.03114.21
5.4.230.0150.02714.20
5.4.220.0120.03014.25
5.4.210.0140.02314.21
5.4.200.0150.02814.27
5.4.190.0120.03014.26
5.4.180.0160.02814.22
5.4.170.0140.02614.26
5.4.160.0120.02814.25
5.4.150.0150.02814.34
5.4.140.0150.03113.29
5.4.130.0120.02613.37
5.4.120.0130.02613.39
5.4.110.0140.02713.32
5.4.100.0140.02213.38
5.4.90.0140.02213.38
5.4.80.0120.02613.38
5.4.70.0120.02413.38
5.4.60.0090.02713.36
5.4.50.0130.02513.33
5.4.40.0140.02513.41
5.4.30.0090.02813.38
5.4.20.0120.02613.28
5.4.10.0130.02613.42
5.4.00.0110.02613.16