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', ), ), ); array_walk($data['games']['game'], function(&$value, $key) { if (is_array($value)) $value['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.60.0100.01018.30
8.3.50.0120.00521.21
8.3.40.0110.00718.85
8.3.30.0210.00018.79
8.3.20.0040.00418.62
8.3.10.0040.00420.98
8.3.00.0000.00819.56
8.2.180.0150.00717.99
8.2.170.0150.00622.96
8.2.160.0100.01020.45
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.11
8.2.110.0070.00320.52
8.2.100.0060.00617.84
8.2.90.0000.00719.21
8.2.80.0080.00019.34
8.2.70.0070.00717.13
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00721.22
8.2.20.0040.00417.67
8.2.10.0050.00317.79
8.2.00.0070.00317.76
8.1.280.0070.01425.92
8.1.270.0080.00023.99
8.1.260.0030.00526.35
8.1.250.0060.01328.09
8.1.240.0090.00320.81
8.1.230.0040.00720.91
8.1.220.0000.00818.77
8.1.210.0030.00618.95
8.1.200.0070.00317.47
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0040.00418.95
8.1.150.0080.00018.56
8.1.140.0000.00717.50
8.1.130.0030.00317.77
8.1.120.0110.00017.37
8.1.110.0040.00417.44
8.1.100.0070.00017.36
8.1.90.0040.00417.46
8.1.80.0050.00317.48
8.1.70.0070.00017.46
8.1.60.0040.00417.54
8.1.50.0040.00417.47
8.1.40.0040.00417.57
8.1.30.0040.00417.72
8.1.20.0000.00817.63
8.1.10.0060.00317.57
8.1.00.0050.00317.44
8.0.300.0040.00419.88
8.0.290.0050.00316.93
8.0.280.0040.00418.37
8.0.270.0030.00317.23
8.0.260.0050.00216.77
8.0.250.0040.00416.98
8.0.240.0060.00316.90
8.0.230.0000.00716.73
8.0.220.0000.00816.72
8.0.210.0030.00316.70
8.0.200.0030.00316.87
8.0.190.0000.00716.95
8.0.180.0070.00016.99
8.0.170.0000.00816.77
8.0.160.0000.00716.95
8.0.150.0000.00716.79
8.0.140.0000.00816.83
8.0.130.0030.00313.28
8.0.120.0000.00716.73
8.0.110.0040.00416.69
8.0.100.0040.00416.72
8.0.90.0000.00716.76
8.0.80.0100.00416.87
8.0.70.0000.00816.88
8.0.60.0000.00716.84
8.0.50.0040.00416.76
8.0.30.0070.01216.96
8.0.20.0070.01217.40
8.0.10.0040.00416.89
8.0.00.0070.01116.59
7.4.330.0050.00016.77
7.4.320.0000.00616.57
7.4.300.0060.00016.40
7.4.290.0030.00316.59
7.4.280.0060.00316.45
7.4.270.0000.00716.55
7.4.260.0060.00013.22
7.4.250.0070.00016.43
7.4.240.0040.00416.52
7.4.230.0000.00716.48
7.4.220.0100.00916.56
7.4.210.0070.00916.52
7.4.200.0000.00716.70
7.4.190.0000.00716.69
7.4.160.0100.00716.53
7.4.150.0130.01017.40
7.4.140.0110.00717.86
7.4.130.0040.01416.58
7.4.120.0120.00716.47
7.4.110.0110.00516.35
7.4.100.0000.01716.54
7.4.90.0090.00916.55
7.4.80.0090.00919.39
7.4.70.0100.01016.50
7.4.60.0100.00716.48
7.4.50.0090.00016.42
7.4.40.0000.01422.77
7.4.30.0130.01016.52
7.4.00.0060.01014.91
7.3.330.0030.00313.16
7.3.320.0060.00313.27
7.3.310.0040.00416.41
7.3.300.0030.00316.34
7.3.290.0100.00316.26
7.3.280.0090.00916.30
7.3.270.0140.00717.40
7.3.260.0080.00818.24
7.3.250.0080.00916.55
7.3.240.0090.00616.27
7.3.230.0090.00616.39
7.3.210.0120.00916.36
7.3.200.0090.01219.39
7.3.190.0070.01416.20
7.3.180.0040.01216.33
7.3.170.0090.00616.61
7.3.160.0120.00316.34
7.3.120.0050.01314.77
7.3.110.0100.00614.53
7.3.100.0030.01214.88
7.3.90.0000.01414.79
7.3.80.0090.00614.76
7.3.70.0110.00714.87
7.3.60.0070.00714.72
7.3.50.0000.01614.57
7.3.40.0090.00614.72
7.3.30.0040.00414.54
7.3.20.0030.01216.61
7.3.10.0090.00616.83
7.3.00.0060.00916.77
7.2.330.0070.01016.70
7.2.320.0000.01916.72
7.2.310.0070.01016.80
7.2.300.0060.00916.53
7.2.290.0060.01016.70
7.2.250.0110.00815.21
7.2.240.0100.01015.09
7.2.230.0060.00915.09
7.2.220.0100.00315.30
7.2.210.0060.00915.07
7.2.200.0030.01015.02
7.2.190.0000.01514.98
7.2.180.0030.01415.14
7.2.170.0060.00614.98
7.2.00.0030.00919.35
7.1.330.0070.01015.55
7.1.320.0110.00315.55
7.1.310.0090.00615.86
7.1.300.0090.00015.88
7.1.290.0100.00715.64
7.1.280.0000.01416.02
7.1.270.0070.00715.51
7.1.260.0030.01015.94
7.1.100.0080.00618.20
7.1.70.0030.00717.18
7.1.60.0040.00717.05
7.1.50.0030.01716.88
7.1.00.0000.04722.29
7.0.200.0060.00916.46
7.0.140.0070.07022.10
7.0.100.0230.07719.98
7.0.90.0030.05319.95
7.0.80.0200.06019.92
7.0.70.0170.06719.86
7.0.60.0130.04719.96
7.0.50.0100.07020.32
7.0.40.0130.04019.96
7.0.30.0130.06320.00
7.0.20.0030.05020.00
7.0.10.0070.08320.14
7.0.00.0070.04019.93
5.6.280.0000.07720.99
5.6.250.0130.08020.72
5.6.240.0130.07720.70
5.6.230.0170.05020.75
5.6.220.0100.05720.49
5.6.210.0100.03720.67
5.6.200.0070.06320.95
5.6.190.0100.08320.95
5.6.180.0070.08721.05
5.6.170.0130.07721.07
5.6.160.0000.07320.96
5.6.150.0130.07321.03
5.6.140.0200.06320.95
5.6.130.0070.08721.11
5.6.120.0030.05021.11
5.6.110.0070.07321.11
5.6.100.0100.04321.02
5.6.90.0100.08720.95
5.6.80.0130.07020.39
5.6.70.0130.07020.55
5.6.60.0030.04320.38
5.6.50.0100.03720.46
5.6.40.0100.08020.49
5.6.30.0000.05320.49
5.6.20.0130.07020.40
5.6.10.0100.07720.38
5.6.00.0130.07320.30
5.5.380.0100.06720.36
5.5.370.0030.08320.43
5.5.360.0130.05720.48
5.5.350.0130.08020.43
5.5.340.0130.04320.81
5.5.330.0170.07320.87
5.5.320.0100.08020.77
5.5.310.0030.07720.91
5.5.300.0200.06320.74
5.5.290.0070.07320.92
5.5.280.0030.05720.89
5.5.270.0070.05020.86
5.5.260.0070.08720.82
5.5.250.0200.05020.64
5.5.240.0100.04320.28
5.5.230.0070.08320.14
5.5.220.0100.07320.21
5.5.210.0070.08020.21
5.5.200.0100.06019.96
5.5.190.0100.07020.14
5.5.180.0070.04720.11
5.5.160.0030.07020.24
5.5.150.0100.04320.08
5.5.140.0070.07320.13
5.5.130.0130.07320.10
5.5.120.0130.07020.24
5.5.110.0100.07320.14
5.5.100.0130.06320.10
5.5.90.0070.04320.08
5.5.80.0100.06720.05
5.5.70.0070.04720.11
5.5.60.0030.07020.11
5.5.50.0100.07320.16
5.5.40.0030.04720.06
5.5.30.0130.07720.06
5.5.20.0100.07320.10
5.5.10.0100.08020.04
5.5.00.0070.07720.11
5.4.450.0200.07319.28
5.4.440.0070.06719.55
5.4.430.0070.08019.36
5.4.420.0130.06319.50
5.4.410.0100.07019.29
5.4.400.0100.07718.91
5.4.390.0030.04719.15
5.4.380.0030.07319.03
5.4.370.0170.06318.85
5.4.360.0130.04019.18
5.4.350.0100.07019.21
5.4.340.0100.04019.06
5.4.320.0030.04719.16
5.4.310.0100.08019.18
5.4.300.0070.07319.20
5.4.290.0130.04319.10
5.4.280.0070.05318.88
5.4.270.0070.05019.12
5.4.260.0100.07019.02
5.4.250.0070.05019.03
5.4.240.0070.06018.94
5.4.230.0000.08019.12
5.4.220.0100.07719.09
5.4.210.0000.08719.04
5.4.200.0070.06319.08
5.4.190.0130.07319.02
5.4.180.0130.07719.02
5.4.170.0200.06719.19
5.4.160.0170.06319.07
5.4.150.0100.06319.02
5.4.140.0170.07016.19
5.4.130.0100.07016.41
5.4.120.0030.03716.41
5.4.110.0130.07016.47
5.4.100.0030.06316.37
5.4.90.0070.06316.36
5.4.80.0070.07016.47
5.4.70.0000.04716.37
5.4.60.0070.04016.48
5.4.50.0030.03716.36
5.4.40.0030.03316.37
5.4.30.0030.03716.44
5.4.20.0000.04016.32
5.4.10.0030.04016.47
5.4.00.0000.04015.70
5.3.290.0170.07014.64
5.3.280.0100.06714.65
5.3.270.0200.04314.75
5.3.260.0070.06014.65
5.3.250.0130.06714.61
5.3.240.0100.07314.58
5.3.230.0070.07314.71
5.3.220.0070.08314.54
5.3.210.0030.08014.56
5.3.200.0100.07314.50
5.3.190.0170.07314.61
5.3.180.0170.06714.59
5.3.170.0100.07314.59
5.3.160.0070.05714.62
5.3.150.0070.03714.58
5.3.140.0070.03714.52
5.3.130.0000.04714.46
5.3.120.0030.04314.56
5.3.110.0000.04314.66
5.3.100.0030.04014.16
5.3.90.0030.03714.13
5.3.80.0000.04014.12
5.3.70.0070.03313.92
5.3.60.0030.03714.02
5.3.50.0030.03713.86
5.3.40.0030.03713.95
5.3.30.0070.04313.92
5.3.20.0030.07313.68
5.3.10.0030.07313.64
5.3.00.0070.05313.62
5.2.170.0030.03312.39
5.2.160.0000.03012.39
5.2.150.0070.02712.39
5.2.140.0000.05712.39
5.2.130.0000.06012.39
5.2.120.0030.03712.39
5.2.110.0100.06012.39
5.2.100.0100.06012.39
5.2.90.0030.04312.39
5.2.80.0030.03012.39
5.2.70.0030.05312.39
5.2.60.0030.03312.39
5.2.50.0070.02312.39
5.2.40.0030.03012.39
5.2.30.0000.03712.39
5.2.20.0000.03012.39
5.2.10.0030.02312.39
5.2.00.0070.02312.39
5.1.60.0000.03312.39
5.1.50.0000.02712.39
5.1.40.0030.02312.39
5.1.30.0000.03312.39
5.1.20.0030.02712.39
5.1.10.0000.02712.39
5.1.00.0030.02012.39
5.0.50.0000.02012.39
5.0.40.0030.01712.39
5.0.30.0030.02712.39
5.0.20.0030.01712.39
5.0.10.0000.02012.39
5.0.00.0000.03312.39
4.4.90.0000.02012.39
4.4.80.0030.01312.39
4.4.70.0000.01312.39
4.4.60.0000.01312.39
4.4.50.0000.02012.39
4.4.40.0000.02312.39
4.4.30.0030.01312.39
4.4.20.0030.01312.39
4.4.10.0000.01712.39
4.4.00.0030.02312.39
4.3.110.0000.02012.39
4.3.100.0070.01012.39
4.3.90.0000.02012.39
4.3.80.0000.02312.39
4.3.70.0000.02012.39
4.3.60.0000.01712.39
4.3.50.0000.01312.39
4.3.40.0030.02312.39
4.3.30.0000.02012.39
4.3.20.0000.03012.39
4.3.10.0000.01312.39
4.3.00.0030.01312.39

preferences:
54.24 ms | 401 KiB | 5 Q