3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $x = array ( 4 => array ( "locationIds" => array ( '1' ), "contentIds" => array ( '2' ) ), 2 => array ( "locationIds" => array ( '3' ), "contentIds" => array ( 4 ) ) ); foreach( $x as $i => $v ) echo $i . ' => ' . $v . "\n";

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.0140.00718.56
8.3.50.0120.00521.99
8.3.40.0120.00318.79
8.3.30.0070.00718.63
8.3.20.0000.00818.68
8.3.10.0030.00520.66
8.3.00.0080.00023.65
8.2.180.0180.00418.29
8.2.170.0110.00422.96
8.2.160.0130.00620.39
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00819.50
8.2.110.0060.00319.38
8.2.100.0090.00317.88
8.2.90.0000.00719.22
8.2.80.0080.00017.97
8.2.70.0110.00017.50
8.2.60.0100.00017.80
8.2.50.0060.00318.07
8.2.40.0100.00018.16
8.2.30.0000.00919.77
8.2.20.0040.00417.58
8.2.10.0000.00917.81
8.2.00.0060.00317.66
8.1.280.0070.00725.92
8.1.270.0030.00723.99
8.1.260.0100.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00324.02
8.1.230.0080.00417.42
8.1.220.0080.00017.77
8.1.210.0000.00818.77
8.1.200.0120.00017.13
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00020.38
8.1.160.0000.00822.06
8.1.150.0000.00818.64
8.1.140.0040.00417.46
8.1.130.0030.00317.82
8.1.120.0020.00517.38
8.1.110.0000.00817.29
8.1.100.0000.00717.47
8.1.90.0070.00017.46
8.1.80.0000.00817.43
8.1.70.0050.00317.41
8.1.60.0040.00417.64
8.1.50.0050.00317.47
8.1.40.0040.00417.53
8.1.30.0030.00617.56
8.1.20.0040.00417.60
8.1.10.0040.00417.52
8.1.00.0000.00817.47
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0040.00417.32
8.0.260.0030.00616.79
8.0.250.0070.00017.07
8.0.240.0100.00017.04
8.0.230.0040.00417.02
8.0.220.0030.00316.86
8.0.210.0000.00716.88
8.0.200.0000.00717.00
8.0.190.0000.00716.98
8.0.180.0000.00916.99
8.0.170.0040.00416.95
8.0.160.0000.00716.90
8.0.150.0000.00816.91
8.0.140.0050.00216.90
8.0.130.0030.00313.40
8.0.120.0000.00716.80
8.0.110.0000.00916.98
8.0.100.0080.00016.99
8.0.90.0050.00216.93
8.0.80.0090.00616.83
8.0.70.0000.00716.83
8.0.60.0000.00816.75
8.0.50.0000.00716.98
8.0.30.0110.00917.28
8.0.20.0110.00817.40
8.0.10.0040.00417.19
8.0.00.0090.01116.60
7.4.330.0060.00014.69
7.4.320.0030.00316.50
7.4.300.0030.00316.48
7.4.290.0070.00016.65
7.4.280.0040.00416.36
7.4.270.0070.00016.46
7.4.260.0050.00013.29
7.4.250.0040.00416.45
7.4.240.0000.00716.61
7.4.230.0000.00816.39
7.4.220.0000.01516.55
7.4.210.0080.00816.50
7.4.200.0040.00416.41
7.4.190.0030.00316.41
7.4.160.0120.00916.54
7.4.150.0090.00917.40
7.4.140.0160.00217.86
7.4.130.0080.00916.44
7.4.120.0120.00516.59
7.4.110.0070.01016.39
7.4.100.0160.00616.53
7.4.90.0030.01416.69
7.4.80.0070.01019.04
7.4.70.0130.00716.43
7.4.60.0070.01116.35
7.4.50.0030.00616.44
7.4.40.0100.00722.27
7.4.30.0130.01116.47
7.4.00.0100.00714.65
7.3.330.0000.00613.21
7.3.320.0000.00613.23
7.3.310.0030.00316.27
7.3.300.0060.00016.16
7.3.290.0140.00016.32
7.3.280.0090.00716.28
7.3.270.0130.00317.40
7.3.260.0130.00518.24
7.3.250.0050.01616.51
7.3.240.0070.01116.35
7.3.230.0120.00616.56
7.3.210.0140.00316.48
7.3.200.0070.01019.39
7.3.190.0100.00616.63
7.3.180.0080.00816.47
7.3.170.0090.00616.50
7.3.160.0060.00916.38
7.3.120.0090.00614.92
7.3.110.0100.00314.79
7.3.100.0030.01014.89
7.3.90.0100.00714.95
7.3.80.0000.01514.89
7.3.70.0090.00614.95
7.3.60.0070.00414.55
7.3.50.0040.00714.74
7.3.40.0070.00314.90
7.3.30.0090.00614.90
7.3.20.0110.00416.79
7.3.10.0090.00616.64
7.3.00.0090.00616.44
7.2.330.0080.00916.61
7.2.320.0080.01116.85
7.2.310.0130.01016.68
7.2.300.0090.00816.70
7.2.290.0120.00916.42
7.2.240.0090.00915.01
7.2.230.0070.01115.00
7.2.220.0070.01015.20
7.2.210.0030.01014.95
7.2.200.0080.00414.96
7.2.190.0030.01315.11
7.2.180.0060.00914.63
7.2.170.0070.01115.19
7.2.160.0070.01015.01
7.2.150.0120.00016.86
7.2.140.0030.00616.85
7.2.130.0000.01117.09
7.2.120.0060.00616.70
7.2.110.0050.00516.99
7.2.100.0100.00616.97
7.2.90.0030.01016.86
7.2.80.0070.00717.02
7.2.70.0030.00616.66
7.2.60.0060.00616.70
7.2.50.0080.00817.00
7.2.40.0060.00616.98
7.2.30.0070.00717.00
7.2.20.0070.00817.08
7.2.10.0030.00916.68
7.2.00.0000.01318.09
7.1.330.0060.00615.90
7.1.320.0040.00715.82
7.1.310.0080.00815.84
7.1.300.0140.00015.73
7.1.290.0040.00815.63
7.1.280.0080.00615.79
7.1.270.0070.00715.60
7.1.260.0060.00915.72
7.1.250.0100.00715.81
7.1.100.0040.00818.05
7.1.70.0000.00717.11
7.1.60.0030.02119.40
7.1.50.0070.01416.91
7.1.00.0030.07722.43
7.0.200.0050.00316.63
7.0.140.0130.06321.95
7.0.60.0100.05019.82
7.0.50.0130.07017.82
7.0.40.0100.04717.78
7.0.30.0100.08017.69
7.0.20.0000.08017.79
7.0.10.0030.08317.71
7.0.00.0030.04317.77
5.6.280.0070.07321.01
5.6.210.0070.08720.50
5.6.200.0000.04718.15
5.6.190.0100.05718.09
5.6.180.0070.03718.25
5.6.170.0130.07318.22
5.6.160.0030.08018.18
5.6.150.0130.08018.22
5.6.140.0070.04318.15
5.6.130.0100.05018.09
5.6.120.0070.08318.21
5.6.110.0100.08318.17
5.6.100.0130.07318.20
5.6.90.0170.05718.10
5.6.80.0070.06317.55
5.6.70.0030.08317.47
5.6.60.0030.07717.46
5.6.50.0230.03017.60
5.6.40.0100.04717.55
5.6.30.0030.05317.57
5.6.20.0030.06017.44
5.6.10.0030.06017.57
5.6.00.0130.07317.45
5.5.350.4230.04020.38
5.5.340.0100.08017.97
5.5.330.0130.07317.92
5.5.320.0030.08717.98
5.5.310.0130.07717.91
5.5.300.0130.06017.89
5.5.290.0100.07717.91
5.5.280.0070.08718.02
5.5.270.0130.06717.96
5.5.260.0170.06017.91
5.5.250.0000.06317.79
5.5.240.0100.05017.33
5.5.230.0070.04717.28
5.5.220.0070.05317.28
5.5.210.0030.08717.39
5.5.200.0070.07717.32
5.5.190.0030.06317.27
5.5.180.0070.08317.27
5.5.160.0100.07717.36
5.5.150.0070.04317.32
5.5.140.0000.04317.26
5.5.130.0070.04717.36
5.5.120.0070.06317.23
5.5.110.0070.06317.25
5.5.100.0100.07317.26
5.5.90.0130.03017.17
5.5.80.0170.06317.13
5.5.70.0100.06017.13
5.5.60.0070.05017.25
5.5.50.0170.04017.13
5.5.40.0100.04317.20
5.5.30.0100.03317.18
5.5.20.0230.06017.25
5.5.10.0070.06317.21
5.5.00.0070.07717.24
5.4.450.0070.05319.32
5.4.440.0000.06019.42
5.4.430.0070.05319.30
5.4.420.0030.06719.40
5.4.410.0030.05019.02
5.4.400.0100.07719.00
5.4.390.0170.05319.14
5.4.380.0070.08019.13
5.4.370.0130.07319.01
5.4.360.0070.07719.00
5.4.350.0170.03319.12
5.4.340.0030.08318.89
5.4.320.0100.07718.95
5.4.310.0000.05719.01
5.4.300.0030.04019.12
5.4.290.0070.03719.20
5.4.280.0030.07718.95
5.4.270.0170.03718.82
5.4.260.0130.07018.96
5.4.250.0130.05719.00
5.4.240.0100.08019.02
5.4.230.0030.08319.06
5.4.220.0100.07319.08
5.4.210.0070.07719.07
5.4.200.0100.07018.88
5.4.190.0070.05018.95
5.4.180.0100.04019.08
5.4.170.0130.07018.98
5.4.160.0130.07019.02
5.4.150.0070.06719.02
5.4.140.0100.07016.18
5.4.130.0100.05716.29
5.4.120.0100.05016.33
5.4.110.0130.06316.29
5.4.100.0170.06016.43
5.4.90.0030.05316.38
5.4.80.0070.06316.26
5.4.70.0070.07016.26
5.4.60.0100.05016.43
5.4.50.0030.07716.30
5.4.40.0070.04716.33
5.4.30.0170.06316.38
5.4.20.0070.07016.26
5.4.10.0100.04716.32
5.4.00.0070.04715.70
5.3.290.0030.06714.62
5.3.280.0070.04714.41
5.3.270.0070.08014.52
5.3.260.0070.04714.54
5.3.250.0100.05314.46
5.3.240.0100.07014.57
5.3.230.0070.04714.53
5.3.220.0130.03014.38
5.3.210.0030.07014.56
5.3.200.0100.05714.64
5.3.190.0070.04014.42
5.3.180.0070.06714.34
5.3.170.0100.05314.52
5.3.160.0100.04314.40
5.3.150.0070.06014.50
5.3.140.0000.04714.33
5.3.130.0030.06014.51
5.3.120.0100.05714.47
5.3.110.0170.05314.32
5.3.100.0030.06013.89
5.3.90.0000.07013.98
5.3.80.0100.05313.79
5.3.70.0070.07013.92
5.3.60.0000.08013.98
5.3.50.0100.04314.02
5.3.40.0070.07313.72
5.3.30.0070.03713.89
5.3.20.0030.03713.77
5.3.10.0130.06313.57
5.3.00.0030.07313.57
5.2.170.0100.03011.12
5.2.160.0030.05711.07
5.2.150.0070.03010.97
5.2.140.0030.03711.04
5.2.130.0000.05011.05
5.2.120.0030.06011.06
5.2.110.0000.06311.13
5.2.100.0030.03711.07
5.2.90.0030.05011.24
5.2.80.0070.06311.02
5.2.70.0000.05010.87
5.2.60.0030.05710.88
5.2.50.0000.05711.02
5.2.40.0030.03010.96
5.2.30.0100.04311.11
5.2.20.0000.03310.87
5.2.10.0070.03310.87
5.2.00.0070.06010.67
5.1.60.0100.0339.82
5.1.50.0030.0539.98
5.1.40.0070.05010.04
5.1.30.0100.02010.34
5.1.20.0070.03010.36
5.1.10.0000.04310.27
5.1.00.0070.05310.11
5.0.50.0070.0378.48
5.0.40.0030.0238.50
5.0.30.0000.0578.19
5.0.20.0030.0378.17
5.0.10.0030.0338.21
5.0.00.0070.0638.14
4.4.90.0000.0278.04
4.4.80.0070.0208.04
4.4.70.0030.0338.04
4.4.60.0030.0308.04
4.4.50.0030.0338.04
4.4.40.0000.0378.04
4.4.30.0030.0378.04
4.4.20.0030.0338.04
4.4.10.0000.0278.04
4.4.00.0030.0308.04
4.3.110.0000.0408.04
4.3.100.0000.0378.04
4.3.90.0030.0338.04
4.3.80.0030.0478.04
4.3.70.0030.0308.04
4.3.60.0000.0308.04
4.3.50.0000.0338.04
4.3.40.0030.0438.04
4.3.30.0070.0308.04
4.3.20.0000.0238.04
4.3.10.0000.0308.04
4.3.00.0030.0338.04

preferences:
58.89 ms | 401 KiB | 5 Q