3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataPoints = array( array('1' => '33','2' => 'dave','3' => '367'), array('1' => '168','2' => 'susan','3' => '56788'), array('1' => '99','2' => 'tim','3' => '6') ); function cmp($a, $b){ if ($a[3] == $b[3]) { return 0; } return ($a[3] < $b[3]) ? -1 : 1; } usort($dataPoints, "cmp"); print_r($dataPoints[0]);

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.00716.50
8.3.50.0170.00522.11
8.3.40.0040.01118.75
8.3.30.0070.01018.73
8.3.20.0040.00420.39
8.3.10.0040.00423.62
8.3.00.0000.00819.25
8.2.180.0100.00718.40
8.2.170.0160.00322.96
8.2.160.0100.00320.52
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00722.21
8.2.110.0100.00722.11
8.2.100.0080.00417.91
8.2.90.0050.00319.22
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0000.00818.34
8.2.30.0020.00518.03
8.2.20.0070.00017.74
8.2.10.0060.00318.24
8.2.00.0080.00017.60
8.1.280.0070.00725.92
8.1.270.0000.00822.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.73
8.1.230.0110.00018.85
8.1.220.0040.00417.78
8.1.210.0030.00518.77
8.1.200.0040.00417.48
8.1.190.0000.00817.40
8.1.180.0030.00518.10
8.1.170.0000.00818.50
8.1.160.0040.00422.03
8.1.150.0040.00418.61
8.1.140.0050.00217.33
8.1.130.0030.00317.88
8.1.120.0000.01117.46
8.1.110.0000.00717.49
8.1.100.0000.00717.40
8.1.90.0070.00017.33
8.1.80.0040.00417.36
8.1.70.0030.00517.38
8.1.60.0030.00517.56
8.1.50.0000.00917.43
8.1.40.0040.00417.56
8.1.30.0040.00417.51
8.1.20.0000.00817.66
8.1.10.0070.00017.54
8.1.00.0000.00717.48
8.0.300.0000.00718.77
8.0.290.0080.00017.18
8.0.280.0040.00418.44
8.0.270.0080.00017.33
8.0.260.0000.00616.83
8.0.250.0000.00716.96
8.0.240.0000.01116.83
8.0.230.0000.00816.80
8.0.220.0000.00716.89
8.0.210.0070.00016.93
8.0.200.0040.00416.96
8.0.190.0070.00016.85
8.0.180.0000.00717.00
8.0.170.0000.00816.94
8.0.160.0000.00716.96
8.0.150.0000.00716.93
8.0.140.0000.00716.84
8.0.130.0030.00313.36
8.0.120.0030.00616.81
8.0.110.0000.00716.81
8.0.100.0040.00416.80
8.0.90.0000.00716.70
8.0.80.0160.00316.84
8.0.70.0000.00716.79
8.0.60.0000.00816.85
8.0.50.0000.00716.93
8.0.30.0140.00517.29
8.0.20.0110.00817.40
8.0.10.0050.00217.05
8.0.00.0130.00516.63
7.4.330.0050.00015.00
7.4.320.0000.00716.62
7.4.300.0040.00416.48
7.4.290.0030.00316.64
7.4.280.0070.00016.49
7.4.270.0000.00716.51
7.4.260.0070.00016.52
7.4.250.0040.00416.57
7.4.240.0030.00416.54
7.4.230.0080.00016.48
7.4.220.0060.01216.54
7.4.210.0080.00716.57
7.4.200.0040.00416.45
7.4.190.0030.00316.69
7.4.160.0070.01016.46
7.4.150.0110.00817.40
7.4.140.0130.00617.86
7.4.130.0110.00616.41
7.4.120.0130.00516.49
7.4.110.0070.01116.69
7.4.100.0060.01416.57
7.4.90.0130.00416.47
7.4.80.0070.01019.39
7.4.70.0100.01316.53
7.4.60.0080.00816.46
7.4.50.0080.00016.40
7.4.40.0000.01522.77
7.4.30.0030.01216.59
7.4.00.0070.01014.85
7.3.330.0000.00513.08
7.3.320.0050.00013.14
7.3.310.0030.00316.19
7.3.300.0070.00016.24
7.3.290.0030.01616.17
7.3.280.0100.00716.24
7.3.270.0100.00617.40
7.3.260.0180.00016.64
7.3.250.0060.01216.43
7.3.240.0060.01216.25
7.3.230.0100.00616.46
7.3.210.0130.00416.49
7.3.200.0110.00619.39
7.3.190.0120.00616.45
7.3.180.0130.00716.32
7.3.170.0110.00416.29
7.3.160.0140.00316.56
7.3.120.0000.01414.79
7.3.10.0040.00916.28
7.3.00.0080.00716.44
7.2.330.0100.00716.42
7.2.320.0130.00316.60
7.2.310.0100.00716.73
7.2.300.0110.00516.33
7.2.290.0150.00316.57
7.2.130.0090.00516.60
7.2.120.0020.01216.70
7.2.110.0050.00816.68
7.2.100.0070.00416.75
7.2.90.0080.00516.85
7.2.80.0100.00616.54
7.2.70.0080.00516.69
7.2.60.0060.00716.75
7.2.50.0080.00616.74
7.2.40.0070.00716.72
7.2.30.0090.00616.73
7.2.20.0060.00616.84
7.2.10.0090.00516.89
7.2.00.0090.00516.65
7.1.250.0060.00815.83
7.1.200.0030.00715.68
7.1.100.0060.00918.11
7.1.70.0100.00017.21
7.1.60.0160.00619.33
7.1.50.0040.00816.86
7.1.00.0030.07722.35
7.0.200.0000.00716.59
7.0.140.0070.06722.02
7.0.110.0030.03321.81
7.0.100.0070.03021.75
7.0.90.0000.03721.64
7.0.80.0000.03321.79
7.0.70.0000.03321.66
7.0.60.0030.06721.65
7.0.50.0030.04022.05
7.0.40.0070.07020.22
7.0.30.0070.03320.07
7.0.20.0030.08020.18
7.0.10.0000.08720.20
7.0.00.0030.03720.21
5.6.280.0030.09321.04
5.6.260.0000.03320.68
5.6.250.0030.04020.64
5.6.240.0030.03720.81
5.6.230.0000.03720.50
5.6.220.0030.04320.64
5.6.210.0070.03320.34
5.6.200.0030.04020.91
5.6.190.0030.03721.09
5.6.180.0030.04021.04
5.6.170.0070.07021.09
5.6.160.0000.08321.09
5.6.150.0000.08321.17
5.6.140.0000.08021.13
5.6.130.0030.07021.16
5.6.120.0070.07321.14
5.6.110.0030.06321.09
5.6.100.0000.04020.99
5.6.90.0070.08321.14
5.6.80.0070.07320.41
5.6.70.0100.07020.38
5.6.60.0030.06720.51
5.6.50.0000.06320.38
5.6.40.0030.04720.51
5.6.30.0000.05020.45
5.6.20.0030.03320.32
5.6.10.0000.04020.52
5.6.00.0030.07020.32
5.5.380.0030.04020.36
5.5.370.0030.03020.32
5.5.360.0070.03720.46
5.5.350.0100.05020.42
5.5.340.0000.08020.79
5.5.330.0070.08020.94
5.5.320.0000.08020.73
5.5.310.0070.07720.79
5.5.300.0030.03320.70
5.5.290.0070.06720.76
5.5.280.0000.08020.76
5.5.270.0070.06320.98
5.5.260.0030.07320.83
5.5.250.0030.07720.54
5.5.240.0070.07020.24
5.5.230.0070.07320.17
5.5.220.0030.07020.31
5.5.210.0070.06720.20
5.5.200.0030.05720.26
5.5.190.0000.05320.20
5.5.180.0000.04320.27
5.5.160.0030.07320.20
5.5.150.0000.06020.18
5.5.140.0000.03720.32
5.5.130.0100.02720.30
5.5.120.0070.03020.34
5.5.110.0030.08020.28
5.5.100.0000.04720.08
5.5.90.0000.03720.07
5.5.80.0070.03720.00
5.5.70.0070.06319.98
5.5.60.0100.07020.04
5.5.50.0030.07020.11
5.5.40.0130.02320.21
5.5.30.0000.03720.18
5.5.20.0000.04719.91
5.5.10.0000.03720.12
5.5.00.0070.06319.90
5.4.450.0000.08019.49
5.4.440.0100.03719.36
5.4.430.0000.04719.50
5.4.420.0000.08319.41
5.4.410.0030.06719.51
5.4.400.0030.07019.00
5.4.390.0000.04019.34
5.4.380.0030.05018.95
5.4.370.0030.07019.23
5.4.360.0000.08018.95
5.4.350.0000.04018.95
5.4.340.0070.03319.01
5.4.320.0070.06719.21
5.4.310.0030.06719.33
5.4.300.0100.06319.08
5.4.290.0000.07019.23
5.4.280.0070.06719.17
5.4.270.0000.07719.15
5.4.260.0030.04319.01
5.4.250.0030.03319.13
5.4.240.0030.03719.17
5.4.230.0000.03319.02
5.4.220.0030.03718.98
5.4.210.0000.07718.94
5.4.200.0130.06719.32
5.4.190.0030.06018.98
5.4.180.0000.03718.99
5.4.170.0070.05019.00
5.4.160.0030.05319.06
5.4.150.0030.03319.20
5.4.140.0000.07316.30
5.4.130.0030.07316.45
5.4.120.0000.05316.32
5.4.110.0000.07016.58
5.4.100.0030.07016.41
5.4.90.0030.06716.41
5.4.80.0070.07016.31
5.4.70.0030.06316.50
5.4.60.0000.06716.63
5.4.50.0070.06716.48
5.4.40.0030.03716.46
5.4.30.0070.05316.52
5.4.20.1000.05316.38
5.4.10.0100.07716.37
5.4.00.0130.07016.04
5.3.290.0000.08014.68
5.3.280.0000.07714.62
5.3.270.0000.03714.75
5.3.260.0000.03714.58
5.3.250.0000.03714.84
5.3.240.0030.06314.63
5.3.230.0070.04714.61
5.3.220.0070.06014.42
5.3.210.0030.03314.60
5.3.200.0000.03314.70
5.3.190.0030.07314.70
5.3.180.0000.07014.57
5.3.170.0000.03714.60
5.3.160.0000.03314.71
5.3.150.0030.07014.56
5.3.140.0030.07714.69
5.3.130.0030.06714.51
5.3.120.0070.07014.61
5.3.110.0130.07313.43
5.3.100.0130.07014.13
5.3.90.0100.07314.05
5.3.80.0000.08013.97
5.3.70.0000.04314.08
5.3.60.0030.04314.00
5.3.50.0030.06013.98
5.3.40.0000.07313.95
5.3.30.0000.07314.00
5.3.20.0000.07713.68
5.3.10.0070.04013.68
5.3.00.0070.04013.64
5.2.170.0030.06013.39
5.2.160.0000.05313.39
5.2.150.0070.02713.39
5.2.140.0000.03713.42
5.2.130.0030.02313.44
5.2.120.0000.04713.44
5.2.110.0000.06013.44
5.2.100.0070.02013.44
5.2.90.0030.05013.44
5.2.80.0030.05713.44
5.2.70.0030.05713.46
5.2.60.0070.04313.46
5.2.50.0000.03013.46
5.2.40.0030.02313.46
5.2.30.0030.02313.46
5.2.20.0030.05313.46
5.2.10.0000.02713.46
5.2.00.0030.02313.46
5.1.60.0000.02013.46
5.1.50.0070.01713.46
5.1.40.0000.04713.46
5.1.30.0070.05313.46
5.1.20.0070.02313.46
5.1.10.0000.02713.46
5.1.00.0030.02313.46
5.0.50.0070.03313.46
5.0.40.0030.03313.46
5.0.30.0000.06013.46
5.0.20.0000.04313.46
5.0.10.0070.03713.46
5.0.00.0070.06313.46
4.4.90.0000.04313.46
4.4.80.0030.02713.46
4.4.70.0000.03313.46
4.4.60.0030.02313.46
4.4.50.0000.01313.46
4.4.40.0000.02013.46
4.4.30.0000.01313.46
4.4.20.0000.03013.46
4.4.10.0000.01713.46
4.4.00.0000.02313.46
4.3.110.0030.01313.46
4.3.100.0030.01013.46
4.3.90.0030.01313.46
4.3.80.0000.05313.46
4.3.70.0030.03713.46
4.3.60.0030.02013.46
4.3.50.0000.01313.46
4.3.40.0030.02013.46
4.3.30.0030.02713.46
4.3.20.0030.01013.46
4.3.10.0030.01013.46
4.3.00.0030.03313.46

preferences:
35.95 ms | 401 KiB | 5 Q