3v4l.org

run code in 300+ PHP versions simultaneously
<?php $indexArray = ['a', 'b', 'c']; $assocArray = ["0" => 'a', "1" => "b", "2" => 'c']; var_dump(array_values($indexArray)); var_dump(array_values($assocArray)); if ($assocArray === array_values($assocArray)) { echo "it works"; }

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.00716.46
8.3.50.0080.00816.38
8.3.40.0100.00318.71
8.3.30.0090.00618.57
8.3.20.0040.00422.05
8.3.10.0050.00321.85
8.3.00.0090.00019.16
8.2.180.0070.00718.29
8.2.170.0040.01122.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00419.45
8.2.120.0000.00726.35
8.2.110.0030.00621.99
8.2.100.0060.00717.84
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0000.00818.04
8.2.50.0000.00818.10
8.2.40.0040.00420.47
8.2.30.0040.00819.18
8.2.20.0050.00217.99
8.2.10.0030.00518.02
8.2.00.0030.00317.98
8.1.280.0160.00725.92
8.1.270.0070.00022.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00720.86
8.1.230.0000.01118.99
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0040.00418.95
8.1.160.0040.00418.96
8.1.150.0040.00420.48
8.1.140.0040.00419.50
8.1.130.0030.00318.72
8.1.120.0000.00717.43
8.1.110.0040.00417.27
8.1.100.0040.00417.38
8.1.90.0040.00417.43
8.1.80.0030.00317.26
8.1.70.0040.00417.28
8.1.60.0060.00317.48
8.1.50.0000.00817.46
8.1.40.0040.00417.42
8.1.30.0000.00817.56
8.1.20.0080.00017.58
8.1.10.0040.00417.46
8.1.00.0050.00517.45
8.0.300.0040.00420.09
8.0.290.0000.00716.75
8.0.280.0070.00018.35
8.0.270.0030.00317.25
8.0.260.0000.00816.87
8.0.250.0070.00016.79
8.0.240.0020.00516.90
8.0.230.0100.00016.79
8.0.220.0060.00316.76
8.0.210.0000.00716.84
8.0.200.0000.00616.82
8.0.190.0080.00016.80
8.0.180.0030.00316.88
8.0.170.0030.00516.86
8.0.160.0030.00516.82
8.0.150.0050.00216.74
8.0.140.0040.00416.78
8.0.130.0030.00313.26
8.0.120.0000.00716.79
8.0.110.0040.00416.77
8.0.100.0050.00316.89
8.0.90.0050.00316.78
8.0.80.0030.01216.73
8.0.70.0000.00716.77
8.0.60.0000.00816.87
8.0.50.0000.00716.62
8.0.30.0080.01017.04
8.0.20.0110.00917.40
8.0.10.0040.00416.98
8.0.00.0040.01416.87
7.4.330.0040.00415.55
7.4.320.0030.00316.50
7.4.300.0060.00016.58
7.4.290.0030.00316.50
7.4.280.0050.00316.43
7.4.270.0030.00316.54
7.4.260.0000.00716.35
7.4.250.0040.00416.45
7.4.240.0030.00516.41
7.4.230.0040.00416.65
7.4.220.0090.00916.62
7.4.210.0060.00816.60
7.4.200.0050.00316.57
7.4.160.0080.00916.44
7.4.150.0100.00717.40
7.4.140.0110.00817.86
7.4.130.0090.01216.29
7.4.120.0130.00616.47
7.4.110.0110.00716.54
7.4.100.0210.02116.34
7.4.90.0040.01516.42
7.4.80.0100.01319.39
7.4.70.0090.00916.38
7.4.60.0070.01116.41
7.4.50.0060.00916.30
7.4.40.0130.00316.42
7.4.30.0060.01116.45
7.4.00.0070.00714.86
7.3.330.0000.00513.09
7.3.320.0000.00513.04
7.3.310.0000.00716.13
7.3.300.0070.00016.15
7.3.290.0000.00716.06
7.3.280.0100.00616.21
7.3.270.0110.00717.40
7.3.260.0080.01616.31
7.3.250.0100.01316.22
7.3.240.0100.00716.36
7.3.230.0100.01016.40
7.3.210.0090.00916.21
7.3.200.0060.01316.20
7.3.190.0000.01416.22
7.3.180.0060.01616.29
7.3.170.0120.00416.36
7.3.160.0130.00316.31
7.2.330.0090.00916.68
7.2.320.0100.00716.30
7.2.310.0100.00716.61
7.2.300.0120.00916.45
7.2.290.0120.00916.68
7.2.60.0000.01216.92
7.2.00.0070.01119.23
7.1.200.0030.01015.91
7.1.100.0040.00818.07
7.1.70.0040.00817.19
7.1.60.0270.00734.80
7.1.50.0280.00634.90
7.1.40.0190.01334.26
7.1.30.0140.01434.48
7.1.20.0180.00934.46
7.1.10.0030.01316.57
7.1.00.0050.01416.58
7.0.200.0090.00616.55
7.0.190.0090.00616.57
7.0.180.0030.01116.30
7.0.170.0070.00716.24
7.0.160.0060.00915.93
7.0.150.0070.01016.10
7.0.140.0030.01316.18
7.0.130.0090.00616.17
7.0.120.0080.00816.29
7.0.110.0070.00716.10
7.0.100.0070.00716.26
7.0.90.0030.01416.33
7.0.80.0030.01316.15
7.0.70.0100.01016.37
7.0.60.0080.01115.91
7.0.50.0100.00716.18
7.0.40.0040.01416.59
7.0.30.0080.01116.36
7.0.20.0080.00816.39
7.0.10.0040.01116.52
7.0.00.0030.01116.27

preferences:
31.55 ms | 401 KiB | 5 Q