3v4l.org

run code in 300+ PHP versions simultaneously
<?php $students = array( 'John' => array( "unit1" => "76", "unit2" => "62", "unit3" => "56", "unit4" => "60", ), 'Tom' => array( "unit1" => "62", "unit2" => "82", "unit3" => "56", "unit4" => "47", ), 'Jane' => array( "unit1" => "52", "unit2" => "62", "unit3" => "66", "unit4" => "80", ), 'Jess' => array( "unit1" => "72", "unit2" => "52", "unit3" => "72", "unit4" => "65", ), ); print_r($students);

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.0150.00416.50
8.3.50.0070.00717.98
8.3.40.0090.00618.50
8.3.30.0120.00318.83
8.3.20.0000.00820.07
8.3.10.0000.00721.73
8.3.00.0080.00019.38
8.2.180.0040.01818.15
8.2.170.0070.00722.96
8.2.160.0070.00722.11
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0100.00526.16
8.2.120.0040.00419.42
8.2.110.0030.00719.21
8.2.100.0040.00817.63
8.2.90.0080.00019.27
8.2.80.0060.00317.97
8.2.70.0040.00417.38
8.2.60.0040.00417.67
8.2.50.0040.00418.07
8.2.40.0060.00319.95
8.2.30.0070.00017.89
8.2.20.0040.00417.64
8.2.10.0000.00717.94
8.2.00.0040.00417.59
8.1.280.0070.00725.92
8.1.270.0060.00320.45
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0120.00017.42
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0000.00817.11
8.1.180.0080.00018.10
8.1.170.0060.00320.35
8.1.160.0000.00721.84
8.1.150.0040.00418.82
8.1.140.0000.00817.29
8.1.130.0000.00817.75
8.1.120.0080.00317.30
8.1.110.0050.00317.38
8.1.100.0000.00717.41
8.1.90.0050.00317.32
8.1.80.0000.00717.41
8.1.70.0030.00517.37
8.1.60.0000.00817.46
8.1.50.0040.00417.40
8.1.40.0050.00317.49
8.1.30.0040.00417.57
8.1.20.0050.00217.41
8.1.10.0050.00217.38
8.1.00.0040.00417.32
8.0.300.0070.00018.77
8.0.290.0100.00216.58
8.0.280.0030.00318.42
8.0.270.0030.00317.18
8.0.260.0000.00617.18
8.0.250.0030.00316.94
8.0.240.0040.00416.77
8.0.230.0080.00016.75
8.0.220.0040.00416.68
8.0.210.0000.00716.74
8.0.200.0060.00316.78
8.0.190.0040.00416.91
8.0.180.0040.00416.69
8.0.170.0080.00016.77
8.0.160.0040.00416.80
8.0.150.0000.00816.65
8.0.140.0070.00016.82
8.0.130.0060.00013.20
8.0.120.0030.00516.67
8.0.110.0020.00516.79
8.0.100.0080.00016.74
8.0.90.0000.00716.73
8.0.80.0130.00716.81
8.0.70.0040.00416.66
8.0.60.0040.00416.80
8.0.50.0000.00716.85
8.0.30.0120.00916.95
8.0.20.0110.00717.40
8.0.10.0030.00516.83
8.0.00.0050.01316.64
7.4.330.0000.00515.03
7.4.320.0030.00316.44
7.4.300.0000.00616.33
7.4.290.0000.00816.50
7.4.280.0080.00016.43
7.4.270.0030.00316.37
7.4.260.0030.00316.33
7.4.250.0030.00616.46
7.4.240.0040.00416.48
7.4.230.0000.00716.62
7.4.220.0090.00916.59
7.4.210.0090.00516.46
7.4.200.0070.00016.42
7.4.160.0130.00316.22
7.4.150.0080.00817.40
7.4.140.0120.00717.86
7.4.130.0090.00916.30
7.4.120.0080.00916.32
7.4.110.0070.01516.30
7.4.100.0030.01316.47
7.4.90.0100.01316.42
7.4.80.0110.00819.39
7.4.70.0140.00616.45
7.4.60.0130.00316.47
7.4.50.0040.00416.27
7.4.40.0150.00616.55
7.4.30.0100.00716.51
7.4.00.0070.00714.82
7.3.330.0000.00512.96
7.3.320.0050.00913.11
7.3.310.0030.00316.28
7.3.300.0040.00416.02
7.3.290.0000.00716.11
7.3.280.0080.01016.12
7.3.270.0080.00817.40
7.3.260.0130.00316.38
7.3.250.0130.00816.13
7.3.240.0070.01016.38
7.3.230.0130.01016.39
7.3.210.0030.01316.11
7.3.200.0060.01019.39
7.3.190.0090.00616.07
7.3.180.0130.00316.19
7.3.170.0100.00716.27
7.3.160.0150.00616.11
7.3.10.0110.00715.64
7.3.00.0110.00316.14
7.2.330.0090.00916.27
7.2.320.0070.01516.49
7.2.310.0060.00916.25
7.2.300.0100.00616.51
7.2.290.0120.00616.41
7.2.130.0100.00716.21
7.2.120.0070.00716.05
7.2.110.0090.00616.35
7.2.100.0110.00716.73
7.2.90.0130.01016.16
7.2.80.0200.00016.49
7.2.70.0080.01716.04
7.2.60.0170.00016.47
7.2.50.0190.01116.46
7.2.40.0220.00616.33
7.2.30.0160.00716.33
7.2.20.0200.00716.61
7.2.10.0180.00916.20
7.2.00.0050.01517.99
7.1.250.0070.01015.42
7.1.100.0050.00517.60
7.1.70.0030.00616.81
7.1.60.0030.01719.46
7.1.50.0130.00916.84
7.1.00.0070.07322.33
7.0.200.0070.00016.53
7.0.140.0070.07022.08
7.0.60.0070.06719.93
7.0.50.0030.04317.82
7.0.40.0100.08019.96
7.0.30.0370.05720.00
7.0.20.0270.04720.20
7.0.10.0170.07720.00
7.0.00.0070.08020.19
5.6.210.0070.06320.48
5.6.200.0070.08718.10
5.6.190.0000.09020.45
5.6.180.0370.04720.49
5.6.170.0230.04020.46
5.6.160.0030.04020.40
5.6.150.0100.05718.10
5.6.140.0170.06718.15
5.6.130.0030.05018.23
5.6.120.0030.08020.98
5.6.110.0030.04321.01
5.6.100.0130.06320.97
5.6.90.0100.05021.09
5.6.80.0070.07320.50
5.5.350.4230.04320.41
5.5.340.0070.04017.88
5.5.330.0170.07720.36
5.5.320.0170.07720.51
5.5.310.0330.05320.41
5.5.300.0100.08017.91
5.5.290.0000.09017.95
5.5.280.0000.04320.80
5.5.270.0100.08320.82
5.5.260.0030.04320.79
5.5.250.0070.05020.55
5.5.240.0300.07020.16
5.4.450.0270.03719.11
5.4.440.0430.06319.48
5.4.430.0300.05319.48
5.4.420.0330.05719.57
5.4.410.0300.04319.30
5.4.400.0270.04318.93
5.4.390.0400.06719.10
5.4.380.0330.06719.09
5.4.370.0270.05018.78
5.4.360.0300.04319.13
5.4.350.0400.05719.22
5.4.340.0330.04019.06
5.4.320.0270.04719.09
5.4.310.0370.06319.05
5.4.300.0330.07018.91
5.4.290.0300.07319.05
5.4.280.0270.07719.08
5.4.270.0270.06319.12
5.4.260.0330.07319.23
5.4.250.0300.07319.09
5.4.240.0470.06019.08
5.4.230.0300.07319.07
5.4.220.0430.06318.77
5.4.210.0370.05719.16
5.4.200.0230.05318.88
5.4.190.0270.03719.05
5.4.180.0270.05319.04
5.4.170.0370.07019.08
5.4.160.0370.06318.78
5.4.150.0370.05319.18
5.4.140.0270.07016.44
5.4.130.0330.05716.22
5.4.120.0270.05716.30
5.4.110.0330.07016.48
5.4.100.0270.05316.46
5.4.90.0330.07016.48
5.4.80.0270.03316.38
5.4.70.0270.04016.38
5.4.60.0330.03016.22
5.4.50.0300.03716.27
5.4.40.0370.06716.22
5.4.30.0470.05016.41
5.4.20.0370.03716.28
5.4.10.0400.05316.31
5.4.00.0370.06016.22
5.3.290.0330.03716.22
5.3.280.0330.07316.22
5.3.270.0370.07016.22
5.3.260.0270.04016.22
5.3.250.0300.03716.22
5.3.240.0400.04016.22
5.3.230.0630.05016.22
5.3.220.0430.03716.22
5.3.210.0530.06716.22
5.3.200.0330.08016.22
5.3.190.0400.05716.22
5.3.180.0330.04016.22
5.3.170.0300.03316.22
5.3.160.0370.07016.22
5.3.150.0400.06316.22
5.3.140.0430.06016.22
5.3.130.0470.05716.22
5.3.120.0370.05016.22
5.3.110.0330.03316.22
5.3.100.0400.04016.22
5.3.90.0300.07316.22
5.3.80.0370.04716.22
5.3.70.0400.03016.22
5.3.60.0270.04016.22
5.3.50.0330.03016.22
5.3.40.0270.03716.22
5.3.30.0400.03316.22
5.3.20.0300.03716.22
5.3.10.0300.03716.22
5.3.00.0470.03316.22
5.2.170.0300.03016.22
5.2.160.0300.03716.22
5.2.150.0270.02716.22
5.2.140.0270.02716.22
5.2.130.0330.05316.22
5.2.120.0200.03316.22
5.2.110.0270.03316.22
5.2.100.0330.03016.22
5.2.90.0270.03016.22
5.2.80.0270.03716.22
5.2.70.0270.02716.22
5.2.60.0200.03316.22
5.2.50.0370.01716.22
5.2.40.0270.03016.22
5.2.30.0230.02716.22
5.2.20.0270.06016.22
5.2.10.0300.05316.22
5.2.00.0200.03016.22
5.1.60.0270.02716.22
5.1.50.0270.03016.22
5.1.40.0200.02716.22
5.1.30.0270.03016.22
5.1.20.0270.05016.22
5.1.10.0270.05016.22
5.1.00.0230.03016.22
5.0.50.0170.04316.22
5.0.40.0130.04016.22
5.0.30.0200.03716.22
5.0.20.0100.04016.22
5.0.10.0170.02316.22
5.0.00.0130.03016.22
4.4.90.0130.01316.22
4.4.80.0170.02016.22
4.4.70.0100.02316.22
4.4.60.0100.03716.22
4.4.50.0100.03016.22
4.4.40.0130.03716.22
4.4.30.0100.03016.22
4.4.20.0100.02316.22
4.4.10.0230.02716.22
4.4.00.0170.03716.22
4.3.110.0100.02016.22
4.3.100.0170.01016.22
4.3.90.0100.02016.22
4.3.80.0100.02316.22
4.3.70.0100.02016.22
4.3.60.0130.03016.22
4.3.50.0100.01716.22
4.3.40.0070.05016.22
4.3.30.0100.03316.22
4.3.20.0100.03016.22
4.3.10.0030.03016.22
4.3.00.0070.02016.22

preferences:
47.92 ms | 400 KiB | 5 Q