3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=array(5=>1, 12 =>2); $arr[]=56; $arr["x"]=42; unset($arr[5]); unset($arr); ?>

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.0150.00418.55
8.3.50.0120.00816.08
8.3.40.0120.00318.84
8.3.30.0070.01018.64
8.3.20.0070.00020.35
8.3.10.0000.00821.95
8.3.00.0000.00820.84
8.2.180.0110.00418.29
8.2.170.0030.01022.96
8.2.160.0140.00022.13
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0050.00222.07
8.2.120.0000.00726.35
8.2.110.0060.00320.48
8.2.100.0110.00017.91
8.2.90.0030.00619.06
8.2.80.0080.00018.04
8.2.70.0000.00917.75
8.2.60.0040.00417.93
8.2.50.0030.00518.10
8.2.40.0000.00820.68
8.2.30.0030.00520.94
8.2.20.0000.00718.05
8.2.10.0050.00318.04
8.2.00.0040.00418.05
8.1.270.0040.00422.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.52
8.1.230.0000.01619.05
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0100.00017.13
8.1.190.0030.00517.25
8.1.180.0050.00218.10
8.1.170.0030.00518.54
8.1.160.0070.00019.03
8.1.150.0040.00418.70
8.1.140.0040.00419.39
8.1.130.0000.00718.83
8.1.120.0080.00017.30
8.1.110.0000.00817.44
8.1.100.0080.00017.32
8.1.90.0030.00517.38
8.1.80.0070.00017.38
8.1.70.0000.00817.35
8.1.60.0040.00417.52
8.1.50.0040.00417.34
8.1.40.0040.00417.45
8.1.30.0030.00617.42
8.1.20.0100.00017.57
8.1.10.0050.00317.66
8.1.00.0000.00817.52
8.0.300.0050.00319.80
8.0.290.0080.00016.75
8.0.280.0000.00718.39
8.0.270.0030.00317.11
8.0.260.0060.00016.63
8.0.250.0070.00016.91
8.0.240.0030.00616.74
8.0.230.0070.00316.80
8.0.220.0030.00316.81
8.0.210.0040.00416.69
8.0.200.0030.00316.76
8.0.190.0050.00316.83
8.0.180.0000.01116.84
8.0.170.0080.00016.86
8.0.160.0040.00416.82
8.0.150.0070.00016.87
8.0.140.0030.00316.72
8.0.130.0000.00713.21
8.0.120.0000.00816.81
8.0.110.0030.00316.84
8.0.100.0030.00516.65
8.0.90.0000.00716.78
8.0.80.0040.01116.81
8.0.70.0000.00716.87
8.0.60.0070.00016.79
8.0.50.0050.00316.72
8.0.30.0060.01117.03
8.0.20.0150.00617.40
8.0.10.0040.00416.82
8.0.00.0070.01116.88
7.4.330.0050.00015.55
7.4.320.0030.00316.58
7.4.300.0030.00316.59
7.4.290.0030.00616.43
7.4.280.0000.00816.48
7.4.270.0040.00416.61
7.4.260.0080.00016.65
7.4.250.0000.00816.45
7.4.240.0000.00716.53
7.4.230.0000.00716.70
7.4.220.0120.00916.67
7.4.210.0080.00616.63
7.4.200.0030.00416.39
7.4.160.0110.00516.40
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0170.00716.42
7.4.120.0130.00716.48
7.4.110.0110.00716.40
7.4.100.0110.00816.41
7.4.90.0070.00916.44
7.4.80.0110.00519.39
7.4.70.0030.01416.38
7.4.60.0040.01116.57
7.4.50.0090.01116.39
7.4.40.0100.01016.37
7.4.30.0100.00716.61
7.4.00.0040.01215.02
7.3.330.0020.00213.18
7.3.320.0030.00313.31
7.3.310.0050.00316.30
7.3.300.0000.00716.34
7.3.290.0080.00716.34
7.3.280.0100.00716.33
7.3.270.0090.00917.40
7.3.260.0070.01016.55
7.3.250.0130.00516.38
7.3.240.0090.00816.42
7.3.230.0080.01116.35
7.3.210.0060.01016.39
7.3.200.0150.00316.22
7.3.190.0070.00716.57
7.3.180.0060.01616.50
7.3.170.0090.00616.38
7.3.160.0100.01016.39
7.3.120.0070.00717.15
7.3.110.0000.00917.15
7.3.100.0040.01217.15
7.3.90.0040.00717.15
7.3.80.0030.01017.15
7.3.70.0110.00317.15
7.3.60.0030.01017.15
7.3.50.0070.00717.15
7.3.40.0090.00617.15
7.3.30.0070.00717.15
7.3.20.0060.00817.15
7.3.10.0030.01017.15
7.3.00.0050.01116.93
7.2.330.0070.01016.50
7.2.320.0040.01216.22
7.2.310.0040.01716.60
7.2.300.0120.00816.39
7.2.290.0100.00716.67
7.2.240.0040.01117.15
7.2.230.0100.00617.15
7.2.220.0060.01017.15
7.2.210.0060.00617.15
7.2.200.0040.01117.15
7.2.190.0030.01017.15
7.2.180.0060.01017.15
7.2.170.0070.01017.15
7.2.160.0070.00717.15
7.2.150.0060.01017.15
7.2.140.0090.00317.15
7.2.130.0050.00916.97
7.2.120.0070.00716.96
7.2.110.0080.00717.00
7.2.100.0080.00816.90
7.2.90.0080.00817.11
7.2.80.0070.00616.87
7.2.70.0060.00916.99
7.2.60.0070.00716.96
7.2.50.0070.00717.03
7.2.40.0050.01217.00
7.2.30.0090.00516.96
7.2.20.0080.00717.05
7.2.10.0020.01216.88
7.2.00.0060.00717.76
7.1.330.0070.01017.15
7.1.320.0070.01017.15
7.1.310.0000.01517.15
7.1.300.0130.00317.15
7.1.290.0060.00617.15
7.1.280.0030.00717.15
7.1.270.0060.00317.15
7.1.260.0100.00717.15
7.1.250.0080.00416.46
7.1.240.0070.00815.48
7.1.230.0100.00315.59
7.1.220.0110.00415.54
7.1.210.0040.00715.92
7.1.200.0030.00715.66
7.1.190.0030.00815.93
7.1.180.0000.01015.78
7.1.170.0080.00415.73
7.1.160.0070.01015.81
7.1.150.0060.00915.58
7.1.140.0100.00315.77
7.1.130.0070.00715.52
7.1.120.0100.00315.75
7.1.110.0060.00615.77
7.1.100.0030.00716.87
7.1.90.0100.00715.84
7.1.80.0090.00315.58
7.1.70.0090.00716.41
7.1.60.0230.01024.57
7.1.50.0250.00824.50
7.1.40.0230.01323.95
7.1.30.0230.01024.31
7.1.20.0270.01424.14
7.1.10.0220.01015.18
7.1.00.0620.00415.24
7.0.330.0040.01115.40
7.0.320.0060.00615.18
7.0.310.0040.00715.21
7.0.300.0080.00414.81
7.0.290.0100.00715.15
7.0.280.0080.00315.47
7.0.270.0040.01215.27
7.0.260.0100.00315.30
7.0.250.0090.00915.17
7.0.240.0030.01015.45
7.0.230.0040.00715.11
7.0.220.0070.00715.39
7.0.210.0040.00715.43
7.0.200.0170.00915.16
7.0.190.0150.00914.98
7.0.180.0180.00714.74
7.0.170.0190.00914.81
7.0.160.0240.00915.02
7.0.150.0190.01314.79
7.0.140.0250.00615.04
7.0.130.0150.00715.03
7.0.120.0150.00915.02
7.0.110.0300.00514.74
7.0.100.0210.00514.81
7.0.90.0150.00814.96
7.0.80.0160.00614.81
7.0.70.0150.01214.91
7.0.60.0220.01014.71
7.0.50.0280.00515.04
7.0.40.0140.01314.00
7.0.30.0190.00613.94
7.0.20.0170.00713.92
7.0.10.0180.00713.87
7.0.00.0220.00213.83
5.6.380.0080.00814.59

preferences:
51.52 ms | 400 KiB | 5 Q