3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( 0 => Array ( "student" => "STD-000001", "marks" => 78, "total_subjects" => 1, "avarage" => 78 ), 1 => Array ( "student" => "STD-000002", "marks" => 60.4, "total_subjects" => 1, "avarage" => 60.4 ), 2=> Array ( "student" => "STD-000002", "marks" => 80.4, "total_subjects" => 1, "avarage" => 80.4 ) ); $avarage = array_column($arr, "avarage"); Arsort($avarage); $i=0; Foreach($avarage as $key => $val){ $res[$i] = $arr[$key]; $res[$i]['position'] = $i+1; $i++; } Var_dump($res);

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.10.0080.00316.53
8.5.00.0150.00619.84
8.4.150.0030.00014.05
8.4.140.0190.00717.85
8.4.130.0100.00918.68
8.4.120.0110.00923.98
8.4.110.0130.00818.86
8.4.100.0090.00618.88
8.4.90.0060.00320.54
8.4.80.0040.00619.00
8.4.70.0090.01118.73
8.4.60.0090.01118.75
8.4.50.0110.00918.44
8.4.40.0030.00617.58
8.4.30.0120.00919.31
8.4.20.0180.00319.23
8.4.10.0080.01217.38
8.3.280.0090.01018.28
8.3.270.0110.00816.55
8.3.260.0080.00116.62
8.3.250.0090.00619.02
8.3.240.0080.01117.18
8.3.230.0110.01016.46
8.3.220.0090.01019.06
8.3.210.0110.00916.71
8.3.200.0030.00516.46
8.3.190.0050.00417.23
8.3.180.0110.00818.86
8.3.170.0130.00616.54
8.3.160.0060.01017.10
8.3.150.0090.00616.37
8.3.140.0080.00017.21
8.3.130.0050.00518.40
8.3.120.0090.00919.06
8.3.110.0050.00316.60
8.3.100.0100.01016.54
8.3.90.0080.00026.77
8.3.80.0080.00317.97
8.3.70.0140.00416.75
8.3.60.0030.01716.63
8.3.50.0040.01316.46
8.3.40.0120.00318.72
8.3.30.0090.00618.71
8.3.20.0040.00421.75
8.3.10.0030.00523.51
8.3.00.0050.00317.92
8.2.290.0090.01020.30
8.2.280.0140.00618.62
8.2.270.0030.00616.84
8.2.260.0130.00616.61
8.2.250.0050.00216.69
8.2.240.0100.00619.11
8.2.230.0120.00320.94
8.2.220.0070.00316.80
8.2.210.0180.00026.77
8.2.200.0070.00716.50
8.2.190.0000.01416.75
8.2.180.0090.00618.28
8.2.170.0030.01318.79
8.2.160.0130.00322.96
8.2.150.0080.00024.18
8.2.140.0040.00724.66
8.2.130.0060.00326.16
8.2.120.0030.00620.73
8.2.110.0070.00421.00
8.2.100.0000.01218.03
8.2.90.0050.00318.03
8.2.80.0080.00018.09
8.2.70.0050.00317.80
8.2.60.0050.00317.63
8.2.50.0000.00818.22
8.2.40.0040.00422.20
8.2.30.0040.00419.59
8.2.20.0080.00018.18
8.2.10.0030.00617.81
8.2.00.0070.00018.19
8.1.330.0080.01322.05
8.1.320.0130.00616.09
8.1.310.0150.00016.13
8.1.300.0080.00317.79
8.1.290.0120.00030.84
8.1.280.0130.00625.92
8.1.270.0040.00423.90
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00320.80
8.1.230.0080.00320.97
8.1.220.0060.00317.77
8.1.210.0030.00518.77
8.1.200.0030.00617.36
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0030.00818.74
8.1.160.0050.00218.84
8.1.150.0040.00418.93
8.1.140.0000.00717.78
8.1.130.0000.00717.34
8.1.120.0030.00617.49
8.1.110.0040.00417.36
8.1.100.0030.00517.48
8.1.90.0070.00317.50
8.1.80.0000.00817.42
8.1.70.0070.00017.49
8.1.60.0040.00417.64
8.1.50.0080.00017.40
8.1.40.0070.00017.48
8.1.30.0050.00317.60
8.1.20.0080.00417.59
8.1.10.0040.00417.59
8.1.00.0000.00817.56
8.0.300.0080.00019.80
8.0.290.0040.00416.73
8.0.280.0040.00418.51
8.0.270.0000.00717.26
8.0.260.0030.00316.83
8.0.250.0030.00316.95
8.0.240.0030.00416.95
8.0.230.0050.00316.84
8.0.220.0040.00416.86
8.0.210.0030.00316.80
8.0.200.0070.00016.95
8.0.190.0000.00716.96
8.0.180.0070.00016.82
8.0.170.0070.00316.80
8.0.160.0030.00616.86
8.0.150.0050.00216.72
8.0.140.0030.00516.79
8.0.130.0000.00613.34
8.0.120.0020.00516.91
8.0.110.0040.00416.90
8.0.100.0000.00716.96
8.0.90.0000.00716.88
8.0.80.0080.00816.88
8.0.70.0000.00916.93
8.0.60.0000.00816.80
8.0.50.0040.00416.94
8.0.30.0110.00717.00
8.0.20.0080.01117.40
8.0.10.0000.00717.06
8.0.00.0090.01216.70
7.4.330.0020.00215.55
7.4.320.0080.00016.59
7.4.300.0060.00016.64
7.4.290.0040.00416.55
7.4.280.0000.01116.59
7.4.270.0040.00416.52
7.4.260.0030.00316.39
7.4.250.0000.00716.46
7.4.240.0030.00316.51
7.4.230.0030.00416.39
7.4.220.0000.00716.69
7.4.210.0070.00716.56
7.4.200.0000.00716.25
7.4.160.0120.00516.61
7.4.140.0100.00817.86
7.4.130.0120.01216.54
7.4.120.0080.01316.53
7.4.110.0130.00316.54
7.4.100.0150.01116.63
7.4.90.0110.01116.40
7.4.80.0070.01019.39
7.4.70.0030.01416.45
7.4.60.0030.01316.57
7.4.50.0000.01316.60
7.4.40.0140.00316.55
7.4.00.0100.00915.01
7.3.330.0000.00613.15
7.3.320.0000.00613.17
7.3.310.0000.00716.29
7.3.300.0000.00716.36
7.3.290.0080.01216.30
7.3.280.0080.00616.29
7.3.260.0050.01316.45
7.3.240.0090.01016.40
7.3.230.0140.00916.35
7.3.210.0100.00616.56
7.3.200.0000.01516.32
7.3.190.0090.00816.34
7.3.180.0100.01416.72
7.3.170.0090.00616.28
7.3.160.0140.00316.37
7.3.120.0070.01014.81
7.3.110.0080.00814.79
7.3.100.0060.00814.82
7.3.90.0050.00814.71
7.3.80.0050.00814.62
7.3.70.0080.00914.66
7.3.60.0060.00914.79
7.3.50.0080.00714.56
7.3.40.0020.01114.77
7.3.30.0040.00714.58
7.3.20.0060.00816.74
7.3.10.0060.01016.66
7.3.00.0050.01116.52
7.2.330.0030.01416.51
7.2.320.0070.01716.43
7.2.310.0100.01316.49
7.2.300.0070.01116.59
7.2.290.0120.00816.62
7.2.250.0030.01515.22
7.2.240.0070.01015.06
7.2.230.0050.01015.01
7.2.220.0070.00615.02
7.2.210.0070.00714.91
7.2.200.0050.00915.03
7.2.190.0060.00914.97
7.2.180.0070.00514.99
7.2.170.0060.00615.07
7.2.160.0030.01214.92
7.2.150.0070.01316.89
7.2.140.0130.00517.04
7.2.130.0090.00716.91
7.2.120.0080.00516.75
7.2.110.0050.01016.94
7.2.100.0040.00916.92
7.2.90.0110.00416.86
7.2.80.0090.00616.67
7.2.70.0020.01116.98
7.2.60.0060.00616.96
7.2.50.0050.01116.85
7.2.40.0050.00616.87
7.2.30.0070.01517.11
7.2.20.0090.01117.24
7.2.10.0110.00917.14
7.2.00.0280.01217.19
7.1.330.0060.00915.91
7.1.320.0030.01015.85
7.1.310.0040.01015.86
7.1.300.0070.00915.83
7.1.290.0020.01015.74
7.1.280.0030.01015.87
7.1.270.0030.01315.73
7.1.260.0090.00515.73
7.1.250.0090.00215.73
7.1.240.0060.00915.61
7.1.230.0070.00715.54
7.1.220.0080.00315.95
7.1.210.0060.00915.81
7.1.200.0030.00915.73
7.1.190.0070.00715.89
7.1.180.0030.00815.77
7.1.170.0060.00615.78
7.1.160.0040.00415.91
7.1.150.0120.00916.19
7.1.140.0130.00816.32
7.1.130.0120.00615.99
7.1.120.0080.00916.08
7.1.110.0120.00915.80
7.1.100.0140.00415.86
7.1.90.0070.00916.01
7.1.80.0090.01215.77
7.1.70.0140.00815.58
7.1.60.0140.01324.46
7.1.50.0380.01024.48
7.1.40.0180.01124.09
7.1.30.0170.01424.21
7.1.20.0200.00724.33
7.1.10.0100.01215.29
7.1.00.0090.01215.29
7.0.330.0030.00615.53
7.0.320.0030.00915.16
7.0.310.0000.01515.08
7.0.300.0140.00015.06
7.0.290.0070.00715.19
7.0.280.0060.00615.38
7.0.270.0030.00915.42
7.0.260.0070.01015.51
7.0.250.0050.00815.41
7.0.240.0070.00715.41
7.0.230.0060.00615.53
7.0.220.0070.01015.14
7.0.210.0030.01015.54
7.0.200.0070.00315.49
7.0.190.0000.01315.51
7.0.180.0070.00715.44
7.0.170.0100.00015.42
7.0.160.0030.01015.56
7.0.150.0060.00615.50
7.0.140.0000.01215.49
7.0.130.0000.01315.61
7.0.120.0030.01015.27
7.0.110.0000.00815.41
7.0.100.0000.01615.46
7.0.90.0060.00615.14
7.0.80.0030.00615.55
7.0.70.0110.00415.30
7.0.60.0030.00715.44
7.0.50.0000.01215.22
7.0.40.0070.00713.49
7.0.30.0000.00913.19
7.0.20.0090.00313.54
7.0.10.0070.00713.21
7.0.00.0070.00713.34
5.6.400.0080.00814.38
5.6.390.0030.01014.27
5.6.380.0000.00914.33
5.6.370.0040.01114.37
5.6.360.0040.00714.43
5.6.350.0060.00914.58
5.6.340.0000.01514.04
5.6.330.0070.00314.69
5.6.320.0060.00614.56
5.6.310.0030.01014.67
5.6.300.0000.01314.53
5.6.290.0050.00514.42
5.6.280.0000.01014.49
5.6.270.0060.01314.25
5.6.260.0080.00814.59
5.6.250.0070.01014.38
5.6.240.0000.01214.31
5.6.230.0070.00414.55
5.6.220.0060.00914.51
5.6.210.0040.00814.60
5.6.200.0000.01414.25
5.6.190.0040.01114.41
5.6.180.0100.00014.60
5.6.170.0090.00314.50
5.6.160.0000.00914.36
5.6.150.0030.01114.16
5.6.140.0030.00714.66
5.6.130.0000.01014.29
5.6.120.0000.01314.33
5.6.110.0080.00614.36
5.6.100.0030.01014.36
5.6.90.0060.00614.50
5.6.80.0070.00314.67
5.6.70.0060.00914.33
5.6.60.0070.00714.27
5.6.50.0060.00314.20
5.6.40.0120.00314.00
5.6.30.0070.00714.48
5.6.20.0060.00314.52
5.6.10.0040.00714.25
5.6.00.0000.01414.33

preferences:
40.72 ms | 403 KiB | 5 Q