3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'key1'=>1, 'key2'=>1, 'key3'=>1, 'key4'=>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.60.0070.00716.61
8.3.50.0090.00721.92
8.3.40.0070.00718.42
8.3.30.0100.00718.83
8.3.20.0070.00020.07
8.3.10.0000.00721.83
8.3.00.0080.00017.67
8.2.180.0210.00318.16
8.2.170.0070.00722.96
8.2.160.0100.00320.36
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.10
8.2.110.0030.00620.52
8.2.100.0030.00917.84
8.2.90.0080.00019.11
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0080.00018.04
8.2.50.0040.00418.10
8.2.40.0040.00419.82
8.2.30.0030.00617.93
8.2.20.0050.00217.64
8.2.10.0040.00417.91
8.2.00.0040.00417.60
8.1.280.0120.00925.92
8.1.270.0050.00323.76
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0050.00520.89
8.1.230.0070.00417.70
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.22
8.1.190.0000.00917.22
8.1.180.0050.00318.10
8.1.170.0040.00418.31
8.1.160.0050.00221.82
8.1.150.0040.00418.69
8.1.140.0000.00717.36
8.1.130.0030.00317.86
8.1.120.0050.00217.34
8.1.110.0070.00017.38
8.1.100.0040.00317.27
8.1.90.0040.00317.26
8.1.80.0040.00417.29
8.1.70.0070.00017.26
8.1.60.0060.00317.53
8.1.50.0000.00717.50
8.1.40.0040.00417.40
8.1.30.0000.00817.53
8.1.20.0000.00717.56
8.1.10.0040.00417.44
8.1.00.0000.00717.38
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0030.00318.37
8.0.270.0070.00017.05
8.0.260.0030.00317.23
8.0.250.0000.00716.87
8.0.240.0030.00316.77
8.0.230.0040.00416.74
8.0.220.0000.00716.80
8.0.210.0000.00716.80
8.0.200.0030.00316.87
8.0.190.0000.00716.88
8.0.180.0000.00816.84
8.0.170.0000.00816.75
8.0.160.0050.00216.80
8.0.150.0030.00716.79
8.0.140.0000.00716.82
8.0.130.0000.00613.23
8.0.120.0020.00516.67
8.0.110.0070.00016.78
8.0.100.0040.00416.76
8.0.90.0050.00216.78
8.0.80.0100.00516.82
8.0.70.0070.00016.70
8.0.60.0030.00316.83
8.0.50.0040.00416.76
8.0.30.0110.00917.13
8.0.20.0100.00817.40
8.0.10.0040.00417.00
8.0.00.0130.00716.66
7.4.330.0060.00015.00
7.4.320.0070.00016.50
7.4.300.0030.00316.41
7.4.290.0070.00016.56
7.4.280.0040.00416.42
7.4.270.0000.00716.42
7.4.260.0060.00016.43
7.4.250.0000.00716.48
7.4.240.0060.00116.42
7.4.230.0040.00416.57
7.4.220.0060.01216.63
7.4.210.0110.00516.61
7.4.200.0030.00316.26
7.4.160.0090.00616.26
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0160.00716.34
7.4.120.0110.00716.33
7.4.110.0100.01016.38
7.4.100.0130.00816.37
7.4.90.0140.00316.28
7.4.80.0110.00619.39
7.4.70.0030.01916.43
7.4.60.0070.01416.38
7.4.50.0050.00316.06
7.4.40.0180.00416.35
7.4.30.0040.01316.46
7.4.00.0060.00614.57
7.3.330.0060.00012.97
7.3.320.0050.00012.86
7.3.310.0050.00316.00
7.3.300.0040.00416.04
7.3.290.0100.00616.08
7.3.280.0080.01116.19
7.3.270.0080.00817.40
7.3.260.0340.01816.45
7.3.240.0130.00316.38
7.3.230.0100.01316.44
7.3.210.0100.01016.23
7.3.200.0060.01519.39
7.3.190.0090.00616.22
7.3.180.0150.00616.33
7.3.170.0060.00916.27
7.3.160.0130.00916.26
7.3.120.0110.00714.67
7.2.330.0030.01416.48
7.2.320.0090.00716.14
7.2.310.0080.00816.38
7.2.300.0190.00316.60
7.2.290.0060.00916.39
7.1.70.0090.00616.73
7.1.60.0100.01019.25
7.1.50.0030.01716.74
7.1.00.0070.06322.51
7.0.200.0000.00716.62
7.0.140.0030.07322.18
7.0.60.0100.04719.78
7.0.50.0130.07717.83
7.0.40.0070.05720.24
7.0.30.0200.08720.20
7.0.20.0300.08320.14
7.0.10.0070.08320.21
7.0.00.0100.06020.19
5.6.280.0030.07321.06
5.6.210.0030.08720.52
5.6.200.0130.07318.22
5.6.190.0030.04320.45
5.6.180.3470.04320.63
5.6.170.0300.04020.39
5.6.160.0100.03720.51
5.6.150.0070.06718.11
5.6.140.0130.07318.18
5.6.130.0070.08018.12
5.6.120.0030.05320.98
5.6.110.0030.04321.13
5.6.100.0000.06020.99
5.6.90.0030.08720.87
5.6.80.0070.05320.53
5.5.350.0030.08720.40
5.5.340.0000.04717.93
5.5.330.0130.04320.37
5.5.320.0470.07020.34
5.5.310.0330.06720.32
5.5.300.0130.07317.96
5.5.290.0030.04017.91
5.5.280.0030.04020.67
5.5.270.0070.07020.75
5.5.260.0100.08020.75
5.5.250.0130.07320.57
5.5.240.0100.05020.27
5.4.450.0100.04719.41
5.4.440.0100.06319.46
5.4.430.0270.04719.42
5.4.420.0230.05019.25
5.4.410.0300.03019.13
5.4.400.0370.03719.25
5.4.390.0200.05018.93
5.4.380.0300.06018.76
5.4.370.0400.05018.44
5.4.360.0330.06718.72
5.4.350.0470.05718.59
5.4.340.0200.06318.72
5.4.320.0070.04112.45
5.4.310.0070.03712.45
5.4.300.0050.03712.45
5.4.290.0040.04012.45
5.4.280.0080.03312.34
5.4.270.0030.03912.35
5.4.260.0080.03612.34
5.4.250.0070.03612.34
5.4.240.0050.03812.35
5.4.230.0090.04412.34
5.4.220.0050.04812.34
5.4.210.0090.03912.34
5.4.200.0060.04312.34
5.4.190.0070.04512.33
5.4.180.0060.04212.33
5.4.170.0100.04812.34
5.4.160.0070.04312.34
5.4.150.0060.04012.34
5.4.140.0090.04612.02
5.4.130.0040.04512.01
5.4.120.0070.04711.96
5.4.110.0090.04011.96
5.4.100.0080.03711.96
5.4.90.0080.04211.96
5.4.80.0060.04211.97
5.4.70.0060.04011.96
5.4.60.0070.03711.96
5.4.50.0090.04211.96
5.4.40.0070.03711.95
5.4.30.0080.04111.95
5.4.20.0100.04611.94
5.4.10.0080.03811.95
5.4.00.0070.04911.44
5.3.290.0050.04112.80
5.3.280.0070.05012.71
5.3.270.0100.05012.73
5.3.260.0070.05212.72
5.3.250.0120.04112.72
5.3.240.0070.04012.72
5.3.230.0060.04312.71
5.3.220.0090.03812.68
5.3.210.0070.04512.68
5.3.200.0080.04012.68
5.3.190.0100.04012.68
5.3.180.0100.03912.67
5.3.170.0070.04012.66
5.3.160.0060.05012.67
5.3.150.0130.04712.68
5.3.140.0110.04712.66
5.3.130.0100.04612.66
5.3.120.0050.04112.66
5.3.110.0120.04212.66
5.3.100.0070.04012.12
5.3.90.0050.04912.09
5.3.80.0060.03912.07
5.3.70.0070.03712.07
5.3.60.0110.03312.06
5.3.50.0170.03612.00
5.3.40.0080.04112.00
5.3.30.0060.04211.95
5.3.20.0080.03311.72
5.3.10.0080.03411.70
5.3.00.0090.03611.68

preferences:
56.98 ms | 401 KiB | 5 Q