3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Results = array( "Matchings" => array( array("Quotient"=>0.5) ) ); echo "<pre>".print_r($Results, true)."</pre>"; $Results["Matchings"] = uasort($Results["Matchings"], function($a, $b){ echo "<pre>".print_r(array($a, $b), true)."</pre>"; if($a["Quotient"] == $b["Quotient"]) { return 0; } return ($a["Quotient"] > $b["Quotient"] ? 1 : -1); }); die("<pre>".print_r($Results, true)."</pre>");

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.0110.00318.31
8.3.50.0140.00521.93
8.3.40.0110.00418.75
8.3.30.0070.00719.13
8.3.20.0040.00420.29
8.3.10.0080.00020.48
8.3.00.0040.00419.56
8.2.180.0130.00316.63
8.2.170.0120.00322.96
8.2.160.0140.00020.40
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0070.00726.16
8.2.120.0080.00022.07
8.2.110.0170.00321.05
8.2.100.0120.00017.91
8.2.90.0080.00019.34
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0080.00018.04
8.2.50.0060.00318.07
8.2.40.0040.00418.19
8.2.30.0070.00019.20
8.2.20.0040.00417.76
8.2.10.0040.00418.20
8.2.00.0090.00017.93
8.1.280.0070.00725.92
8.1.270.0000.00822.13
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00021.10
8.1.230.0070.00417.51
8.1.220.0080.00017.79
8.1.210.0030.00518.77
8.1.200.0000.01017.36
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0050.00318.51
8.1.160.0000.00722.07
8.1.150.0000.00718.90
8.1.140.0070.00017.38
8.1.130.0030.00317.87
8.1.120.0040.00417.55
8.1.110.0040.00417.46
8.1.100.0000.00717.53
8.1.90.0040.00417.45
8.1.80.0040.00417.45
8.1.70.0030.00317.41
8.1.60.0040.00417.49
8.1.50.0030.00517.51
8.1.40.0040.00417.53
8.1.30.0000.00817.52
8.1.20.0040.00417.64
8.1.10.0050.00217.48
8.1.00.0000.00817.59
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0070.00018.50
8.0.270.0000.00717.30
8.0.260.0070.00017.27
8.0.250.0000.00717.02
8.0.240.0060.00016.99
8.0.230.0050.00316.90
8.0.220.0070.00016.84
8.0.210.0030.00316.95
8.0.200.0030.00317.07
8.0.190.0040.00416.99
8.0.180.0080.00016.90
8.0.170.0040.00416.87
8.0.160.0040.00416.91
8.0.150.0030.00316.83
8.0.140.0000.00716.82
8.0.130.0060.00013.36
8.0.120.0040.00416.91
8.0.110.0050.00316.93
8.0.100.0070.00016.82
8.0.90.0050.00317.00
8.0.80.0120.00916.93
8.0.70.0040.00416.84
8.0.60.0000.00816.95
8.0.50.0080.00016.85
8.0.30.0090.01017.28
8.0.20.0100.01117.40
8.0.10.0000.00717.00
8.0.00.0110.00816.84
7.4.330.0000.00515.03
7.4.320.0030.00316.55
7.4.300.0030.00316.43
7.4.290.0000.00716.64
7.4.280.0000.00816.45
7.4.270.0040.00416.59
7.4.260.0000.00816.50
7.4.250.0070.00016.47
7.4.240.0040.00416.59
7.4.230.0000.00616.46
7.4.220.0110.00716.59
7.4.210.0060.00716.48
7.4.200.0040.00416.55
7.4.160.0090.00616.30
7.4.150.0120.00617.40
7.4.140.0150.00917.86
7.4.130.0090.00816.57
7.4.120.0040.01316.60
7.4.110.0100.01016.57
7.4.100.0090.00916.55
7.4.90.0040.01416.50
7.4.80.0130.01016.51
7.4.70.0120.00316.41
7.4.60.0120.00416.47
7.4.50.0050.00316.61
7.4.40.0030.01316.53
7.4.30.0100.00616.49
7.4.00.0110.00415.14
7.3.330.0050.00013.19
7.3.320.0050.00013.32
7.3.310.0000.00716.26
7.3.300.0050.00216.41
7.3.290.0060.00816.30
7.3.280.0050.01216.36
7.3.270.0030.01617.40
7.3.260.0120.00416.52
7.3.250.0130.00516.41
7.3.240.0150.00316.33
7.3.230.0060.00916.39
7.3.210.0080.00816.54
7.3.200.0060.01319.39
7.3.190.0070.01016.53
7.3.180.0080.01316.50
7.3.170.0100.00716.58
7.3.160.0040.01116.39
7.2.330.0100.01016.37
7.2.320.0090.00916.52
7.2.310.0080.00816.70
7.2.300.0100.00716.53
7.2.290.0080.00816.78
7.2.00.0060.00919.11
7.1.100.1030.00716.20
7.1.70.0000.00717.11
7.1.60.0070.01719.32
7.1.50.0100.00716.94
7.1.00.0100.07022.37
7.0.200.0090.00316.63
7.0.140.0030.07321.95
7.0.60.0000.07019.88
7.0.50.0170.07017.73
7.0.40.0030.08720.40
7.0.30.0270.05020.21
7.0.20.0270.08020.30
7.0.10.0070.04020.16
7.0.00.0070.08320.08
5.6.280.0030.07320.99
5.6.210.0030.08720.68
5.6.200.0070.04718.19
5.6.190.0130.03720.33
5.6.180.0570.06720.52
5.6.170.0300.08320.45
5.6.160.0070.05020.44
5.6.150.0100.06318.14
5.6.140.0030.04018.21
5.6.130.0070.04718.17
5.6.120.0130.06320.77
5.6.110.0100.06020.98
5.6.100.0230.07720.97
5.6.90.0130.07721.11
5.6.80.0070.06720.51
5.5.350.0130.08720.41
5.5.340.0030.03718.00
5.5.330.0130.07320.45
5.5.320.0270.03720.27
5.5.310.0300.07720.30
5.5.300.0070.05018.02
5.5.290.0070.05017.96
5.5.280.0130.07720.73
5.5.270.0100.07320.86
5.5.260.0100.08320.85
5.5.250.0000.04320.58
5.5.240.0170.07320.23
5.4.450.0070.06019.68
5.4.440.0800.05019.63
5.4.430.0970.05719.63
5.4.420.0670.06019.20
5.4.410.1070.05019.42
5.4.400.1030.05319.27
5.4.390.0830.05319.31
5.4.380.0370.05318.84
5.4.370.0230.06018.52
5.4.360.0300.06318.53
5.4.350.0430.05718.57
5.4.340.0330.05718.50
5.4.320.0040.04012.51
5.4.310.0050.04112.51
5.4.300.0080.04112.51
5.4.290.0090.04112.50
5.4.280.0070.03412.40
5.4.270.0060.03612.40
5.4.260.0050.03812.40
5.4.250.0060.04012.40
5.4.240.0090.03112.41
5.4.230.0040.03912.40
5.4.220.0060.03612.39
5.4.210.0080.03412.39
5.4.200.0070.03612.39
5.4.190.0070.03512.39
5.4.180.0080.03412.39
5.4.170.0070.03612.40
5.4.160.0070.03512.40
5.4.150.0050.03812.39
5.4.140.0100.04812.07
5.4.130.0100.03912.07
5.4.120.0070.03512.03
5.4.110.0110.03612.02
5.4.100.0080.04612.02
5.4.90.0080.05312.02
5.4.80.0090.04212.02
5.4.70.0100.04712.01
5.4.60.0090.03612.01
5.4.50.0080.03612.02
5.4.40.0040.03912.00
5.4.30.0050.03612.00
5.4.20.0040.03712.00
5.4.10.0070.03512.00
5.4.00.0060.03511.50
5.3.290.0070.03812.80
5.3.280.0060.03712.71
5.3.270.0030.04212.73
5.3.260.0050.04112.72
5.3.250.0070.03612.72
5.3.240.0090.03612.72
5.3.230.0050.04312.71
5.3.220.0050.03812.68
5.3.210.0050.04112.68
5.3.200.0060.03812.68
5.3.190.0080.03612.68
5.3.180.0080.03612.67
5.3.170.0080.03512.66
5.3.160.0060.03812.67
5.3.150.0060.03812.67
5.3.140.0090.03412.66
5.3.130.0050.04012.66
5.3.120.0060.03912.66
5.3.110.0110.03812.65
5.3.100.0060.03712.13
5.3.90.0090.03412.11
5.3.80.0070.04112.10
5.3.70.0090.04212.10
5.3.60.0050.03812.09
5.3.50.0020.03912.04
5.3.40.0060.03612.04
5.3.30.0060.03512.00
5.3.20.0020.03811.77
5.3.10.0030.03711.74
5.3.00.0020.04111.73
5.2.170.0070.0389.19
5.2.160.0050.0299.18
5.2.150.0050.0319.19
5.2.140.0050.0309.18
5.2.130.0050.0299.14
5.2.120.0060.0289.14
5.2.110.0030.0349.15
5.2.100.0030.0329.14
5.2.90.0040.0299.14
5.2.80.0040.0319.14
5.2.70.0030.0339.13
5.2.60.0030.0319.10
5.2.50.0040.0339.06
5.2.40.0030.0319.04
5.2.30.0060.0339.02
5.2.20.0020.0319.00
5.2.10.0060.0278.92
5.2.00.0030.0308.79
5.1.60.0040.0248.07
5.1.50.0040.0248.07
5.1.40.0050.0258.05
5.1.30.0050.0258.40
5.1.20.0080.0338.42
5.1.10.0100.0238.14
5.1.00.0060.0278.14
5.0.50.0040.0206.62
5.0.40.0040.0216.49
5.0.30.0050.0306.29
5.0.20.0050.0206.29
5.0.10.0050.0196.27
5.0.00.0060.0386.26
4.4.90.0020.0244.78
4.4.80.0050.0254.75
4.4.70.0060.0194.75
4.4.60.0020.0164.75
4.4.50.0040.0144.77
4.4.40.0020.0264.70
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0040.0204.67
4.3.100.0020.0164.66
4.3.90.0030.0144.63
4.3.80.0020.0254.58
4.3.70.0030.0194.63
4.3.60.0050.0154.63
4.3.50.0020.0184.63
4.3.40.0020.0254.54
4.3.30.0020.0173.31
4.3.20.0040.0143.29
4.3.10.0030.0173.25
4.3.00.0070.0236.79

preferences:
42.81 ms | 401 KiB | 5 Q