3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[ { "seasonNumber":1, "numWins":1, "numHighBracket":2, "numLowBracket":2, "seasonXp":111, "seasonLevel":5, "bookXp":0, "bookLevel":1, "purchasedVIP":false }, { "seasonNumber":2, "numWins":1, "numHighBracket":21, "numLowBracket":31, "seasonXp":1651, "seasonLevel":25, "bookXp":9, "bookLevel":11, "purchasedVIP":false }, { "seasonNumber":3, "numWins":9, "numHighBracket":57, "numLowBracket":127, "seasonXp":4659, "seasonLevel":68, "bookXp":0, "bookLevel":100, "purchasedVIP":true }, { "seasonNumber":4, "numWins":8, "numHighBracket":19, "numLowBracket":36, "seasonXp":274, "seasonLevel":33, "bookXp":7, "bookLevel":35, "purchasedVIP":true } ]'; foreach (json_decode($json) as $set) { $array[] = ["season" => $set->seasonNumber, "battle_pass" => $set->purchasedVIP]; } echo json_encode(["seasons" => $array], JSON_FORCE_OBJECT | JSON_PRETTY_PRINT);

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.130.0110.00716.65
8.3.120.0030.00619.20
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0140.00726.77
8.3.80.0090.00016.75
8.3.70.0100.00616.63
8.3.60.0170.00318.43
8.3.50.0100.00918.33
8.3.40.0110.00418.85
8.3.30.0040.01118.54
8.3.20.0030.00518.65
8.3.10.0000.00821.90
8.3.00.0040.00421.90
8.2.250.0070.01016.46
8.2.240.0050.00517.41
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0090.01226.77
8.2.200.0060.00316.63
8.2.190.0100.01016.58
8.2.180.0070.01125.92
8.2.170.0000.01518.91
8.2.160.0100.00722.96
8.2.150.0030.00724.18
8.2.140.0070.00324.66
8.2.130.0000.00722.27
8.2.120.0040.00426.35
8.2.110.0030.00720.38
8.2.100.0060.00617.91
8.2.90.0040.00420.62
8.2.80.0040.00418.05
8.2.70.0090.00017.93
8.2.60.0080.00017.93
8.2.50.0030.00518.10
8.2.40.0060.00619.47
8.2.30.0000.00720.57
8.2.20.0040.00418.02
8.2.10.0040.00418.08
8.2.00.0000.00718.10
8.1.300.0090.00016.18
8.1.290.0060.00318.88
8.1.280.0100.01025.92
8.1.270.0030.00623.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00323.72
8.1.230.0060.00620.96
8.1.220.0040.00417.74
8.1.210.0040.00419.01
8.1.200.0030.00717.36
8.1.190.0090.00017.35
8.1.180.0050.00318.10
8.1.170.0040.00418.71
8.1.160.0040.00418.94
8.1.150.0040.00418.90
8.1.140.0040.00418.82
8.1.130.0070.00322.08
8.1.120.0030.00317.37
8.1.110.0000.00717.47
8.1.100.0000.00717.39
8.1.90.0000.00817.43
8.1.80.0050.00217.50
8.1.70.0000.00717.52
8.1.60.0050.00317.61
8.1.50.0040.00417.42
8.1.40.0030.00617.41
8.1.30.0060.00317.70
8.1.20.0080.00017.66
8.1.10.0040.00417.47
8.1.00.0080.00017.57
8.0.300.0000.00719.88
8.0.290.0040.00416.75
8.0.280.0030.00318.47
8.0.270.0040.00416.83
8.0.260.0000.00618.46
8.0.250.0000.00816.98
8.0.240.0040.00416.98
8.0.230.0040.00416.98
8.0.220.0050.00216.84
8.0.210.0080.00016.86
8.0.200.0040.00416.96
8.0.190.0040.00416.87
8.0.180.0040.00416.93
8.0.170.0030.00616.80
8.0.160.0030.00716.97
8.0.150.0070.00016.89
8.0.140.0040.00416.88
8.0.130.0030.00313.36
8.0.120.0000.00816.73
8.0.110.0070.00016.82
8.0.100.0090.00016.86
8.0.90.0030.00516.90
8.0.80.0080.01316.91
8.0.70.0040.00416.85
8.0.60.0050.00316.94
8.0.50.0020.00516.79
8.0.30.0140.00617.00
8.0.20.0120.00617.40
8.0.10.0000.00716.97
8.0.00.0060.01116.79
7.4.330.0030.00315.55
7.4.320.0030.00316.54
7.4.300.0000.00716.61
7.4.290.0030.00316.65
7.4.280.0000.00916.52
7.4.270.0030.00316.57
7.4.260.0050.00316.59
7.4.250.0000.00716.40
7.4.240.0000.00716.60
7.4.230.0040.00416.72
7.4.220.0030.00516.35
7.4.210.0120.00716.58
7.4.200.0050.00216.50
7.4.160.0090.00916.45
7.4.140.0100.00817.86
7.4.130.0110.00816.52
7.4.120.0090.01016.55
7.4.110.0070.01016.50
7.4.100.0090.00916.56
7.4.90.0090.00916.67
7.4.80.0060.01219.39
7.4.70.0080.00816.43
7.4.60.0110.00616.42
7.4.50.0070.01116.57
7.4.40.0130.00316.72
7.4.00.0000.00914.92
7.3.330.0050.00013.03
7.3.320.0000.00513.11
7.3.310.0030.00316.28
7.3.300.0030.00316.38
7.3.290.0030.00316.17
7.3.280.0060.01016.26
7.3.260.0170.00216.35
7.3.240.0090.00816.35
7.3.230.0100.00716.57
7.3.210.0090.00916.39
7.3.200.0040.01416.22
7.3.190.0110.00716.32
7.3.180.0040.01216.31
7.3.170.0070.01416.64
7.3.160.0100.00716.49
7.3.120.0000.01514.83
7.3.110.0060.00614.66
7.3.100.0090.00615.03
7.3.90.0120.00315.04
7.3.80.0140.00314.45
7.3.70.0070.01014.73
7.3.60.0040.00714.93
7.3.50.0060.00614.64
7.3.40.0060.01014.41
7.3.30.0060.00614.79
7.3.20.0030.01216.72
7.3.10.0120.00316.61
7.3.00.0070.01016.73
7.2.330.0130.00616.77
7.2.320.0060.00916.44
7.2.310.0130.01316.80
7.2.300.0120.00616.41
7.2.290.0140.00716.68
7.2.240.0080.00815.11
7.2.230.0030.00614.98
7.2.220.0030.00914.90
7.2.210.0030.01015.05
7.2.200.0120.00314.87
7.2.190.0000.01315.29
7.2.180.0030.01515.01
7.2.170.0070.00715.18
7.2.160.0000.01715.03
7.2.150.0060.01117.03
7.2.140.0070.00616.96
7.2.130.0080.00416.83
7.2.120.0030.01317.02
7.2.110.0070.01016.89
7.2.100.1880.00815.85
7.2.90.1590.00815.64
7.2.80.1290.01015.56
7.2.70.1190.00616.03
7.2.60.1890.00516.11
7.2.50.1510.00715.92
7.2.40.1370.01015.91
7.2.30.1840.00516.00
7.2.20.1700.00915.97
7.2.10.1830.01115.94
7.2.00.1640.01015.92
7.1.330.0070.00715.79
7.1.320.0000.01115.56
7.1.310.0110.00415.96
7.1.300.0090.00615.79
7.1.290.0000.01415.72
7.1.280.0040.01115.49
7.1.270.0110.00715.63
7.1.260.0060.00615.80
7.1.250.0030.01015.70
7.1.220.0250.00313.94
7.1.210.3610.00613.61
7.1.200.2600.00313.58
7.1.190.2940.01013.79
7.1.180.3410.00313.71
7.1.170.3180.00713.59
7.1.160.3300.00613.87
7.1.150.3170.01313.56
7.1.140.3660.01013.74
7.1.130.2970.00013.53
7.1.120.3220.00713.46
7.1.110.3310.00713.83
7.1.100.3570.01213.58
7.1.90.4050.01013.77
7.1.80.4670.01313.97
7.1.70.4820.00713.68
7.1.60.5700.01331.91
7.1.50.5610.00731.33
7.1.40.4880.01631.82
7.1.30.6260.02031.56
7.1.20.6410.01331.99
7.1.10.4780.00313.68
7.1.00.4400.00713.73
5.6.380.0100.00314.17

preferences:
16.95 ms | 403 KiB | 5 Q