3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Old = array(array("Subject"=>"Informatik 1", "Active"=>"1")); //$New = array(array("Subject"=>"Informatik 1", "Active"=>"0", "Subject"=>"Informatik 2", "Active"=>"1")); $New = array("Informatik 1~0", "Informatik 2~1"); var_dump(MergeOfReqs($Old, $New)); function MergeOfReqs($Old, $New) { echo"----<br/>".print_r($Old, true)."<br/>--<br/>".print_r($New, true)."<br/>--<br/>"; foreach($Old as &$O) { echo print_r($O, true)."<br/>"; $State = OffReqState($O, $New); $O["Active"] = ($State !== false) ? $State : 2; } echo"<br/>--<br/>"; foreach($New as $N) { echo print_r($N, true)."<br/>"; if(OffReqState($N, $Old) === false) { $Old[] = $N; } } echo "<br/>--<br/>".print_r($Old, true)."<br/>"; echo"-----<br/><br/>"; return $Old; } //And another shitty/crappy name function OffReqState($Elem, $Array) { foreach($Array as $Element) { if(strcmp($Element["Subject"], $Elem["Subject"]) == 0) { return $Elem["Active"]; } } return false; }

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.60.0070.00718.32
8.3.50.0130.00521.16
8.3.40.0110.00718.66
8.3.30.0030.01019.02
8.3.20.0070.00020.22
8.3.10.0050.00223.54
8.3.00.0000.00819.38
8.2.180.0120.00618.66
8.2.170.0070.00722.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00422.25
8.2.110.0060.00321.11
8.2.100.0040.00818.03
8.2.90.0050.00317.97
8.2.80.0040.00419.22
8.2.70.0050.00317.75
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0050.00320.01
8.2.30.0000.00718.21
8.2.20.0000.00817.69
8.2.10.0040.00418.20
8.2.00.0000.00817.72
8.1.280.0070.00725.92
8.1.270.0040.00423.92
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.13
8.1.230.0110.00020.89
8.1.220.0080.00017.78
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.68
8.1.160.0040.00422.02
8.1.150.0040.00418.94
8.1.140.0000.00717.46
8.1.130.0070.00017.88
8.1.120.0040.00317.41
8.1.110.0040.00417.50
8.1.100.0050.00217.49
8.1.90.0030.00517.47
8.1.80.0040.00417.45
8.1.70.0050.00317.43
8.1.60.0060.00317.63
8.1.50.0000.00817.52
8.1.40.0040.00417.48
8.1.30.0030.00617.62
8.1.20.0030.00517.61
8.1.10.0000.00717.62
8.1.00.0040.00417.41
8.0.300.0070.00020.17
8.0.290.0040.00416.88
8.0.280.0030.00318.50
8.0.270.0030.00517.23
8.0.260.0000.00717.14
8.0.250.0070.00017.02
8.0.240.0000.00816.99
8.0.230.0060.00316.91
8.0.220.0000.00816.85
8.0.210.0070.00016.93
8.0.200.0070.00016.89
8.0.190.0030.00516.99
8.0.180.0000.00716.99
8.0.170.0040.00417.05
8.0.160.0040.00416.92
8.0.150.0040.00416.84
8.0.140.0040.00416.91
8.0.130.0030.00313.40
8.0.120.0040.00416.89
8.0.110.0070.00016.96
8.0.100.0030.00517.00
8.0.90.0000.00716.82
8.0.80.0030.01416.85
8.0.70.0040.00416.93
8.0.60.0000.00817.01
8.0.50.0000.00717.02
8.0.30.0100.00917.13
8.0.20.0130.00717.40
8.0.10.0000.00717.00
8.0.00.0120.00616.90
7.4.330.0000.00515.02
7.4.320.0030.00316.51
7.4.300.0000.00716.66
7.4.290.0070.00016.46
7.4.280.0210.00716.60
7.4.270.0000.00816.63
7.4.260.0070.00016.59
7.4.250.0030.00516.57
7.4.240.0030.00516.49
7.4.230.0030.00316.70
7.4.220.0070.01116.58
7.4.210.0120.00316.47
7.4.200.0040.00416.32
7.4.160.0130.00316.51
7.4.150.0150.00317.40
7.4.140.0170.00717.86
7.4.130.0130.00616.49
7.4.120.0100.00816.54
7.4.110.0110.00716.69
7.4.100.0140.01216.38
7.4.90.0090.00916.48
7.4.80.0090.00919.39
7.4.70.0110.01416.56
7.4.60.0080.01116.49
7.4.50.0060.00716.43
7.4.40.0030.01316.44
7.4.30.0100.00716.49
7.4.20.0130.00316.33
7.4.10.0100.00616.43
7.4.00.0080.00915.65
7.3.330.0000.00513.50
7.3.320.0050.00013.35
7.3.310.0030.00716.42
7.3.300.0070.00016.44
7.3.290.0110.00616.46
7.3.280.0100.00616.44
7.3.270.0090.00817.40
7.3.260.0140.00716.43
7.3.250.0110.00816.50
7.3.240.0120.00616.42
7.3.230.0100.00716.40
7.3.210.0190.00016.69
7.3.200.0080.01119.39
7.3.190.0070.01016.45
7.3.180.0070.00916.50
7.3.170.0050.01016.45
7.3.160.0160.00016.57
7.3.150.0090.00616.49
7.3.140.0090.00616.39
7.3.130.0060.00916.43
7.3.120.0040.01115.55
7.3.110.0040.00915.38
7.3.100.0040.01215.59
7.3.90.0060.00915.58
7.3.80.0130.00315.48
7.3.70.0060.00915.59
7.3.60.0060.00815.69
7.3.50.0040.01115.54
7.3.40.0060.01015.57
7.3.30.0060.00615.56
7.3.20.0050.00916.38
7.3.10.0070.00816.62
7.3.00.0050.01116.55
7.2.330.0110.00616.77
7.2.320.0120.00916.52
7.2.310.0000.01516.84
7.2.300.0150.00016.45
7.2.290.0100.00616.54
7.2.280.0130.00616.46
7.2.270.0070.01016.52
7.2.260.0120.00316.73
7.2.250.0110.00515.76
7.2.240.0050.01115.68
7.2.230.0080.00615.83
7.2.220.0130.00215.90
7.2.210.0050.01215.70
7.2.200.0030.01015.71
7.2.190.0070.00815.70
7.2.180.0080.00815.81
7.2.170.0100.00615.80
7.2.160.0070.01016.34
7.2.150.0110.00716.58
7.2.140.0060.01216.55
7.2.130.0110.00416.42
7.2.120.0170.01016.44
7.2.110.0100.00616.77
7.2.100.0040.01516.57
7.2.90.0170.01016.34
7.2.80.0130.00316.79
7.2.70.0120.00416.30
7.2.60.0050.01016.67
7.2.50.0060.01216.38
7.2.40.0160.00016.43
7.2.30.0100.00716.48
7.2.20.0110.00716.55
7.2.10.0120.00616.38
7.2.00.0100.00817.97
7.1.330.0070.00715.67
7.1.320.0060.01115.57
7.1.310.0160.00315.61
7.1.300.0110.00315.60
7.1.290.0090.00715.58
7.1.280.0060.00815.57
7.1.270.0060.01015.54
7.1.260.0090.00715.52
7.1.250.0110.00615.56
7.1.240.0030.01315.45
7.1.230.0090.00915.45
7.1.220.0070.01015.21
7.1.210.0080.00815.56
7.1.200.0080.00715.60
7.1.190.0090.00615.44
7.1.180.0070.00715.46
7.1.170.0080.00815.60
7.1.160.0060.00915.50
7.1.150.0060.00915.38
7.1.140.0080.00915.39
7.1.130.0060.00915.35
7.1.120.0150.00015.50
7.1.110.0070.01015.57
7.1.100.0410.00715.77
7.1.90.0040.01115.44
7.1.80.0070.00715.33
7.1.70.0090.00716.38
7.1.60.0130.00717.27
7.1.50.0080.01216.15
7.1.40.0080.00615.81
7.1.30.0030.01315.26
7.1.20.0120.00315.35
7.1.10.0000.01615.48
7.1.00.0020.04418.90
7.0.330.0160.00415.15
7.0.320.0130.00315.13
7.0.310.0110.00415.16
7.0.300.0050.01015.06
7.0.290.0090.00515.21
7.0.280.0080.00715.07
7.0.270.0060.00914.99
7.0.260.0000.01315.15
7.0.250.0070.00714.96
7.0.240.0000.01415.09
7.0.230.0060.00815.00
7.0.220.0030.01315.17
7.0.210.0060.00915.17
7.0.200.0080.00315.97
7.0.190.0070.00715.19
7.0.180.0060.00814.94
7.0.170.0090.00614.92
7.0.160.0210.00015.33
7.0.150.0090.00615.08
7.0.140.0030.04218.57
7.0.130.0060.00815.20
7.0.120.0140.00315.25
7.0.110.0070.04217.59
7.0.100.0140.04317.52
7.0.90.0130.04617.50
7.0.80.0140.04217.49
7.0.70.0090.04117.37
7.0.60.0160.03617.44
7.0.50.0060.05117.67
7.0.40.0120.02717.54
7.0.30.0090.04517.57
7.0.20.0100.04417.48
7.0.10.0090.04317.58
7.0.00.0110.04017.49
5.6.400.0110.00815.74
5.6.390.0120.00815.97
5.6.380.0120.00615.82
5.6.370.0040.01516.24
5.6.360.0060.01216.02
5.6.350.0120.00616.25
5.6.340.0120.00615.82
5.6.330.0100.00715.67
5.6.320.0070.01116.01
5.6.310.0040.01415.80
5.6.300.0030.01316.16
5.6.290.0130.00315.95
5.6.280.0110.03618.31
5.6.270.0100.00715.73
5.6.260.0050.04518.29
5.6.250.0080.04118.17
5.6.240.0050.04318.30
5.6.230.0080.04118.36
5.6.220.0070.04718.12
5.6.210.0070.04518.31
5.6.200.0060.03818.59
5.6.190.0070.04018.57
5.6.180.0090.04318.54
5.6.170.0090.04518.57
5.6.160.0070.04718.57
5.6.150.0130.03318.56
5.6.140.0030.04418.49
5.6.130.0160.04018.42
5.6.120.0080.04518.54
5.6.110.0030.04318.50
5.6.100.0070.04618.44
5.6.90.0050.03018.49
5.6.80.0090.04218.17
5.6.70.0130.03918.15
5.6.60.0080.03918.15
5.6.50.0110.03918.09
5.6.40.0080.04118.09
5.6.30.0100.04418.24
5.6.20.0080.04418.10
5.6.10.0090.04418.03
5.6.00.0140.03818.25
5.5.380.0090.04318.28
5.5.370.0130.04118.13
5.5.360.0120.04018.27
5.5.350.0050.03818.19
5.5.340.0090.04418.30
5.5.330.0120.03718.38
5.5.320.0070.04518.43
5.5.310.0030.04918.21
5.5.300.0130.02618.29
5.5.290.0120.04218.37
5.5.280.0050.04918.34
5.5.270.0030.04918.38
5.5.260.0070.02518.35
5.5.250.0090.02218.19
5.5.240.0080.04317.92
5.5.230.0050.04818.01
5.5.220.0080.03017.88
5.5.210.0030.04417.99
5.5.200.0060.04117.91
5.5.190.0040.04018.08
5.5.180.0070.04118.13
5.5.170.0050.01316.05
5.5.160.0110.04018.21
5.5.150.0080.04718.19
5.5.140.0140.04318.18
5.5.130.0070.02817.91
5.5.120.0050.04417.99
5.5.110.0080.04517.80
5.5.100.0030.04617.99
5.5.90.0030.04918.02
5.5.80.0100.04217.88
5.5.70.0060.04618.15
5.5.60.0060.04317.85
5.5.50.0080.03917.95
5.5.40.0180.03217.99
5.5.30.0110.03917.94
5.5.20.0050.04618.06
5.5.10.0110.04417.91
5.5.00.0080.04517.91
5.4.450.0060.04616.00
5.4.440.0060.02816.05
5.4.430.0060.04116.14
5.4.420.0050.02316.19
5.4.410.0100.04116.02
5.4.400.0050.04115.96
5.4.390.0080.03715.89
5.4.380.0060.03615.84
5.4.370.0050.04215.94
5.4.360.0070.02315.98
5.4.350.0080.04216.05
5.4.340.0020.04915.91
5.4.330.0050.00812.75
5.4.320.0050.03915.86
5.4.310.0110.03815.86
5.4.300.0070.04315.89
5.4.290.0030.04115.88
5.4.280.0040.04715.84
5.4.270.0070.04215.87
5.4.260.0070.03815.96
5.4.250.0030.03215.94
5.4.240.0110.03415.90
5.4.230.0110.02915.85
5.4.220.0170.01815.76
5.4.210.0120.03715.92
5.4.200.0040.04015.75
5.4.190.0030.04515.94
5.4.180.0070.04216.06
5.4.170.0090.04115.84
5.4.160.0090.04015.93
5.4.150.0040.04115.93
5.4.140.0080.03214.60
5.4.130.0060.03914.87
5.4.120.0080.03814.51
5.4.110.0060.03814.67
5.4.100.0070.04214.75
5.4.90.0060.04114.48
5.4.80.0070.04014.53
5.4.70.0030.04314.72
5.4.60.0020.03014.57
5.4.50.0070.02114.53
5.4.40.0030.04314.66
5.4.30.0070.03814.53
5.4.20.0090.03814.66
5.4.10.0080.03514.65
5.4.00.0060.02714.33
5.3.290.0110.04013.93
5.3.280.0070.04213.90
5.3.270.0050.02813.99
5.3.260.0090.04213.94
5.3.250.0030.03413.91
5.3.240.0070.04014.02
5.3.230.0010.04613.89
5.3.220.0030.02913.92
5.3.210.0130.03513.79
5.3.200.0020.04513.99
5.3.190.0090.03713.77
5.3.180.0100.03713.95
5.3.170.0080.03013.87
5.3.160.0050.03913.96
5.3.150.0070.04014.03
5.3.140.0070.04213.88
5.3.130.0050.04013.89
5.3.120.0010.04913.85
5.3.110.0000.04914.02
5.3.100.0120.03713.63
5.3.90.0070.04013.61
5.3.80.0050.04313.58
5.3.70.0030.04113.53
5.3.60.0050.04013.57
5.3.50.0020.03013.63
5.3.40.0070.04013.51
5.3.30.0070.03913.59
5.3.20.0080.03713.40
5.3.10.0050.03813.25
5.3.00.0080.03913.33
5.2.170.0020.03611.93
5.2.160.0030.03611.95
5.2.150.0050.03611.95
5.2.140.0060.03511.95
5.2.130.0030.03411.88
5.2.120.0070.03211.90
5.2.110.0040.02712.04
5.2.100.0060.03311.90
5.2.90.0100.03111.87
5.2.80.0050.03611.84
5.2.70.0060.03611.85
5.2.60.0050.03211.85
5.2.50.0030.03011.81
5.2.40.0080.01811.99
5.2.30.0050.03511.85
5.2.20.0030.03311.79
5.2.10.0050.03511.82
5.2.00.0050.03111.73
5.1.60.0090.02511.51
5.1.50.0030.03411.35
5.1.40.0080.02811.57
5.1.30.0050.02811.51
5.1.20.0030.03211.59
5.1.10.0050.03011.49
5.1.00.0040.02811.51
5.0.50.0030.02611.00
5.0.40.0020.02710.96
5.0.30.0060.03210.96
5.0.20.0070.01610.96
5.0.10.0000.02810.96
5.0.00.0060.03210.96
4.4.90.0030.01810.96
4.4.80.0050.01010.96
4.4.70.0030.01810.96
4.4.60.0040.01510.96
4.4.50.0050.01810.96
4.4.40.0000.01910.96
4.4.30.0070.01710.96
4.4.20.0030.01810.96
4.4.10.0030.01910.96
4.4.00.0050.02810.96
4.3.110.0000.01310.96
4.3.100.0060.01510.96
4.3.90.0020.01810.96
4.3.80.0040.02310.96
4.3.70.0000.02110.96
4.3.60.0040.01710.96
4.3.50.0010.01810.96
4.3.40.0060.02310.96
4.3.30.0020.01910.96
4.3.20.0030.01810.96
4.3.10.0030.01810.96
4.3.00.0030.01610.96

preferences:
42.77 ms | 401 KiB | 5 Q