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", ), ); function HelloWorld(){ echo "Hello World"; } HelloWorld(); 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.0140.00316.50
8.3.50.0030.01622.07
8.3.40.0090.00918.63
8.3.30.0070.00718.95
8.3.20.0030.00520.33
8.3.10.0050.00321.89
8.3.00.0000.00819.25
8.2.180.0070.01418.04
8.2.170.0100.01022.96
8.2.160.0170.00322.19
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.54
8.2.110.0060.00319.30
8.2.100.0040.00817.75
8.2.90.0030.00519.08
8.2.80.0030.00517.97
8.2.70.0000.00817.60
8.2.60.0000.00917.93
8.2.50.0050.00318.07
8.2.40.0090.00019.95
8.2.30.0040.00418.06
8.2.20.0080.00017.65
8.2.10.0000.00818.05
8.2.00.0000.00717.62
8.1.280.0070.01425.92
8.1.270.0090.00020.48
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00323.80
8.1.230.0090.00317.48
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0080.00017.23
8.1.180.0070.00018.10
8.1.170.0000.00820.23
8.1.160.0000.00721.95
8.1.150.0050.00318.88
8.1.140.0040.00417.45
8.1.130.0000.00717.70
8.1.120.0080.00417.41
8.1.110.0050.00317.33
8.1.100.0000.00717.44
8.1.90.0040.00417.31
8.1.80.0000.00717.35
8.1.70.0000.00717.46
8.1.60.0060.00317.59
8.1.50.0030.00617.50
8.1.40.0000.00717.56
8.1.30.0080.00017.58
8.1.20.0070.00017.59
8.1.10.0030.00517.35
8.1.00.0080.00017.45
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0080.00018.45
8.0.270.0070.00017.26
8.0.260.0000.00617.26
8.0.250.0000.00716.89
8.0.240.0080.00016.88
8.0.230.0030.00316.76
8.0.220.0040.00416.70
8.0.210.0000.00916.89
8.0.200.0000.01016.88
8.0.190.0030.00616.88
8.0.180.0040.00416.84
8.0.170.0000.00816.84
8.0.160.0000.00716.77
8.0.150.0030.00316.73
8.0.140.0000.00716.81
8.0.130.0030.00313.25
8.0.120.0040.00416.80
8.0.110.0030.00416.85
8.0.100.0000.00716.84
8.0.90.0040.00416.82
8.0.80.0070.00716.71
8.0.70.0000.00816.68
8.0.60.0040.00416.87
8.0.50.0040.00416.72
8.0.30.0100.01217.09
8.0.20.0140.01317.40
8.0.10.0040.00416.86
8.0.00.0090.00816.82
7.4.330.0050.00015.03
7.4.320.0000.00716.55
7.4.300.0000.00716.42
7.4.290.0040.00416.41
7.4.280.0050.00316.40
7.4.270.0040.00416.61
7.4.260.0030.00316.57
7.4.250.0000.00816.44
7.4.240.0040.00416.54
7.4.230.0000.00716.41
7.4.220.0110.00716.47
7.4.210.0070.00916.66
7.4.200.0000.00716.59
7.4.160.0090.00616.50
7.4.150.0160.00417.40
7.4.140.0070.01017.86
7.4.130.0120.00516.54
7.4.120.0100.00616.58
7.4.110.0180.00616.41
7.4.100.0100.00716.54
7.4.90.0080.01216.41
7.4.80.0120.01219.39
7.4.70.0130.01016.56
7.4.60.0060.01016.50
7.4.50.0030.00616.23
7.4.40.0090.01216.59
7.4.30.0150.00716.50
7.4.00.0090.00614.88
7.3.330.0000.00513.26
7.3.320.0040.00913.26
7.3.310.0000.00716.10
7.3.300.0020.00516.14
7.3.290.0000.00716.10
7.3.280.0060.01416.24
7.3.270.0100.00717.40
7.3.260.0090.00916.54
7.3.250.0110.00916.33
7.3.240.0180.00616.50
7.3.230.0170.00616.39
7.3.210.0100.00716.33
7.3.200.0120.00916.52
7.3.190.0100.00616.54
7.3.180.0060.01116.43
7.3.170.0120.00416.47
7.3.160.0130.01016.47
7.2.330.0130.00516.63
7.2.320.0090.01216.29
7.2.310.0060.00916.24
7.2.300.0100.00716.29
7.2.290.0100.01016.71
7.2.00.0030.00919.27
7.1.100.0110.00718.13
7.1.70.0070.00716.87
7.1.60.0100.01419.46
7.1.50.0070.01416.52
7.1.00.0070.07322.36
7.0.200.0040.00714.94
7.0.140.0030.06721.96
7.0.60.0070.06320.00
7.0.50.0070.08317.86
7.0.40.0170.07720.25
7.0.30.0130.04320.42
7.0.20.0270.08020.08
7.0.10.0200.05020.30
7.0.00.0030.08320.30
5.6.280.0000.07720.86
5.6.210.0030.04020.74
5.6.200.0100.04318.16
5.6.190.0100.04720.61
5.6.180.0200.04720.54
5.6.170.0300.08020.51
5.6.160.0100.07320.43
5.6.150.0070.04318.12
5.6.140.0130.03718.27
5.6.130.0070.07718.23
5.6.120.0070.05020.98
5.6.110.0130.05020.98
5.6.100.0030.06720.96
5.6.90.0070.04321.00
5.6.80.0100.05320.54
5.6.70.0030.08320.50
5.5.350.0100.07320.41
5.5.340.0070.04318.01
5.5.330.0100.08320.32
5.5.320.0000.08720.32
5.5.310.0230.04020.31
5.5.300.0000.05717.98
5.5.290.0000.04718.04
5.5.280.0070.08320.88
5.5.270.0000.04320.87
5.5.260.0030.04020.88
5.5.250.0130.06720.48
5.5.240.0030.08320.17
5.4.450.0530.05719.60
5.4.440.0930.05719.20
5.4.430.0870.05719.47
5.4.420.0900.04319.45
5.4.410.0370.06719.18
5.4.400.0270.04318.75
5.4.390.0100.06018.81
5.4.380.0230.04718.46
5.4.370.0130.05318.40
5.4.360.0100.05718.46
5.4.350.0230.05018.73
5.4.340.0270.04318.73
5.4.320.0170.05718.52
5.4.310.0170.06718.53
5.4.300.0300.04018.46
5.4.290.0200.04718.63
5.4.280.0270.04718.55
5.4.270.0130.05718.52
5.4.260.0200.05318.57
5.4.250.0170.05318.70
5.4.240.0130.05718.62
5.4.230.0200.04718.61
5.4.220.0200.05018.48
5.4.210.0200.05718.82
5.4.200.0170.05016.70
5.4.190.0100.05718.57
5.4.180.0230.04718.43
5.4.170.0130.05718.68
5.4.160.0230.06018.81
5.4.150.0130.05318.63
5.4.140.0170.05316.45
5.4.130.0200.04716.30
5.4.120.0230.04016.26
5.4.110.0300.03716.29
5.4.100.0100.05716.25
5.4.90.0170.05316.20
5.4.80.0130.05316.32
5.4.70.0170.05016.12
5.4.60.0130.05016.40
5.4.50.0130.05016.17
5.4.40.0230.04316.27
5.4.30.0270.03716.26
5.4.20.0230.04316.22
5.4.10.0200.05016.28
5.4.00.0170.04715.77
5.3.290.0030.06314.68
5.3.280.0070.06014.70
5.3.270.0300.04014.62
5.3.260.0170.05314.62
5.3.250.0230.04314.65
5.3.240.0130.05314.79
5.3.230.0200.05014.78
5.3.220.0130.05714.60
5.3.210.0130.05314.56
5.3.200.0170.05714.55
5.3.190.0200.05014.59
5.3.180.0100.05714.66
5.3.170.0200.05314.56
5.3.160.0370.04714.59
5.3.150.0170.05714.59
5.3.140.0200.05014.69
5.3.130.0170.05314.56
5.3.120.0200.06714.54
5.3.110.0300.07014.69
5.3.100.0170.05714.02
5.3.90.0300.04314.00
5.3.80.0070.06314.24
5.3.70.0200.05014.14
5.3.60.0030.06314.04
5.3.50.0170.05714.17
5.3.40.0170.05313.99
5.3.30.0070.05714.04
5.3.20.0070.06313.76
5.3.10.0170.05013.76
5.3.00.0230.04313.64
5.2.170.0100.04311.16
5.2.160.0130.04011.36
5.2.150.0200.03711.19
5.2.140.0070.05011.20
5.2.130.0130.04011.20
5.2.120.0100.04311.10
5.2.110.0130.04011.14
5.2.100.0170.03711.21
5.2.90.0170.03711.14
5.2.80.0130.04011.11
5.2.70.0100.04311.09
5.2.60.0100.04311.03
5.2.50.0070.04711.14
5.2.40.0030.04711.03
5.2.30.0130.04011.07
5.2.20.0130.03710.97
5.2.10.0100.04310.95
5.2.00.0230.03010.70
5.1.60.0130.03010.07
5.1.50.0200.03710.12
5.1.40.0170.03010.17
5.1.30.0070.04310.51
5.1.20.0200.02710.46
5.1.10.0100.03710.09
5.1.00.0170.03010.14
5.0.50.0100.0238.59
5.0.40.0030.0308.55
5.0.30.0130.0378.25
5.0.20.0100.0238.23
5.0.10.0070.0278.30
5.0.00.0100.0508.26
4.4.90.0030.0235.88
4.4.80.0000.0335.94
4.4.70.0030.0235.93
4.4.60.0070.0235.87
4.4.50.0030.0236.02
4.4.40.0100.0306.01
4.4.30.0070.0205.88
4.4.20.0030.0235.98
4.4.10.0000.0275.95
4.4.00.0070.0335.94
4.3.110.0030.0235.91
4.3.100.0030.0235.87
4.3.90.0000.0235.82
4.3.80.0000.0375.84
4.3.70.0030.0235.81
4.3.60.0030.0235.87
4.3.50.0100.0175.80
4.3.40.0100.0305.79
4.3.30.0030.0234.56
4.3.20.0030.0234.53
4.3.10.0000.0274.49
4.3.00.0070.0238.77

preferences:
47.81 ms | 401 KiB | 5 Q