3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( 1 => array( "contentIds" => array( 12, 13, 14 ), "locationIds" => array( 24 ) ), 2 => array( "contentIds" => array( 12, 13, 14 ), "locationIds" => array( 24 ) ) ); var_dump( array_flip( $test ) );

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.70.0000.01516.63
8.3.60.0140.00716.63
8.3.50.0140.00917.41
8.3.40.0000.01518.62
8.3.30.0140.00018.35
8.3.20.0040.00418.42
8.3.10.0060.00318.66
8.3.00.0050.00319.13
8.2.180.0070.01016.38
8.2.170.0110.00322.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00418.77
8.2.110.0050.00520.83
8.2.100.0030.00917.84
8.2.90.0000.01019.34
8.2.80.0060.00319.38
8.2.70.0050.00317.38
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0030.00518.09
8.2.30.0000.00817.95
8.2.20.0000.00717.45
8.2.10.0030.00517.72
8.2.00.0080.00017.54
8.1.280.0080.01225.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00624.02
8.1.230.0000.01020.88
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0000.00817.39
8.1.180.0080.00018.10
8.1.170.0080.00018.76
8.1.160.0040.00418.82
8.1.150.0000.00718.48
8.1.140.0040.00417.30
8.1.130.0070.00017.75
8.1.120.0000.00717.30
8.1.110.0000.00717.39
8.1.100.0000.00817.34
8.1.90.0000.00817.34
8.1.80.0000.00817.39
8.1.70.0000.00717.30
8.1.60.0000.00717.45
8.1.50.0030.00517.38
8.1.40.0040.00417.47
8.1.30.0000.00917.51
8.1.20.0030.00517.57
8.1.10.0000.00717.43
8.1.00.0040.00417.34
8.0.300.0080.00019.86
8.0.290.0000.00716.63
8.0.280.0030.00318.37
8.0.270.0030.00317.18
8.0.260.0040.00416.80
8.0.250.0040.00417.00
8.0.240.0040.00416.85
8.0.230.0070.00016.92
8.0.220.0030.00316.89
8.0.210.0040.00416.73
8.0.200.0060.00016.81
8.0.190.0070.00416.78
8.0.180.0040.00416.88
8.0.170.0100.00016.90
8.0.160.0030.00516.79
8.0.150.0040.00416.84
8.0.140.0000.00916.77
8.0.130.0030.00313.31
8.0.120.0040.00416.85
8.0.110.0040.00416.77
8.0.100.0000.00716.75
8.0.90.0040.00416.94
8.0.80.0070.00716.88
8.0.70.0080.00016.76
8.0.60.0040.00416.92
8.0.50.0000.00716.90
8.0.30.0110.01516.75
8.0.20.0120.00916.88
8.0.10.0040.00417.03
8.0.00.0120.00916.62
7.4.330.0000.00512.92
7.4.320.0000.00616.53
7.4.300.0030.00316.56
7.4.290.0000.01116.44
7.4.280.0050.00516.45
7.4.270.0030.00516.52
7.4.260.0030.00313.23
7.4.250.0040.00416.50
7.4.240.0020.00516.45
7.4.230.0070.00016.59
7.4.220.0030.01616.45
7.4.210.0090.00816.50
7.4.200.0020.00516.22
7.4.190.0030.00316.48
7.4.160.0140.00816.45
7.4.150.0140.00316.44
7.4.140.0090.00916.34
7.4.130.0140.00616.31
7.4.120.0120.00716.40
7.4.110.0060.01116.38
7.4.100.0210.00316.40
7.4.90.0150.00316.58
7.4.80.0110.00619.39
7.4.70.0060.01016.57
7.4.60.0060.01316.47
7.4.50.0040.00816.25
7.4.40.0040.01516.36
7.4.30.0130.00316.46
7.4.00.0040.01114.77
7.3.330.0000.00612.90
7.3.320.0000.00513.09
7.3.310.0080.00016.28
7.3.300.0060.00016.20
7.3.290.0080.00816.14
7.3.280.0070.01016.18
7.3.270.0140.00416.41
7.3.260.0140.00316.32
7.3.250.0100.01016.33
7.3.240.0070.01016.22
7.3.230.0110.00716.34
7.3.210.0060.00916.30
7.3.200.0140.00716.34
7.3.190.0070.01016.15
7.3.180.0110.00516.22
7.3.170.0060.01016.32
7.3.160.0100.01016.16
7.3.120.0100.00714.56
7.2.330.0090.01016.27
7.2.320.0090.01316.58
7.2.310.0080.00916.33
7.2.300.0070.01016.44
7.2.290.0090.00616.41
7.1.70.0000.00816.96
7.1.60.0100.01419.40
7.1.50.0030.01716.57
7.1.00.0030.03322.43
7.0.200.0070.00316.68
7.0.140.0070.06721.99
7.0.120.0000.07721.97
7.0.60.0030.09319.80
7.0.50.0100.08017.80
7.0.40.0100.08720.20
7.0.30.0230.05020.30
7.0.20.0330.07320.13
7.0.10.0230.07720.12
7.0.00.0100.08020.30
5.6.210.0100.05320.55
5.6.200.0100.03718.22
5.6.190.0070.04320.67
5.6.180.0230.05720.55
5.6.170.0230.05720.48
5.6.160.0070.06020.71
5.6.150.0070.07318.09
5.6.140.0130.07318.17
5.6.130.0000.08718.18
5.6.120.0070.05721.01
5.6.110.0230.03321.09
5.6.100.0070.05020.95
5.6.90.0100.08321.09
5.6.80.0170.07320.41
5.6.70.0270.07320.37
5.5.350.0230.03720.40
5.5.340.0130.03017.90
5.5.330.0070.08320.13
5.5.320.0170.05320.17
5.5.310.0300.06720.20
5.5.300.0000.04317.96
5.5.290.0100.03318.02
5.5.280.0130.06020.61
5.5.270.0070.04720.79
5.5.260.0100.04020.72
5.5.250.0130.07720.49
5.5.240.0030.03720.03
5.4.450.0070.04019.11
5.4.440.0100.05019.50
5.4.430.0030.05019.40
5.4.420.0030.08019.11
5.4.410.0030.05719.38
5.4.400.0030.04019.18
5.4.390.0030.05019.08
5.4.380.0070.04019.11
5.4.370.0030.07719.02
5.4.360.0030.08019.18
5.4.350.0070.06719.00
5.4.340.0030.05719.10
5.4.320.0000.05319.18
5.4.310.0070.03719.18
5.4.300.0130.06719.14
5.4.290.0030.07719.16
5.4.280.0100.07019.00
5.4.270.0030.05019.08
5.4.260.0070.04319.07
5.4.250.0100.07319.17
5.4.240.0030.06719.08
5.4.230.0030.07719.09
5.4.220.0070.05319.13
5.4.210.0100.04318.91
5.4.200.0100.07318.91
5.4.190.0100.04719.13
5.4.180.0030.07319.16
5.4.170.0130.07019.07
5.4.160.0070.08019.16
5.4.150.0130.07019.05
5.4.140.0070.04316.25
5.4.130.0100.06716.16
5.4.120.0100.07016.25
5.4.110.0070.06316.35
5.4.100.0030.05316.26
5.4.90.0070.03316.36
5.4.80.0000.05316.32
5.4.70.0030.06016.35
5.4.60.0070.04016.38
5.4.50.0100.06016.34
5.4.40.0030.04716.38
5.4.30.0070.06716.20
5.4.20.0030.04716.38
5.4.10.0030.05016.22
5.4.00.0000.08015.63
5.3.290.0100.07314.60
5.3.280.0030.05314.49
5.3.270.0070.07314.57
5.3.260.0100.07314.53
5.3.250.0000.05014.54
5.3.240.0100.07314.53
5.3.230.0070.06714.41
5.3.220.0100.03314.50
5.3.210.0030.04014.35
5.3.200.0130.06714.52
5.3.190.0070.03314.52
5.3.180.0170.06714.35
5.3.170.0070.07314.50
5.3.160.0070.07314.54
5.3.150.0030.08314.45
5.3.140.0000.06314.37
5.3.130.0070.05014.47
5.3.120.0100.07314.48
5.3.110.0100.06014.34
5.3.100.0030.06313.97
5.3.90.0070.07713.94
5.3.80.0000.04713.95
5.3.70.0030.06313.85
5.3.60.0030.05713.98
5.3.50.0000.06713.76
5.3.40.0100.03013.88
5.3.30.0030.04013.70
5.3.20.0130.04313.50
5.3.10.0030.05713.47
5.3.00.0000.04013.61
5.2.170.0070.02711.16
5.2.160.0000.03011.09
5.2.150.0030.05011.13
5.2.140.0100.02711.21
5.2.130.0070.04711.18
5.2.120.0070.06010.99
5.2.110.0030.03711.03
5.2.100.0070.03311.04
5.2.90.0070.02711.07
5.2.80.0070.02711.02
5.2.70.0030.06011.10
5.2.60.0000.03711.04
5.2.50.0030.05310.91
5.2.40.0030.03710.84
5.2.30.0030.05710.95
5.2.20.0070.06010.78
5.2.10.0030.06310.86
5.2.00.0070.05710.66
5.1.60.0070.0439.97
5.1.50.0030.0309.98
5.1.40.0000.04310.13
5.1.30.0070.05710.36
5.1.20.0100.04010.36
5.1.10.0000.05310.03
5.1.00.0070.05710.08
5.0.50.0030.0438.69
5.0.40.0030.0438.31
5.0.30.0030.0478.20
5.0.20.0030.0478.24
5.0.10.0000.0478.20
5.0.00.0030.0538.20
4.4.90.0000.0278.20
4.4.80.0030.0138.20
4.4.70.0000.0308.20
4.4.60.0030.0208.20
4.4.50.0000.0378.20
4.4.40.0030.0508.20
4.4.30.0030.0338.20
4.4.20.0000.0278.20
4.4.10.0130.0278.20
4.4.00.0030.0378.20
4.3.110.0000.0378.20
4.3.100.0030.0338.20
4.3.90.0030.0378.20
4.3.80.0000.0308.20
4.3.70.0070.0108.20
4.3.60.0030.0338.20
4.3.50.0070.0238.20
4.3.40.0000.0308.20
4.3.30.0030.0338.20
4.3.20.0000.0378.20
4.3.10.0000.0238.20
4.3.00.0000.0238.20

preferences:
38.91 ms | 401 KiB | 5 Q