3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attribute_content[0]['term_id'] = 76; $attribute_content[0]['content'] = "ratio"; $attribute_content[1]['term_id'] = 18; $attribute_content[1]['content'] = "ideal condition"; $attribute_content[2]['term_id'] = 164; $attribute_content[2]['content'] = "genotype"; $attribute_content[3]['term_id'] = 218; $attribute_content[3]['content'] = "genetics"; $attribute_content[4]['term_id'] = 60; $attribute_content[4]['content'] = "height"; $order = array(18,164,218,60,76); $weights = array_flip($order); usort($attribute_content, function($x, $y) use($weights) { return $weights[$x['term_id']] - $weights[$y['term_id']]; }); var_dump($attribute_content);

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.5.00.0120.01120.05
8.4.150.0010.00114.05
8.4.140.0120.00917.54
8.4.130.0100.01117.80
8.4.120.0140.00622.21
8.4.110.0140.00718.88
8.4.100.0100.01118.46
8.4.90.0110.00818.86
8.4.80.0150.00417.77
8.4.70.0100.00319.87
8.4.60.0100.00918.64
8.4.50.0100.01118.69
8.4.40.0150.00723.92
8.4.30.0160.00322.39
8.4.20.0070.01117.88
8.4.10.0050.00519.39
8.3.280.0200.00518.36
8.3.270.0120.00916.79
8.3.260.0160.00316.52
8.3.250.0040.00319.00
8.3.240.0150.00516.60
8.3.230.0150.00516.52
8.3.220.0050.00316.93
8.3.210.0080.00716.69
8.3.200.0050.00416.73
8.3.190.0130.00618.81
8.3.180.0080.01117.22
8.3.170.0030.00520.97
8.3.160.0070.01117.48
8.3.150.0090.00017.42
8.3.140.0070.01118.31
8.3.130.0080.00018.24
8.3.120.0030.00619.00
8.3.110.0060.00320.94
8.3.100.0060.00316.62
8.3.90.0050.00316.66
8.3.80.0060.00616.36
8.3.70.0150.00416.75
8.3.60.0210.00016.63
8.3.50.0150.00322.93
8.3.40.0030.01418.98
8.3.30.0090.00618.68
8.3.20.0050.00220.16
8.3.10.0040.00421.95
8.3.00.0040.00419.25
8.2.290.0070.00420.46
8.2.280.0080.01118.45
8.2.270.0150.00317.29
8.2.260.0130.00616.54
8.2.250.0030.00618.35
8.2.240.0110.00717.29
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0070.00416.50
8.2.190.0100.00716.75
8.2.180.0110.00716.75
8.2.170.0080.00619.09
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0000.00820.89
8.2.120.0050.00226.35
8.2.110.0140.00319.30
8.2.100.0060.00617.78
8.2.90.0060.00319.21
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0060.00318.05
8.2.50.0030.00618.07
8.2.40.0040.00418.35
8.2.30.0040.00418.24
8.2.20.0000.00717.68
8.2.10.0040.00418.04
8.2.00.0040.00617.88
8.1.330.0140.00522.15
8.1.320.0120.01016.33
8.1.310.0060.00318.61
8.1.300.0090.00018.71
8.1.290.0090.00930.84
8.1.280.0030.01225.92
8.1.270.0030.00722.08
8.1.260.0050.00228.09
8.1.250.0000.00728.09
8.1.240.0040.00421.40
8.1.230.0080.00322.31
8.1.220.0030.00617.78
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0060.00318.73
8.1.160.0040.00418.81
8.1.150.0080.00020.68
8.1.140.0030.00419.60
8.1.130.0050.00617.58
8.1.120.0080.00517.42
8.1.110.0060.00617.44
8.1.100.0040.00817.48
8.1.90.0070.00617.47
8.1.80.0060.00517.44
8.1.70.0070.00517.47
8.1.60.0070.00617.57
8.1.50.0100.00417.53
8.1.40.0140.00017.62
8.1.30.0100.00417.56
8.1.20.0050.00717.64
8.1.10.0010.00817.57
8.1.00.0100.00317.48
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00718.41
8.0.270.0000.00717.27
8.0.260.0090.00317.62
8.0.250.0110.00116.92
8.0.240.0080.00316.88
8.0.230.0070.00616.91
8.0.220.0050.00616.91
8.0.210.0050.00616.83
8.0.200.0090.00316.93
8.0.190.0070.00516.91
8.0.180.0110.00016.90
8.0.170.0000.01016.88
8.0.160.0050.00516.82
8.0.150.0050.00516.83
8.0.140.0080.00216.82
8.0.130.0040.00515.10
8.0.120.0070.00316.78
8.0.110.0050.00416.84
8.0.100.0020.00816.86
8.0.90.0030.00616.92
8.0.80.0070.00816.91
8.0.70.0030.00716.79
8.0.60.0050.00516.88
8.0.50.0060.00416.79
8.0.30.0070.01016.97
8.0.20.0080.01017.29
8.0.10.0040.00616.95
8.0.00.0110.00916.79
7.4.330.0070.00215.97
7.4.320.0070.00416.67
7.4.300.0080.00316.69
7.4.290.0080.00316.71
7.4.280.0100.00316.70
7.4.270.0070.00416.71
7.4.260.0080.00316.63
7.4.250.0060.00616.67
7.4.240.0080.00516.68
7.4.230.0090.00316.65
7.4.220.0120.00416.67
7.4.210.0080.00716.77
7.4.200.0070.00716.79
7.4.190.0150.00016.87
7.4.180.0050.01016.87
7.4.160.0100.00716.68
7.4.150.0110.00517.13
7.4.140.0120.00717.53
7.4.130.0080.00816.58
7.4.120.0110.00616.73
7.4.110.0120.00416.71
7.4.100.0070.00816.70
7.4.90.0100.00616.68
7.4.80.0090.00618.13
7.4.70.0070.00916.63
7.4.60.0150.00416.68
7.4.50.0100.00416.58
7.4.40.0060.01016.68
7.4.30.0070.01016.66
7.4.20.0110.00316.87
7.4.10.0120.00315.90
7.4.00.0090.00615.57
7.3.330.0070.00315.13
7.3.320.0060.00315.12
7.3.310.0080.00216.69
7.3.300.0080.00316.58
7.3.290.0090.00216.63
7.3.280.0100.00716.42
7.3.270.0090.01117.13
7.3.260.0110.00616.62
7.3.250.0100.00916.58
7.3.240.0100.00816.59
7.3.230.0100.00516.63
7.3.220.0130.00016.87
7.3.210.0080.00716.73
7.3.200.0080.00816.71
7.3.190.0080.00816.61
7.3.180.0060.00916.72
7.3.170.0100.00816.73
7.3.160.0080.01016.71
7.3.150.0130.00016.87
7.3.140.0110.00416.87
7.3.130.0140.00015.79
7.3.120.0060.01015.80
7.3.110.0100.00715.87
7.3.100.0070.00715.86
7.3.90.0130.00215.92
7.3.80.0060.00515.87
7.3.70.0090.00515.90
7.3.60.0110.00415.80
7.3.50.0100.00715.88
7.3.40.0120.00215.82
7.3.30.0060.00815.82
7.3.20.0090.00516.76
7.3.10.0070.00816.66
7.3.00.0100.00316.63
7.2.340.0140.00016.87
7.2.330.0110.00516.82
7.2.320.0060.00916.81
7.2.310.0120.00716.73
7.2.300.0060.01016.87
7.2.290.0080.00716.79
7.2.280.0140.00016.87
7.2.270.0070.00716.87
7.2.260.0080.00615.96
7.2.250.0100.00616.11
7.2.240.0110.00516.04
7.2.230.0110.00516.04
7.2.220.0080.00716.00
7.2.210.0100.00516.07
7.2.200.0080.00515.92
7.2.190.0060.01115.94
7.2.180.0040.01315.93
7.2.170.0100.00415.92
7.2.160.0130.00315.85
7.2.150.0090.00816.98
7.2.140.0130.00416.95
7.2.130.0050.00716.90
7.2.120.0090.00616.83
7.2.110.0090.00516.84
7.2.100.0070.00716.88
7.2.90.0070.00716.87
7.2.80.0070.00816.91
7.2.70.0060.00916.90
7.2.60.0120.00316.95
7.2.50.0080.00516.91
7.2.40.0050.00816.93
7.2.30.0160.00517.02
7.2.20.0060.00616.99
7.2.10.0060.00816.95
7.2.00.0080.00517.64
7.1.330.0050.00916.23
7.1.320.0100.00216.35
7.1.310.0070.00716.37
7.1.300.0090.00716.24
7.1.290.0090.00616.33
7.1.280.0070.00716.35
7.1.270.0100.00516.30
7.1.260.0070.00716.34
7.1.250.0080.00516.18
7.1.240.0120.00516.40
7.1.230.0110.00316.38
7.1.220.0050.01016.38
7.1.210.0100.00316.14
7.1.200.0080.00616.22
7.1.190.0120.00516.26
7.1.180.0070.00516.37
7.1.170.0050.00816.27
7.1.160.0090.00516.21
7.1.150.0140.00716.41
7.1.140.0090.00416.28
7.1.130.0100.00316.40
7.1.120.0080.00616.37
7.1.110.0110.00216.34
7.1.100.0060.00616.27
7.1.90.0070.00616.17
7.1.80.0020.01216.38
7.1.70.0060.00516.52
7.1.60.0050.00817.36
7.1.50.0060.00716.37
7.1.40.0060.00716.40
7.1.30.0090.00516.34
7.1.20.0090.00216.35
7.1.10.0120.00016.41
7.1.00.0080.02918.28
7.0.330.0110.00515.99
7.0.320.0050.01116.04
7.0.310.0090.00616.14
7.0.300.0050.01016.17
7.0.290.0070.00616.14
7.0.280.0070.00616.10
7.0.270.0220.00316.17
7.0.260.0100.00316.01
7.0.250.0070.00516.11
7.0.240.0070.00616.05
7.0.230.0070.00616.10
7.0.220.0050.00816.13
7.0.210.0090.00416.17
7.0.200.0040.00816.42
7.0.190.0080.00416.15
7.0.180.0090.00316.23
7.0.170.0070.00716.16
7.0.160.0070.00716.16
7.0.150.0080.00516.12
7.0.140.0040.00916.23
7.0.130.0030.01116.24
7.0.120.0080.00416.07
7.0.110.0080.00516.17
7.0.100.0070.00416.15
7.0.90.0070.00516.24
7.0.80.0250.02317.43
7.0.70.0120.02017.36
7.0.60.0090.02317.54
7.0.50.0180.02217.62
7.0.40.0080.02316.94
7.0.30.0500.02416.83
7.0.20.0330.02016.97
7.0.10.0310.02216.92
7.0.00.0360.02216.96
5.6.400.0070.00815.52
5.6.390.0030.01115.62
5.6.380.0080.00415.73
5.6.370.0090.00515.63
5.6.360.0070.00715.78
5.6.350.0130.00315.75
5.6.340.0060.01015.73
5.6.330.0080.00315.46
5.6.320.0030.01015.72
5.6.310.0070.00615.72
5.6.300.0100.00315.60
5.6.290.0080.00615.74
5.6.280.0110.00315.78
5.6.270.0030.01115.69
5.6.260.0060.00615.75
5.6.250.0060.00815.62
5.6.240.0080.00515.63
5.6.230.0100.02217.34
5.6.220.0060.02517.24
5.6.210.0110.01917.34
5.6.200.0070.02717.40
5.6.190.0090.02317.53
5.6.180.0080.02617.39
5.6.170.0100.02217.50
5.6.160.0100.02217.43
5.6.150.0040.02617.43
5.6.140.0090.02217.49
5.6.130.0100.02217.43
5.6.120.0110.02117.45
5.6.110.0100.02117.47
5.6.100.0040.02717.44
5.6.90.0100.02317.36
5.6.80.0090.02217.18
5.6.70.0100.02117.19
5.6.60.0050.02517.21
5.6.50.0140.02017.15
5.6.40.0050.02417.23
5.6.30.0110.02117.17
5.6.20.0080.02417.25
5.6.10.0080.02217.29
5.6.00.0130.02217.12
5.5.380.0070.00515.65
5.5.370.0050.00615.69
5.5.360.0040.00715.60
5.5.350.0080.00515.52
5.5.340.0080.00515.59
5.5.330.0070.00715.59
5.5.320.0070.00715.64
5.5.310.0040.01015.50
5.5.300.0070.00715.41
5.5.290.0070.00815.46
5.5.280.0080.00615.55
5.5.270.0080.00315.61
5.5.260.0090.00615.52
5.5.250.0090.00515.64
5.5.240.0080.00315.56
5.5.230.0110.00015.57
5.5.220.0070.00715.48
5.5.210.0090.00515.49
5.5.200.0030.01215.72
5.5.190.0020.01115.46
5.5.180.0020.01215.38
5.5.170.0050.00815.46
5.5.160.0090.00315.72
5.5.150.0020.01115.41
5.5.140.0070.00315.63
5.5.130.0050.00815.60
5.5.120.0050.00915.57
5.5.110.0100.00215.46
5.5.100.0100.00415.62
5.5.90.0070.00315.45
5.5.80.0120.00015.64
5.5.70.0080.00515.50
5.5.60.0080.00215.70
5.5.50.0080.00415.52
5.5.40.0050.00815.60
5.5.30.0090.00415.55
5.5.20.0070.00715.36
5.5.10.0090.00415.57
5.5.00.0030.01015.35

preferences:
31.64 ms | 403 KiB | 5 Q