3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'games' => array( 'game' => array( array('appID' => 12345, 'logo' => 'http://www.example.com/logo_12345.jpg', 'name' => 'Game One'), array('appID' => 12346, 'logo' => 'http://www.example.com/logo_12346.jpg', 'name' => 'Game Two'), array('appID' => 12347, 'logo' => 'http://www.example.com/logo_12347.jpg', 'name' => 'Game Three'), 'userID' => 784523569852145, 'username' => 'Gamertag', ), ), ); foreach($data["games"]["game"] as &$game) { $game["status"] = "active"; } print_r($data);

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.70.0120.00318.66
8.3.60.0090.00918.65
8.3.50.0100.00822.01
8.3.40.0000.01518.84
8.3.30.0100.00319.01
8.3.20.0070.00020.22
8.3.10.0000.00723.53
8.3.00.0040.00420.80
8.2.180.0110.00716.75
8.2.170.0040.01122.96
8.2.160.0070.01020.50
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0190.00026.16
8.2.120.0030.00519.36
8.2.110.0000.01022.21
8.2.100.0120.00017.91
8.2.90.0040.00418.00
8.2.80.0080.00018.78
8.2.70.0080.00017.93
8.2.60.0030.00617.63
8.2.50.0100.00017.75
8.2.40.0070.00019.30
8.2.30.0030.00318.37
8.2.20.0030.00517.88
8.2.10.0030.00518.10
8.2.00.0050.00217.68
8.1.280.0080.01225.92
8.1.270.0060.00323.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0070.00319.05
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0110.00017.36
8.1.190.0100.00017.22
8.1.180.0030.00618.10
8.1.170.0040.00418.87
8.1.160.0040.00421.95
8.1.150.0040.00418.62
8.1.140.0000.00717.49
8.1.130.0030.00317.82
8.1.120.0000.00717.47
8.1.110.0050.00317.50
8.1.100.0050.00217.37
8.1.90.0030.00317.52
8.1.80.0000.00717.42
8.1.70.0030.00317.41
8.1.60.0000.00817.59
8.1.50.0080.00017.53
8.1.40.0030.00717.43
8.1.30.0080.00017.63
8.1.20.0030.00617.69
8.1.10.0070.00017.55
8.1.00.0000.00717.48
8.0.300.0060.00318.77
8.0.290.0050.00316.88
8.0.280.0030.00318.39
8.0.270.0020.00517.16
8.0.260.0060.00017.23
8.0.250.0070.00016.99
8.0.240.0030.00316.88
8.0.230.0000.00816.92
8.0.220.0030.00316.97
8.0.210.0000.00716.92
8.0.200.0030.00317.02
8.0.190.0040.00417.02
8.0.180.0060.00316.95
8.0.170.0050.00217.04
8.0.160.0050.00317.00
8.0.150.0000.00716.77
8.0.140.0000.00716.88
8.0.130.0000.00513.44
8.0.120.0000.00816.92
8.0.110.0050.00316.88
8.0.100.0070.00016.95
8.0.90.0030.00517.02
8.0.80.0110.01116.97
8.0.70.0040.00416.88
8.0.60.0070.00016.95
8.0.50.0000.00816.87
8.0.30.0160.00917.25
8.0.20.0100.00917.40
8.0.10.0040.00417.04
8.0.00.0140.00416.79
7.4.330.0000.00515.13
7.4.320.0030.00316.64
7.4.300.0070.00016.56
7.4.290.0030.00616.45
7.4.280.0000.00916.61
7.4.270.0040.00416.57
7.4.260.0040.00416.55
7.4.250.0000.00716.59
7.4.240.0020.00516.55
7.4.230.0040.00416.29
7.4.220.0070.01016.39
7.4.210.0110.00416.48
7.4.200.0030.00316.59
7.4.160.0090.00616.73
7.4.150.0060.01217.40
7.4.140.0070.01017.86
7.4.130.0140.00416.52
7.4.120.0090.00916.44
7.4.110.0160.00616.45
7.4.100.0030.01716.44
7.4.90.0130.00316.70
7.4.80.0130.01019.39
7.4.70.0090.00916.69
7.4.60.0030.01216.57
7.4.50.0050.00016.74
7.4.40.0150.00616.56
7.4.30.0080.00816.45
7.4.00.0050.01014.81
7.3.330.0070.00013.05
7.3.320.0000.00613.21
7.3.310.0040.00416.26
7.3.300.0000.00716.28
7.3.290.0040.01116.29
7.3.280.0090.01016.31
7.3.270.0150.00817.40
7.3.260.0130.01016.26
7.3.250.0090.01116.50
7.3.240.0110.00716.53
7.3.230.0120.00616.39
7.3.210.0070.01016.46
7.3.200.0140.00319.39
7.3.190.0110.01116.36
7.3.180.0030.01316.59
7.3.170.0060.00916.33
7.3.160.0100.00616.37
7.3.120.0050.01114.83
7.3.110.0080.00314.75
7.3.100.0040.00814.87
7.3.90.0100.00714.89
7.3.80.0030.01214.87
7.3.70.0040.01114.71
7.3.60.0030.00614.67
7.3.50.0030.00914.67
7.3.40.0070.01014.47
7.3.30.0050.00814.52
7.3.20.0030.00716.58
7.3.10.0070.00716.78
7.3.00.0030.01016.60
7.2.330.0140.00316.64
7.2.320.0100.01316.75
7.2.310.0080.00816.45
7.2.300.0110.00716.66
7.2.290.0030.01516.51
7.2.250.0130.00315.20
7.2.240.0030.01215.09
7.2.230.0000.01315.29
7.2.220.0000.01715.07
7.2.210.0140.00015.16
7.2.200.0060.00915.13
7.2.190.0070.00314.83
7.2.180.0060.00614.70
7.2.170.0060.01014.75
7.2.00.0000.01519.23
7.1.330.0030.00915.81
7.1.320.0090.00315.85
7.1.310.0070.01015.97
7.1.300.0070.00715.54
7.1.290.0060.00315.82
7.1.280.0070.01015.70
7.1.270.0040.00815.66
7.1.260.0050.00515.69
7.1.100.0000.01118.09
7.1.70.0000.00816.77
7.1.60.0070.01719.70
7.1.50.0070.01316.66
7.1.00.0100.07022.28
7.0.200.0040.00416.94
7.0.140.0100.07022.04
7.0.60.0200.05321.66
7.0.50.0070.05717.91
7.0.40.0100.05320.11
7.0.30.0230.08720.07
7.0.20.0230.03720.12
7.0.10.0130.08020.09
7.0.00.0030.04720.32
5.6.280.0070.07320.99
5.6.210.0100.08720.66
5.6.200.0100.04318.14
5.6.190.0000.04720.45
5.6.180.0500.07020.33
5.6.170.0200.06720.52
5.6.160.0030.08320.55
5.6.150.0070.05318.25
5.6.140.0000.04018.15
5.6.130.0000.04318.17
5.6.120.0100.07721.11
5.6.110.0100.07020.99
5.6.100.0030.05321.11
5.6.90.0030.09020.96
5.6.80.0200.06020.38
5.5.350.0000.08320.41
5.5.340.0070.04017.99
5.5.330.0130.06320.27
5.5.320.0030.08020.30
5.5.310.0370.06720.23
5.5.300.0030.08717.98
5.5.290.0030.08017.98
5.5.280.0030.08720.81
5.5.270.0230.06720.83
5.5.260.0130.07320.86
5.5.250.0170.07320.71
5.5.240.0130.06720.16
5.4.450.0070.08019.52
5.4.440.0030.08019.30
5.4.430.0070.08019.38
5.4.420.0070.07319.45
5.4.410.0030.07019.28
5.4.400.0100.06718.86
5.4.390.0000.06019.06
5.4.380.0070.04019.16
5.4.370.0030.05718.96
5.4.360.0030.06719.25
5.4.350.0000.07719.01
5.4.340.0070.07719.09
5.4.320.0030.06719.22
5.4.310.0070.07719.08
5.4.300.0070.07018.94
5.4.290.0100.07018.94
5.4.280.0030.08019.24
5.4.270.0070.07319.21
5.4.260.0070.07018.84
5.4.250.0070.08019.15
5.4.240.0070.06318.88
5.4.230.0030.07719.18
5.4.220.0030.04019.21
5.4.210.0000.08018.95
5.4.200.0070.08018.84
5.4.190.0070.04718.97
5.4.180.0070.08019.21
5.4.170.0070.05318.84
5.4.160.0000.06019.14
5.4.150.0100.05719.21
5.4.140.0070.07016.50
5.4.130.0070.04016.31
5.4.120.0070.03316.50
5.4.110.0030.06016.55
5.4.100.0070.07316.53
5.4.90.0070.05716.40
5.4.80.0030.07716.54
5.4.70.0070.07016.54
5.4.60.0030.05716.49
5.4.50.0070.07016.48
5.4.40.0030.07716.16
5.4.30.0070.06016.50
5.4.20.0070.05016.25
5.4.10.0070.05316.51
5.4.00.0070.04315.95
5.3.290.0000.06714.58
5.3.280.0030.08014.50
5.3.270.0100.04714.61
5.3.260.0030.07714.51
5.3.250.0100.06014.82
5.3.240.0030.05014.57
5.3.230.0000.04014.51
5.3.220.0000.04714.52
5.3.210.0100.06314.53
5.3.200.0000.05714.54
5.3.190.0030.07314.68
5.3.180.0070.07014.71
5.3.170.0100.06314.63
5.3.160.0070.04314.67
5.3.150.0100.07314.47
5.3.140.0100.07014.42
5.3.130.0000.06314.53
5.3.120.0070.06314.47
5.3.110.0030.08014.55
5.3.100.0070.06313.97
5.3.90.0030.07714.09
5.3.80.0000.05313.92
5.3.70.0030.07714.03
5.3.60.0100.07013.91
5.3.50.0070.07014.03
5.3.40.0070.05313.84
5.3.30.0000.08713.91
5.3.20.0100.06013.60
5.3.10.0000.07313.63
5.3.00.0070.05713.64
5.2.170.0070.06013.00
5.2.160.0030.03013.00
5.2.150.0070.03313.00
5.2.140.0030.07013.00
5.2.130.0070.05313.00
5.2.120.0030.05313.00
5.2.110.0030.04713.00
5.2.100.0000.04713.00
5.2.90.0070.04313.00
5.2.80.0030.03313.00
5.2.70.0000.06713.00
5.2.60.0000.06313.00
5.2.50.0070.04313.00
5.2.40.0000.06013.00
5.2.30.0000.07013.00
5.2.20.0070.04713.00
5.2.10.0100.05313.00
5.2.00.0000.06313.00
5.1.60.0000.04313.00
5.1.50.0070.03313.00
5.1.40.0070.04713.00
5.1.30.0030.06013.00
5.1.20.0100.03713.00
5.1.10.0030.03713.00
5.1.00.0000.04013.00
5.0.50.0000.03313.00
5.0.40.0130.03713.00
5.0.30.0200.05013.00
5.0.20.0000.04713.00
5.0.10.0000.02013.00
5.0.00.0030.03013.00
4.4.90.0030.02313.00
4.4.80.0000.02713.00
4.4.70.0070.02313.00
4.4.60.0000.03313.00
4.4.50.0070.02713.00
4.4.40.0030.03713.00
4.4.30.0030.03713.00
4.4.20.0000.03313.00
4.4.10.0030.01713.00
4.4.00.0030.03013.00
4.3.110.0000.03013.00
4.3.100.0000.03013.00
4.3.90.0000.03713.00
4.3.80.0030.03313.00
4.3.70.0000.01313.00
4.3.60.0030.01313.00
4.3.50.0000.02013.00
4.3.40.0000.03013.00
4.3.30.0000.01313.00
4.3.20.0000.01313.00
4.3.10.0030.01313.00
4.3.00.0030.01313.00

preferences:
42.45 ms | 401 KiB | 5 Q