3v4l.org

run code in 300+ PHP versions simultaneously
<?php $open_rates = []; $open_rates["x"]["0"] = "Sun"; $open_rates["x"]["2"] = "Mon"; var_dump(json_encode($open_rates)); $open_rates["x"] = array_values($open_rates["x"]); var_dump(json_encode($open_rates));

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.0060.01218.39
8.3.50.0140.00718.03
8.3.40.0140.00018.75
8.3.30.0070.01018.73
8.3.20.0040.00420.25
8.3.10.0000.00822.09
8.3.00.0070.00023.53
8.2.180.0070.00725.92
8.2.170.0150.00318.90
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00719.29
8.2.120.0040.00426.35
8.2.110.0060.00322.29
8.2.100.0040.00817.84
8.2.90.0080.00022.38
8.2.80.0000.00817.97
8.2.70.0050.00517.80
8.2.60.0060.00318.09
8.2.50.0080.00018.10
8.2.40.0000.00920.47
8.2.30.0000.00719.15
8.2.20.0000.00717.92
8.2.10.0000.00817.92
8.2.00.0040.00417.91
8.1.280.0000.01625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00320.40
8.1.230.0070.00420.93
8.1.220.0030.00617.76
8.1.210.0050.00318.77
8.1.200.0000.01017.35
8.1.190.0000.00817.22
8.1.180.0000.00919.31
8.1.170.0000.00818.46
8.1.160.0030.00518.79
8.1.150.0000.00720.06
8.1.140.0000.00717.66
8.1.130.0040.00419.12
8.1.120.0050.00317.41
8.1.110.0030.00517.39
8.1.100.0030.00617.37
8.1.90.0000.00717.29
8.1.80.0030.00517.39
8.1.70.0030.00317.34
8.1.60.0030.00517.52
8.1.50.0000.00817.33
8.1.40.0080.00017.30
8.1.30.0040.00417.55
8.1.20.0000.00817.48
8.1.10.0000.00817.48
8.1.00.0030.00517.28
8.0.300.0040.00419.94
8.0.290.0040.00416.58
8.0.280.0000.00818.28
8.0.270.0030.00516.74
8.0.260.0030.00316.64
8.0.250.0000.00816.74
8.0.240.0080.00016.91
8.0.230.0070.00016.80
8.0.220.0050.00316.71
8.0.210.0000.00716.75
8.0.200.0040.00416.73
8.0.190.0000.00716.91
8.0.180.0080.00016.81
8.0.170.0000.00716.86
8.0.160.0000.00716.70
8.0.150.0040.00416.77
8.0.140.0080.00016.73
8.0.130.0000.00613.22
8.0.120.0070.00016.77
8.0.110.0030.00516.82
8.0.100.0070.00016.63
8.0.90.0000.00716.66
8.0.80.0000.01416.77
8.0.70.0030.00516.71
8.0.60.0040.00416.88
8.0.50.0090.00016.64
8.0.30.0090.00717.01
8.0.20.0090.01017.40
8.0.10.0050.00216.75
8.0.00.0040.01716.81
7.4.330.0040.00015.55
7.4.320.0040.00416.46
7.4.300.0000.00616.44
7.4.290.0040.00716.52
7.4.280.0030.00516.52
7.4.270.0070.00016.29
7.4.260.0070.00016.44
7.4.250.0030.00316.29
7.4.240.0000.00716.52
7.4.230.0030.00316.18
7.4.220.0100.01016.55
7.4.210.0090.00616.48
7.4.200.0000.00716.36
7.4.160.0090.00916.51
7.4.150.0180.00017.40
7.4.140.0110.00717.86
7.4.130.0100.01316.65
7.4.120.0100.01016.50
7.4.110.0060.01116.50
7.4.100.0100.00616.57
7.4.90.0060.01216.43
7.4.80.0110.00719.39
7.4.70.0070.01116.44
7.4.60.0080.01216.41
7.4.50.0060.00916.41
7.4.40.0100.00716.12
7.4.30.0080.01116.45
7.4.00.0090.00814.86
7.3.330.0000.00512.98
7.3.320.0000.00612.92
7.3.310.0040.00416.21
7.3.300.0000.00816.27
7.3.290.0060.00916.25
7.3.280.0090.00816.24
7.3.270.0030.01617.40
7.3.260.0100.00716.16
7.3.250.0100.00816.39
7.3.240.0110.00616.38
7.3.230.0120.00616.45
7.3.210.0170.00016.25
7.3.200.0060.01616.28
7.3.190.0120.00316.23
7.3.180.0070.00916.16
7.3.170.0090.01216.40
7.3.160.0070.01016.41
7.3.120.0060.01214.82
7.3.110.0100.00714.67
7.3.100.0040.01114.96
7.3.90.0060.01215.01
7.3.80.0090.00714.59
7.3.70.0060.00914.67
7.3.60.0100.00414.71
7.3.50.0050.00814.58
7.3.40.0050.00814.60
7.3.30.0070.00714.77
7.3.20.0090.00616.63
7.3.10.0070.00716.48
7.3.00.0110.00816.52
7.2.330.0070.01016.38
7.2.320.0090.00916.73
7.2.310.0100.00716.68
7.2.300.0130.00916.47
7.2.290.0080.00816.68
7.2.250.0030.01714.91
7.2.240.0030.01614.82
7.2.230.0000.01915.20
7.2.220.0060.00615.12
7.2.210.0050.01314.98
7.2.200.0050.00814.95
7.2.190.0060.00815.03
7.2.180.0050.01014.76
7.2.170.0060.00515.06
7.2.160.0090.00314.95
7.2.150.0130.00916.74
7.2.140.0190.00816.86
7.2.130.0170.01116.84
7.2.120.0190.00716.86
7.2.110.0220.00516.78
7.2.100.0220.00016.72
7.2.90.0110.01916.84
7.2.80.0220.00616.98
7.2.70.0230.01317.00
7.2.60.0110.00516.73
7.2.50.0270.00716.62
7.2.40.0090.00316.86
7.2.30.2020.00315.04
7.2.20.0140.00316.87
7.2.10.0180.01216.80
7.2.00.0090.01316.89
7.1.330.0000.01515.87
7.1.320.0000.01215.86
7.1.310.0050.00815.63
7.1.300.0140.00815.86
7.1.290.0120.00915.68
7.1.280.0070.00415.65
7.1.270.0090.00615.50
7.1.260.0120.01015.64
7.1.250.0200.00615.87
7.1.240.0090.01715.87
7.1.230.0240.00515.48
7.1.220.0230.00715.63
7.1.210.0180.01115.93
7.1.200.0080.01215.72
7.1.190.0160.01315.87
7.1.180.0170.01015.84
7.1.170.0210.01515.56
7.1.160.0180.01415.70
7.1.150.0140.01115.68
7.1.140.0180.00515.78
7.1.130.0220.00715.95
7.1.120.0200.01115.77
7.1.110.0200.01015.83
7.1.100.0170.00417.04
7.1.90.0130.01016.83
7.1.80.0130.01017.04
7.1.70.0090.01416.53
7.1.60.0170.01725.34
7.1.50.0250.00925.13
7.1.40.0200.01325.16
7.1.30.0230.00925.19
7.1.20.0170.01125.20
7.1.10.0170.00716.18
7.1.00.0100.01216.19
7.0.330.0160.01615.42
7.0.320.0200.00715.34
7.0.310.0160.01215.59
7.0.300.0150.01215.40
7.0.290.0240.01215.27
7.0.280.0200.01015.33
7.0.270.0210.00915.30
7.0.260.0280.00015.33
7.0.250.0210.00815.33
7.0.240.0150.00516.54
7.0.230.0120.00716.79
7.0.220.0060.01316.56
7.0.210.0120.00915.81
7.0.200.0120.01016.04
7.0.190.0170.00615.95
7.0.180.0140.00915.72
7.0.170.0130.01115.93
7.0.160.0070.01115.83
7.0.150.0140.00715.62
7.0.140.0110.01115.78
7.0.130.0120.01015.98
7.0.120.0120.00715.89
7.0.110.0120.00915.73
7.0.100.0150.00415.70
7.0.90.0080.01315.74
7.0.80.0080.00915.88
7.0.70.0120.00915.79
7.0.60.0100.00615.70
7.0.50.0110.00815.95
7.0.40.0100.01015.92
7.0.30.0080.01015.87
7.0.20.0090.01016.00
7.0.10.0110.00815.91
7.0.00.0090.01215.97
5.6.400.0170.00614.11
5.6.390.0110.01114.28
5.6.380.0130.01014.58

preferences:
55.37 ms | 400 KiB | 5 Q