3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = [ 1 => 'A', 1 => 'B', 1 => 'C' ]; var_dump($items[1]);

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.140.0070.01316.58
8.3.130.0130.00318.28
8.3.120.0080.00018.66
8.3.110.0130.00616.39
8.3.100.0030.00624.06
8.3.90.0140.00426.77
8.3.80.0090.00019.36
8.3.70.0000.01418.18
8.3.60.0090.01218.55
8.3.50.0030.01116.42
8.3.40.0040.01118.84
8.3.30.0090.00618.52
8.3.20.0080.00020.46
8.3.10.0000.00823.66
8.3.00.0030.00622.50
8.2.250.0080.00016.52
8.2.240.0000.00817.00
8.2.230.0040.00420.94
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0040.00418.88
8.2.190.0170.00316.58
8.2.180.0120.00418.18
8.2.170.0070.00718.85
8.2.160.0090.00622.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00319.08
8.2.110.0070.01022.20
8.2.100.0110.00720.45
8.2.90.0180.00718.89
8.2.80.0220.00318.49
8.2.70.0170.00418.36
8.2.60.0200.00518.22
8.2.50.0160.00518.86
8.2.40.0170.00418.90
8.2.30.0130.00818.90
8.2.20.0100.00819.18
8.2.10.0130.00718.85
8.2.00.0170.00518.53
8.1.300.0030.00615.89
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0160.00318.80
8.1.230.0150.00718.64
8.1.220.0160.00618.13
8.1.210.0140.00619.49
8.1.200.0160.00517.89
8.1.190.0100.00917.88
8.1.180.0130.00518.12
8.1.170.0100.00518.11
8.1.160.0070.00718.79
8.1.150.0100.00419.88
8.1.140.0080.00719.06
8.1.130.0070.00618.03
8.1.120.0060.00518.16
8.1.110.0090.00418.46
8.1.100.0080.00418.14
8.1.90.0100.00118.02
8.1.80.0050.00618.01
8.1.70.0070.00318.12
8.1.60.0080.00518.24
8.1.50.0080.00518.20
8.1.40.0070.00418.29
8.1.30.0070.00518.46
8.1.20.0080.00518.30
8.1.10.0080.00318.43
8.1.00.0090.00118.13
8.0.300.0080.00518.04
8.0.290.0110.00717.31
8.0.280.0060.00618.00
8.0.270.0130.00317.28
8.0.260.0070.00317.72
8.0.250.0060.00517.45
8.0.240.0070.00417.40
8.0.230.0100.00117.81
8.0.220.0080.00717.38
8.0.210.0130.00417.44
8.0.200.0040.00817.46
8.0.190.0110.00217.66
8.0.180.0090.00217.51
8.0.170.0060.00617.55
8.0.160.0070.00517.41
8.0.150.0050.00717.35
8.0.140.0090.00317.52
8.0.130.0080.00516.39
8.0.120.0140.00417.42
8.0.110.0120.00417.57
8.0.100.0130.00417.32
8.0.90.0120.00417.41
8.0.80.0140.00717.43
8.0.70.0130.00417.40
8.0.60.0090.00517.70
8.0.50.0110.00417.48
8.0.30.0110.00817.41
8.0.20.0110.00517.52
8.0.10.0060.00617.60
8.0.00.0120.00618.52
7.4.330.0130.00116.05
7.4.320.0090.00617.00
7.4.300.0060.00418.45
7.4.290.0050.00518.37
7.4.280.0130.00217.17
7.4.270.0100.00118.25
7.4.260.0130.00217.10
7.4.250.0050.00617.07
7.4.240.0060.00517.63
7.4.230.0120.00317.09
7.4.220.0100.00218.35
7.4.210.0090.00916.86
7.4.200.0070.00218.33
7.4.190.0180.00217.43
7.4.180.0110.00217.47
7.4.160.0090.00417.40
7.4.150.0080.00319.21
7.4.140.0080.00518.70
7.4.130.0140.00516.78
7.4.120.0120.00716.74
7.4.110.0150.00516.61
7.4.100.0110.00716.81
7.4.90.0110.00816.81
7.4.80.0130.00717.12
7.4.70.0150.00916.64
7.4.60.0140.01016.65
7.4.50.0140.00616.70
7.4.40.0150.00716.64
7.4.30.0150.01016.67
7.4.20.0150.00616.71
7.4.10.0150.00716.09
7.4.00.0090.00716.40
7.3.330.0100.00415.79
7.3.320.0150.00715.85
7.3.310.0170.00416.79
7.3.300.0190.00616.77
7.3.290.0170.00616.77
7.3.280.0180.00316.84
7.3.270.0200.00117.19
7.3.260.0120.00716.52
7.3.250.0160.00516.98
7.3.240.0180.00516.74
7.3.230.0120.00716.65
7.3.220.0170.00816.60
7.3.210.0190.00816.52
7.3.200.0130.00916.60
7.3.190.0190.00416.59
7.3.180.0150.00716.51
7.3.170.0130.00916.52
7.3.160.0140.00716.57
7.3.150.0140.00716.63
7.3.140.0180.00516.61
7.3.130.0150.00815.99
7.3.120.0120.00915.81
7.3.110.0110.00815.85
7.3.100.0130.00715.80
7.3.90.0160.00616.01
7.3.80.0110.00815.75
7.3.70.0130.00615.64
7.3.60.0110.00915.68
7.3.50.0130.00815.55
7.3.40.0090.00815.46
7.3.30.0100.00615.08
7.3.20.0440.00715.62
7.3.10.0670.00715.69
7.3.00.0470.00815.60
7.2.340.0160.00817.27
7.2.330.0190.00816.68
7.2.320.0200.00916.63
7.2.310.0180.00916.71
7.2.300.0180.00716.67
7.2.290.0220.00616.65
7.2.280.0220.00816.73
7.2.270.0200.00716.79
7.2.260.0140.00816.21
7.2.250.0140.00816.16
7.2.240.0140.00716.06
7.2.230.0170.00716.02
7.2.220.0150.00915.97
7.2.210.0140.00815.91
7.2.200.0150.00715.85
7.2.190.0130.00815.77
7.2.180.0120.00915.72
7.2.170.0110.00915.61
7.2.160.0110.00815.24
7.2.150.0720.00916.00
7.2.140.0460.00715.79
7.2.130.0520.00715.74
7.2.120.0430.00915.79
7.2.110.0750.00715.86
7.2.100.0700.00815.78
7.2.90.0700.00815.82
7.2.80.0730.00915.79
7.2.70.0720.00715.75
7.2.60.0580.00915.78
7.2.50.0790.00815.79
7.2.40.0620.00915.85
7.2.30.0690.00715.85
7.2.20.0530.01015.82
7.2.10.0460.00915.88
7.2.00.0390.00815.80
7.1.330.0140.00715.58
7.1.320.0170.00815.56
7.1.310.0180.00715.27
7.1.300.0150.00815.34
7.1.290.0200.00615.31
7.1.280.0160.00515.23
7.1.270.0600.00714.76
7.1.260.0520.00614.75
7.1.250.0450.00714.77
7.1.240.0190.00715.76
7.1.230.0170.00815.72
7.1.220.0180.00715.67
7.1.210.0160.01015.72
7.1.200.0180.01015.68
7.1.190.0200.00815.71
7.1.180.0210.00815.72
7.1.170.0230.00815.90
7.1.160.0180.01015.60
7.1.150.0160.00715.58
7.1.140.0190.00715.71
7.1.130.0150.00915.55
7.1.120.0290.00715.62
7.1.110.0160.00815.75
7.1.100.0160.01115.64
7.1.90.0180.00815.66
7.1.80.0150.00815.72
7.1.70.0200.00915.60
7.1.60.0150.00815.72
7.1.50.0170.00615.74
7.1.40.0170.00615.69
7.1.30.0160.00615.65
7.1.20.0140.00915.60
7.1.10.0150.00815.61
7.1.00.0150.00815.60

preferences:
52.69 ms | 403 KiB | 5 Q