3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('wordid' => 0, 'type' => 1); $array[] = 4; $array[] = 4; $array[] = 4; //shuffle($array); var_dump($array); ?>

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.0110.00316.50
8.3.50.0140.00422.92
8.3.40.0160.00318.66
8.3.30.0180.00019.13
8.3.20.0060.00320.26
8.3.10.0080.00023.53
8.3.00.0080.00019.38
8.2.180.0090.00618.29
8.2.170.0150.00022.96
8.2.160.0060.01220.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0150.00026.16
8.2.120.0070.00021.02
8.2.110.0090.00020.33
8.2.100.0090.00318.22
8.2.90.0060.00319.21
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0000.00717.93
8.2.50.0000.01018.07
8.2.40.0060.00318.22
8.2.30.0000.00817.93
8.2.20.0030.00517.67
8.2.10.0040.00417.86
8.2.00.0000.00817.62
8.1.280.0060.01225.92
8.1.270.0080.00023.84
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00921.89
8.1.230.0040.00719.16
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0070.00417.23
8.1.190.0030.00517.11
8.1.180.0040.00418.10
8.1.170.0050.00318.32
8.1.160.0000.00821.94
8.1.150.0000.00718.74
8.1.140.0030.00517.33
8.1.130.0030.00317.87
8.1.120.0000.00717.41
8.1.110.0050.00317.36
8.1.100.0030.00317.30
8.1.90.0070.00017.41
8.1.80.0000.01017.37
8.1.70.0000.00717.32
8.1.60.0030.00517.48
8.1.50.0040.00417.54
8.1.40.0080.00017.46
8.1.30.0040.00417.61
8.1.20.0000.00717.57
8.1.10.0000.00717.39
8.1.00.0040.00417.37
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00718.43
8.0.270.0000.00717.18
8.0.260.0070.00017.18
8.0.250.0070.00016.87
8.0.240.0070.00016.92
8.0.230.0030.00316.90
8.0.220.0030.00316.72
8.0.210.0070.00016.85
8.0.200.0040.00416.74
8.0.190.0000.00816.82
8.0.180.0000.00816.75
8.0.170.0000.00716.84
8.0.160.0000.00716.73
8.0.150.0040.00416.76
8.0.140.0050.00316.82
8.0.130.0000.00713.21
8.0.120.0040.00416.79
8.0.110.0040.00416.70
8.0.100.0000.00716.70
8.0.90.0070.00016.67
8.0.80.0110.00716.84
8.0.70.0050.00216.81
8.0.60.0000.00716.81
8.0.50.0000.00716.85
8.0.30.0070.01216.98
8.0.20.0060.01217.40
8.0.10.0040.00416.81
8.0.00.0080.00916.69
7.4.330.0060.00015.03
7.4.320.0030.00316.52
7.4.300.0000.00716.41
7.4.290.0030.00316.54
7.4.280.0040.00416.40
7.4.270.0040.00416.41
7.4.260.0040.00416.46
7.4.250.0000.00716.45
7.4.240.0040.00416.48
7.4.230.0030.00316.51
7.4.220.0060.01316.36
7.4.210.0040.01116.46
7.4.200.0030.00316.23
7.4.160.0040.01116.42
7.4.150.0150.00617.40
7.4.140.0080.00917.86
7.4.130.0140.00616.53
7.4.120.0100.00716.48
7.4.110.0170.00016.51
7.4.100.0070.01016.39
7.4.90.0100.01016.37
7.4.80.0060.01519.39
7.4.70.0110.01016.36
7.4.60.0120.00416.23
7.4.50.0040.00416.47
7.4.40.0100.00916.40
7.4.30.0090.00916.50
7.4.00.0070.00714.70
7.3.330.0030.00313.01
7.3.320.0060.00013.06
7.3.310.0070.00016.12
7.3.300.0060.00016.18
7.3.290.0060.00616.17
7.3.280.0080.00916.14
7.3.270.0190.00017.40
7.3.260.0090.00916.29
7.3.250.0070.01016.40
7.3.240.0160.00716.15
7.3.230.0120.00616.50
7.3.210.0040.01316.24
7.3.200.0040.01219.39
7.3.190.0060.01116.41
7.3.180.0090.00816.24
7.3.170.0090.00616.27
7.3.160.0060.01316.32
7.3.10.0050.00916.71
7.3.00.0030.00816.55
7.2.330.0030.01516.36
7.2.320.0030.01816.38
7.2.310.0040.01516.67
7.2.300.0040.01716.61
7.2.290.0060.01016.66
7.2.130.0050.01016.77
7.2.120.0060.00916.50
7.2.110.0050.00916.58
7.2.100.0020.01116.65
7.2.90.0050.00816.96
7.2.80.0090.00616.45
7.2.70.0070.00516.78
7.2.60.0080.00616.68
7.2.50.0030.01116.75
7.2.40.0080.00516.72
7.2.30.0070.00616.75
7.2.20.0060.00816.80
7.2.10.0070.00916.71
7.2.00.0040.00617.44
7.1.250.0010.00815.69
7.1.200.0030.00615.80
7.1.100.0040.00817.86
7.1.70.0070.00017.07
7.1.60.0100.01419.46
7.1.50.0100.01416.85
7.1.00.0030.07722.40
7.0.200.0030.00616.73
7.0.140.0070.07022.11
7.0.60.0070.04019.94
7.0.50.0030.05717.86
7.0.40.0000.08720.23
7.0.30.0200.04720.04
7.0.20.0300.06020.18
7.0.10.0100.07320.16
7.0.00.0030.04320.20
5.6.280.0100.06720.90
5.6.210.0100.07720.49
5.6.200.0100.05718.12
5.6.190.0100.03320.27
5.6.180.0270.07020.58
5.6.170.0300.07320.44
5.6.160.0070.08320.48
5.6.150.0030.04718.17
5.6.140.0070.05318.14
5.6.130.0000.08718.11
5.6.120.0100.08321.13
5.6.110.0130.07721.13
5.6.100.0100.07721.03
5.6.90.0130.06721.09
5.6.80.0070.07320.35
5.5.350.4170.04720.41
5.5.340.0030.04718.05
5.5.330.0030.06020.38
5.5.320.0300.04320.31
5.5.310.0270.04720.14
5.5.300.0030.06017.96
5.5.290.0070.08718.01
5.5.280.0130.07020.77
5.5.270.0170.07720.76
5.5.260.0000.04720.75
5.5.250.0070.05720.77
5.5.240.0130.06320.18
5.4.450.0270.03719.14
5.4.440.0030.03719.54
5.4.430.0100.04019.40
5.4.420.0130.02319.23
5.4.410.0430.03719.42
5.4.400.0300.04319.08
5.4.390.0330.03318.93
5.4.380.0370.05318.64
5.4.370.0400.05018.50
5.4.360.0300.05718.72
5.4.350.0570.06718.46
5.4.340.0370.05318.49
5.4.320.0070.04012.45
5.4.310.0040.03912.45
5.4.300.0080.03412.45
5.4.290.0110.03612.45
5.4.280.0050.03612.34
5.4.270.0080.05512.35
5.4.260.0080.03512.35
5.4.250.0100.04112.35
5.4.240.0090.04212.35
5.4.230.0040.03912.34
5.4.220.0070.05212.34
5.4.210.0090.04612.34
5.4.200.0050.04012.34
5.4.190.0070.03612.34
5.4.180.0050.04212.33
5.4.170.0060.04012.34
5.4.160.0050.03512.34
5.4.150.0070.04712.34
5.4.140.0060.03812.02
5.4.130.0040.03812.01
5.4.120.0070.04511.97
5.4.110.0060.03511.96
5.4.100.0080.04511.96
5.4.90.0060.03711.96
5.4.80.0100.04111.96
5.4.70.0070.04311.96
5.4.60.0050.03511.96
5.4.50.0060.03411.96
5.4.40.0070.03211.95
5.4.30.0070.03311.95
5.4.20.0040.03511.95
5.4.10.0050.03411.95
5.4.00.0040.03611.44
5.3.290.0060.03812.80
5.3.280.0030.03912.71
5.3.270.0040.04012.72
5.3.260.0050.03812.72
5.3.250.0070.03512.71
5.3.240.0080.03412.72
5.3.230.0020.04112.71
5.3.220.0050.03712.68
5.3.210.0060.03812.68
5.3.200.0080.03412.68
5.3.190.0060.03712.68
5.3.180.0040.03812.68
5.3.170.0060.03612.67
5.3.160.0110.04012.67
5.3.150.0040.03812.67
5.3.140.0060.04012.66
5.3.130.0040.04012.66
5.3.120.0040.03912.65
5.3.110.0060.04312.66
5.3.100.0080.03412.12
5.3.90.0070.03712.08
5.3.80.0060.04112.08
5.3.70.0050.03812.07
5.3.60.0070.03712.06
5.3.50.0050.03812.00
5.3.40.0060.04612.00
5.3.30.0060.03511.95
5.3.20.0070.03411.72
5.3.10.0030.03611.69
5.3.00.0060.03511.68
5.2.170.0060.0389.18
5.2.160.0060.0329.18
5.2.150.0050.0329.18
5.2.140.0080.0289.17
5.2.130.0030.0319.13
5.2.120.0040.0299.13
5.2.110.0040.0299.14
5.2.100.0050.0289.14
5.2.90.0030.0309.14
5.2.80.0040.0309.13
5.2.70.0060.0299.13
5.2.60.0010.0349.09
5.2.50.0040.0309.06
5.2.40.0020.0319.03
5.2.30.0070.0269.01
5.2.20.0060.0268.99
5.2.10.0060.0288.92
5.2.00.0030.0308.78
5.1.60.0050.0238.06
5.1.50.0030.0278.06
5.1.40.0030.0268.04
5.1.30.0040.0328.39
5.1.20.0070.0248.41
5.1.10.0060.0278.14
5.1.00.0040.0258.14
5.0.50.0030.0206.61
5.0.40.0040.0186.47
5.0.30.0050.0306.29
5.0.20.0060.0166.25
5.0.10.0010.0226.23
5.0.00.0030.0326.23
4.4.90.0020.0164.78
4.4.80.0020.0164.76
4.4.70.0020.0164.76
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0060.0214.71
4.4.30.0030.0164.76
4.4.20.0010.0174.85
4.4.10.0020.0164.85
4.4.00.0020.0334.76
4.3.110.0020.0234.67
4.3.100.0010.0164.66
4.3.90.0020.0154.64
4.3.80.0040.0224.58
4.3.70.0020.0144.63
4.3.60.0020.0154.63
4.3.50.0030.0144.63
4.3.40.0030.0234.54
4.3.30.0030.0183.28
4.3.20.0020.0163.26
4.3.10.0010.0163.22
4.3.00.0030.01318.23

preferences:
47.61 ms | 401 KiB | 5 Q