3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('wordid' => 0, 'type' => 1); $array['guess'] = 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.0190.00016.75
8.3.50.0140.00622.83
8.3.40.0150.00618.72
8.3.30.0070.00719.09
8.3.20.0030.00620.25
8.3.10.0040.00423.66
8.3.00.0050.00319.38
8.2.180.0120.00618.13
8.2.170.0180.00022.96
8.2.160.0060.01220.37
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0000.00721.05
8.2.110.0100.00020.47
8.2.100.0040.00818.03
8.2.90.0070.00318.92
8.2.80.0030.00617.97
8.2.70.0000.00917.50
8.2.60.0040.00417.93
8.2.50.0030.00918.07
8.2.40.0050.00318.09
8.2.30.0000.00817.99
8.2.20.0040.00417.65
8.2.10.0040.00418.03
8.2.00.0000.00717.71
8.1.280.0070.01125.92
8.1.270.0000.00923.91
8.1.260.0020.00526.35
8.1.250.0000.00728.09
8.1.240.0060.00323.86
8.1.230.0040.00719.16
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0100.00317.22
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0050.00318.66
8.1.160.0080.00021.86
8.1.150.0070.00018.68
8.1.140.0040.00417.41
8.1.130.0030.00317.86
8.1.120.0030.00317.36
8.1.110.0040.00417.36
8.1.100.0030.00317.32
8.1.90.0000.00717.33
8.1.80.0030.00717.27
8.1.70.0040.00417.32
8.1.60.0030.00517.52
8.1.50.0040.00417.43
8.1.40.0000.00817.46
8.1.30.0000.00817.55
8.1.20.0000.00817.64
8.1.10.0000.00717.39
8.1.00.0040.00417.40
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0070.00018.37
8.0.270.0070.00017.05
8.0.260.0030.00317.18
8.0.250.0000.00716.87
8.0.240.0000.00716.77
8.0.230.0070.00016.81
8.0.220.0070.00016.78
8.0.210.0000.00716.81
8.0.200.0060.00016.75
8.0.190.0000.00716.88
8.0.180.0070.00016.85
8.0.170.0000.00816.85
8.0.160.0030.00316.84
8.0.150.0000.00716.79
8.0.140.0050.00316.78
8.0.130.0030.00313.30
8.0.120.0000.00816.77
8.0.110.0020.00516.79
8.0.100.0030.00316.77
8.0.90.0040.00416.66
8.0.80.0070.00716.80
8.0.70.0040.00416.69
8.0.60.0040.00416.68
8.0.50.0040.00416.86
8.0.30.0100.00817.10
8.0.20.0110.01017.40
8.0.10.0050.00316.90
8.0.00.0130.00816.79
7.4.330.0030.00315.00
7.4.320.0060.00016.49
7.4.300.0070.00016.36
7.4.290.0070.00016.40
7.4.280.0000.00916.46
7.4.270.0000.00716.41
7.4.260.0000.00716.51
7.4.250.0000.00716.53
7.4.240.0050.00216.41
7.4.230.0030.00316.32
7.4.220.0100.00716.52
7.4.210.0040.01116.45
7.4.200.0000.00716.55
7.4.160.0080.00816.18
7.4.150.0200.00317.40
7.4.140.0090.00917.86
7.4.130.0110.00916.62
7.4.120.0070.01016.45
7.4.110.0130.00316.57
7.4.100.0150.00316.56
7.4.90.0060.01516.49
7.4.80.0110.01119.39
7.4.70.0070.01016.23
7.4.60.0080.00816.48
7.4.50.0080.00016.43
7.4.40.0150.00316.30
7.4.30.0120.00416.49
7.4.00.0040.00714.70
7.3.330.0050.00013.01
7.3.320.0020.00212.96
7.3.310.0000.00716.19
7.3.300.0030.00316.27
7.3.290.0060.00916.28
7.3.280.0100.00716.25
7.3.270.0090.00917.40
7.3.260.0060.01216.64
7.3.250.0120.00516.49
7.3.240.0120.00916.41
7.3.230.0030.01316.41
7.3.210.0110.00716.28
7.3.200.0110.00619.39
7.3.190.0090.00616.23
7.3.180.0140.00316.19
7.3.170.0110.00416.27
7.3.160.0060.00916.36
7.3.10.0230.00416.63
7.3.00.0170.01016.50
7.2.330.0070.01116.64
7.2.320.0090.01216.40
7.2.310.0120.00916.43
7.2.300.0100.01416.73
7.2.290.0040.01116.46
7.2.130.0140.01016.72
7.2.120.0130.00116.43
7.2.110.0050.00916.43
7.2.100.0180.00716.34
7.2.90.0060.01516.44
7.2.80.0120.00816.41
7.2.70.0090.00916.50
7.2.60.0160.00316.38
7.2.50.0080.01616.81
7.2.40.0080.01416.82
7.2.30.0100.00316.21
7.2.20.0090.00616.27
7.2.10.0130.00616.25
7.2.00.0090.00617.78
7.1.250.0110.00715.61
7.1.100.0060.00618.15
7.1.70.0000.00917.13
7.1.60.0030.02119.46
7.1.50.0110.00717.02
7.1.00.0030.07022.30
7.0.200.0040.00416.73
7.0.140.0030.07322.00
7.0.60.0100.07319.87
7.0.50.0000.06317.78
7.0.40.0070.04320.04
7.0.30.0200.03720.12
7.0.20.0170.04020.12
7.0.10.0370.06020.13
7.0.00.0030.06020.08
5.6.280.0100.06721.04
5.6.210.0030.08020.54
5.6.200.0130.07018.10
5.6.190.0170.07320.39
5.6.180.0230.04320.40
5.6.170.0270.07720.27
5.6.160.0170.06720.50
5.6.150.0130.07318.19
5.6.140.0200.05318.10
5.6.130.0130.04318.10
5.6.120.0070.04320.98
5.6.110.0070.07020.88
5.6.100.0070.08721.01
5.6.90.0030.04021.08
5.6.80.0130.06320.40
5.6.70.0170.04320.27
5.5.350.0300.07020.46
5.5.340.0100.04018.00
5.5.330.0070.04020.09
5.5.320.0000.04320.07
5.5.310.0300.07320.13
5.5.300.0100.03717.91
5.5.290.0070.04017.98
5.5.280.0070.08020.76
5.5.270.0070.08020.79
5.5.260.0070.04020.79
5.5.250.0070.08720.57
5.5.240.0030.07720.07
5.4.450.0200.05019.21
5.4.440.0330.04319.41
5.4.430.0370.04019.40
5.4.420.0100.06019.24
5.4.410.0270.04319.10
5.4.400.0500.03319.07
5.4.390.0400.04019.13
5.4.380.0330.05318.49
5.4.370.0470.04018.67
5.4.360.0330.06018.61
5.4.350.0330.05018.52
5.4.340.0300.05318.67
5.4.320.0050.04112.45
5.4.310.0050.04112.45
5.4.300.0080.03612.45
5.4.290.0060.04012.45
5.4.280.0050.03612.34
5.4.270.0100.03112.35
5.4.260.0100.03912.35
5.4.250.0080.04612.34
5.4.240.0050.04212.35
5.4.230.0040.03812.34
5.4.220.0090.03812.34
5.4.210.0050.04812.34
5.4.200.0060.03612.34
5.4.190.0060.03412.33
5.4.180.0050.03912.34
5.4.170.0120.03312.34
5.4.160.0070.04312.34
5.4.150.0070.04012.34
5.4.140.0060.04112.02
5.4.130.0050.03512.01
5.4.120.0020.03711.97
5.4.110.0050.03411.96
5.4.100.0060.03311.96
5.4.90.0100.03311.96
5.4.80.0060.03711.96
5.4.70.0050.03511.96
5.4.60.0050.03611.96
5.4.50.0060.03811.96
5.4.40.0080.03611.95
5.4.30.0040.03711.95
5.4.20.0080.03911.95
5.4.10.0080.03711.95
5.4.00.0030.03711.43
5.3.290.0050.04012.80
5.3.280.0060.03712.71
5.3.270.0050.03812.72
5.3.260.0050.03912.72
5.3.250.0050.04712.72
5.3.240.0080.03512.72
5.3.230.0090.03912.71
5.3.220.0080.03512.68
5.3.210.0080.03812.68
5.3.200.0080.03312.68
5.3.190.0070.03512.67
5.3.180.0070.03412.67
5.3.170.0040.03712.67
5.3.160.0060.03512.67
5.3.150.0070.03712.67
5.3.140.0080.03512.66
5.3.130.0040.04112.65
5.3.120.0070.03712.66
5.3.110.0080.03812.66
5.3.100.0070.03812.12
5.3.90.0050.03712.08
5.3.80.0080.04112.07
5.3.70.0080.03312.07
5.3.60.0090.03312.06
5.3.50.0060.03512.00
5.3.40.0070.03312.00
5.3.30.0060.04011.94
5.3.20.0050.03911.72
5.3.10.0040.03611.69
5.3.00.0060.03511.68
5.2.170.0080.0389.18
5.2.160.0070.0269.18
5.2.150.0040.0309.17
5.2.140.0040.0319.17
5.2.130.0030.0309.13
5.2.120.0040.0299.13
5.2.110.0050.0289.14
5.2.100.0030.0309.14
5.2.90.0050.0299.14
5.2.80.0060.0329.14
5.2.70.0070.0279.13
5.2.60.0040.0309.09
5.2.50.0030.0329.06
5.2.40.0050.0279.03
5.2.30.0060.0349.01
5.2.20.0070.0439.00
5.2.10.0050.0278.92
5.2.00.0030.0308.78
5.1.60.0050.0228.06
5.1.50.0020.0278.06
5.1.40.0070.0338.04
5.1.30.0030.0378.39
5.1.20.0060.0248.41
5.1.10.0040.0258.13
5.1.00.0040.0258.14
5.0.50.0040.0196.61
5.0.40.0070.0156.47
5.0.30.0020.0326.29
5.0.20.0040.0196.25
5.0.10.0050.0186.23
5.0.00.0060.0286.23
4.4.90.0030.0154.78
4.4.80.0000.0184.76
4.4.70.0030.0154.76
4.4.60.0010.0174.75
4.4.50.0020.0174.77
4.4.40.0040.0284.71
4.4.30.0040.0144.76
4.4.20.0050.0134.84
4.4.10.0050.0134.85
4.4.00.0070.0294.75
4.3.110.0030.0154.67
4.3.100.0060.0274.67
4.3.90.0050.0114.64
4.3.80.0050.0334.58
4.3.70.0050.0284.63
4.3.60.0050.0124.63
4.3.50.0010.0164.63
4.3.40.0030.0234.54
4.3.30.0020.0153.28
4.3.20.0020.0233.26
4.3.10.0020.0153.22
4.3.00.0000.02018.23

preferences:
50.06 ms | 400 KiB | 5 Q