3v4l.org

run code in 300+ PHP versions simultaneously
<?php $schema = Array( Array("prestation_1" => 123, "prestataire_1" => 321, "prestation_2" => 456, "prestataire_2" => 654), Array("prestation_1" => 123, "prestataire_1" => 321, "prestation_2" => 456, "prestataire_2" => 654), Array("prestation_1" => 123, "prestataire_1" => 3241, "prestation_2" => 4956, "prestataire_2" => 654), Array("prestation_1" => 123, "prestataire_1" => 321, "prestation_2" => 456, "prestataire_2" => 654) ); function check( $array) { $array=array_values($array); $k=0; for($i=0;$i<count($array);$i++) { if(count($array)-1 > $i) { if($array[$i] == $array[$i]) $k=0; else $k=1; } } if($k == 0) return $array[0]; else return array(); } print_r(check($schema)) ;

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.30
8.3.50.0120.00321.15
8.3.40.0040.01118.53
8.3.30.0120.00619.10
8.3.20.0050.00320.22
8.3.10.0090.00022.09
8.3.00.0080.00022.44
8.2.180.0080.01216.88
8.2.170.0150.00022.96
8.2.160.0030.01020.35
8.2.150.0030.00624.18
8.2.140.0120.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0030.00619.36
8.2.100.0120.00017.97
8.2.90.0040.00419.17
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0040.00417.91
8.2.50.0000.00918.07
8.2.40.0060.00318.22
8.2.30.0040.00418.09
8.2.20.0040.00417.64
8.2.10.0050.00317.56
8.2.00.0040.00417.73
8.1.280.0200.00025.92
8.1.270.0080.00020.31
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0050.00522.19
8.1.230.0060.00618.96
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0050.00318.75
8.1.170.0000.00918.64
8.1.160.0050.00322.13
8.1.150.0060.00318.49
8.1.140.0070.00017.45
8.1.130.0000.00717.78
8.1.120.0040.00417.47
8.1.110.0040.00417.33
8.1.100.0050.00317.49
8.1.90.0040.00417.36
8.1.80.0030.00317.35
8.1.70.0040.00417.43
8.1.60.0060.00317.61
8.1.50.0000.00717.48
8.1.40.0000.00917.54
8.1.30.0040.00417.59
8.1.20.0000.00817.70
8.1.10.0040.00417.40
8.1.00.0040.00417.36
8.0.300.0040.00420.15
8.0.290.0040.00416.75
8.0.280.0000.00918.32
8.0.270.0030.00317.30
8.0.260.0000.00616.84
8.0.250.0000.00716.99
8.0.240.0030.00516.98
8.0.230.0030.00316.97
8.0.220.0030.00316.88
8.0.210.0000.00716.90
8.0.200.0040.00416.85
8.0.190.0030.00516.91
8.0.180.0000.00716.85
8.0.170.0000.00716.82
8.0.160.0000.00816.87
8.0.150.0030.00516.91
8.0.140.0000.00716.75
8.0.130.0050.00013.34
8.0.120.0070.00016.94
8.0.110.0040.00416.75
8.0.100.0080.00016.95
8.0.90.0040.00316.93
8.0.80.0030.01716.90
8.0.70.0000.00716.93
8.0.60.0000.00716.73
8.0.50.0030.00316.77
8.0.30.0150.00816.90
8.0.20.0100.01017.40
8.0.10.0000.00716.91
8.0.00.0140.00716.79
7.4.330.0000.00515.00
7.4.320.0060.00016.61
7.4.300.0000.00716.57
7.4.290.0070.00016.60
7.4.280.0060.00016.59
7.4.270.0000.00716.55
7.4.260.0000.00716.60
7.4.250.0080.00016.48
7.4.240.0050.00216.52
7.4.230.0030.00316.58
7.4.220.0040.01316.42
7.4.210.0050.01116.58
7.4.200.0030.00316.58
7.4.190.0040.00416.64
7.4.160.0110.01116.45
7.4.150.0160.00617.40
7.4.140.0140.00517.86
7.4.130.0080.00816.50
7.4.120.0050.01116.54
7.4.110.0120.00916.38
7.4.100.0030.01616.33
7.4.90.0090.01416.43
7.4.80.0130.00719.39
7.4.70.0090.00616.51
7.4.60.0030.01316.54
7.4.50.0000.00416.36
7.4.40.0030.01022.77
7.4.30.0060.00916.48
7.4.00.0130.00315.09
7.3.330.0050.00013.19
7.3.320.0030.00213.38
7.3.310.0040.00416.41
7.3.300.0000.00616.32
7.3.290.0060.00916.32
7.3.280.0130.00616.33
7.3.270.0100.00717.40
7.3.260.0150.00416.47
7.3.250.0110.00616.52
7.3.240.0070.01416.59
7.3.230.0100.01016.55
7.3.210.0030.01516.25
7.3.200.0160.00019.39
7.3.190.0100.01216.45
7.3.180.0070.00916.36
7.3.170.0160.00016.66
7.3.160.0100.00616.61
7.3.120.0140.00315.07
7.3.10.0030.01516.51
7.3.00.0030.01416.56
7.2.330.0160.00016.52
7.2.320.0120.00616.73
7.2.310.0120.00416.55
7.2.300.0080.00816.46
7.2.290.0120.00616.81
7.2.130.0000.01416.67
7.2.120.0090.00616.59
7.2.110.0540.00516.49
7.2.100.0100.00616.95
7.2.90.0070.00316.86
7.2.80.0030.01216.65
7.2.70.0030.00916.83
7.2.60.0090.00616.84
7.2.50.0060.00916.69
7.2.40.0100.00716.94
7.2.30.0140.00016.79
7.2.20.0090.00016.85
7.2.10.0030.01016.89
7.2.00.0040.00918.12
7.1.250.0000.00815.82
7.1.240.0070.00415.96
7.1.230.0000.01515.99
7.1.220.0030.01015.52
7.1.210.0030.01015.79
7.1.200.0060.00515.73
7.1.190.0040.01115.68
7.1.180.0070.00715.69
7.1.170.0070.00715.67
7.1.160.0060.00315.84
7.1.150.0030.00715.74
7.1.140.0070.00715.87
7.1.130.0070.00315.97
7.1.120.0040.00815.67
7.1.110.0070.00715.58
7.1.100.0050.00816.88
7.1.90.0060.00615.50
7.1.80.0040.01115.85
7.1.70.0070.00116.50
7.1.60.0100.00717.79
7.1.50.0130.01225.27
7.1.40.0070.00715.48
7.1.30.0060.00615.59
7.1.20.0000.01115.55
7.1.10.0040.01115.91
7.1.00.0030.02519.15
7.0.330.0070.00715.46
7.0.320.0100.00315.40
7.0.310.0030.00715.48
7.0.300.0100.00315.27
7.0.290.0040.00715.53
7.0.280.0090.00315.46
7.0.270.0100.00015.30
7.0.260.0040.00815.13
7.0.250.0070.00015.12
7.0.240.0090.00315.29
7.0.230.0090.00315.66
7.0.220.0040.00415.52
7.0.210.0100.00315.19
7.0.200.0030.00915.91
7.0.190.0000.01415.44
7.0.180.0070.00715.50
7.0.170.0000.01215.48
7.0.160.0070.00315.40
7.0.150.0030.00515.48
7.0.140.0020.04318.65
7.0.130.0070.00715.52
7.0.120.0080.00015.54
7.0.110.0070.04217.66
7.0.100.0050.04417.72
7.0.90.0050.04617.80
7.0.80.0070.04417.75
7.0.70.0080.04317.74
7.0.60.0050.04217.80
7.0.50.0060.04117.73
7.0.40.0080.04316.89
7.0.30.0120.02816.66
7.0.20.0070.04516.61
7.0.10.0090.04416.67
7.0.00.0080.03516.80
5.6.380.0060.00914.49
5.6.370.0060.00614.11
5.6.360.0060.00314.12
5.6.350.0040.01114.34
5.6.340.0040.01114.43
5.6.330.0110.00014.22
5.6.320.0130.00314.36
5.6.310.0060.00614.48
5.6.300.0030.00714.27
5.6.290.0070.00713.86
5.6.280.0040.04117.68
5.6.270.0000.01413.93
5.6.260.0060.04317.66
5.6.250.0030.03217.52
5.6.240.0120.03717.48
5.6.230.0120.04217.41
5.6.220.0050.04517.41
5.6.210.0030.04217.47
5.6.200.0070.04717.77
5.6.190.0060.04317.81
5.6.180.0080.04317.67
5.6.170.0120.04217.82
5.6.160.0050.04517.54
5.6.150.0030.04317.53
5.6.140.0100.03817.80
5.6.130.0080.04317.78
5.6.120.0100.04317.57
5.6.110.0080.04217.69
5.6.100.0120.04017.62
5.6.90.0010.03317.74
5.6.80.0070.04717.50
5.6.70.0070.04317.43
5.6.60.0050.04617.36
5.6.50.0080.02417.40
5.6.40.0100.02817.40
5.6.30.0090.03817.36
5.6.20.0030.03117.41
5.6.10.0050.04717.43
5.6.00.0020.04917.27
5.5.380.0070.04415.74
5.5.370.0080.04215.91
5.5.360.0080.02515.71
5.5.350.0040.04215.80
5.5.340.0080.04515.99
5.5.330.0090.04116.14
5.5.320.0050.04115.98
5.5.310.0050.04216.09
5.5.300.0030.04515.99
5.5.290.0080.03516.10
5.5.280.0130.04016.15
5.5.270.0050.04815.84
5.5.260.0080.04015.95
5.5.250.0020.03015.98
5.5.240.0050.04015.75
5.5.230.0070.04015.50
5.5.220.0070.03615.79
5.5.210.0050.04315.63
5.5.200.0050.04315.83
5.5.190.0030.02715.68
5.5.180.0060.04015.67
5.5.170.0000.01111.18
5.5.160.0070.04115.77
5.5.150.0070.02315.69
5.5.140.0020.03415.51
5.5.130.0100.03415.73
5.5.120.0030.04515.64
5.5.110.0090.03015.67
5.5.100.0080.02115.69
5.5.90.0080.02315.56
5.5.80.0020.02315.65
5.5.70.0060.03415.57
5.5.60.0020.02215.72
5.5.50.0070.01715.58
5.5.40.0030.02415.74
5.5.30.0070.02715.64
5.5.20.0030.03315.62
5.5.10.0030.02215.59
5.5.00.0060.02615.57
5.4.450.0060.04615.31
5.4.440.0050.04215.19
5.4.430.0100.03815.27
5.4.420.0070.04015.44
5.4.410.0050.04215.31
5.4.400.0080.03715.16
5.4.390.0030.04115.18
5.4.380.0090.03315.12
5.4.370.0010.04315.05
5.4.360.0110.03314.93
5.4.350.0030.04015.27
5.4.340.0080.03615.03
5.4.330.0000.01011.10
5.4.320.0160.03515.25
5.4.310.0050.04015.10
5.4.300.0060.03815.15
5.4.290.0080.03515.18
5.4.280.0070.04015.07
5.4.270.0060.03415.02
5.4.260.0060.03415.00
5.4.250.0030.02515.05
5.4.240.0000.03415.06
5.4.230.0080.01815.05
5.4.220.0020.02315.21
5.4.210.0050.02015.13
5.4.200.0070.02215.15
5.4.190.0030.02115.27
5.4.180.0080.02015.07
5.4.170.0080.01714.96
5.4.160.0020.02315.19
5.4.150.0020.02315.07
5.4.140.0050.02113.99
5.4.130.0040.02213.66
5.4.120.0020.02613.63
5.4.110.0050.02213.74
5.4.100.0020.02413.80
5.4.90.0050.02113.54
5.4.80.0040.01813.73
5.4.70.0030.02513.79
5.4.60.0060.01813.64
5.4.50.0010.02113.58
5.4.40.0000.02413.70
5.4.30.0040.02113.83
5.4.20.0050.01813.75
5.4.10.0020.03213.84
5.4.00.0020.01913.37
5.3.290.0050.04212.74
5.3.280.0050.02012.60
5.3.270.0030.03312.70
5.3.260.0050.02012.66
5.3.250.0020.02812.63
5.3.240.0050.03312.68
5.3.230.0030.04612.59
5.3.220.0030.02312.49
5.3.210.0040.02012.52
5.3.200.0000.02912.59
5.3.190.0020.02012.46
5.3.180.0090.01512.63
5.3.170.0090.02512.63
5.3.160.0020.02212.68
5.3.150.0030.02112.69
5.3.140.0020.02512.65
5.3.130.0070.01812.64
5.3.120.0050.02012.61
5.3.110.0030.02512.53
5.3.100.0050.01812.30
5.3.90.0020.02412.23
5.3.80.0070.01512.22
5.3.70.0020.02412.37
5.3.60.0050.02212.33
5.3.50.0010.02112.33
5.3.40.0050.02012.20
5.3.30.0020.02212.33
5.3.20.0040.02212.05
5.3.10.0040.01811.91
5.3.00.0000.03611.90
5.2.170.0050.02011.04
5.2.160.0010.01611.04
5.2.150.0050.02011.04
5.2.140.0000.02811.04
5.2.130.0020.01911.04
5.2.120.0020.01511.06
5.2.110.0030.01511.04
5.2.100.0030.02111.04
5.2.90.0020.01611.04
5.2.80.0030.02011.04
5.2.70.0030.01811.04
5.2.60.0030.01611.04
5.2.50.0010.02011.04
5.2.40.0010.02811.04
5.2.30.0070.03311.04
5.2.20.0040.03211.04
5.2.10.0020.03211.04
5.2.00.0070.02811.04
5.1.60.0050.02511.04
5.1.50.0030.02811.04
5.1.40.0030.02911.04
5.1.30.0020.03011.04
5.1.20.0060.02811.04
5.1.10.0030.02811.04
5.1.00.0050.01611.04
5.0.50.0020.01711.04
5.0.40.0050.02311.04
5.0.30.0020.03511.04
5.0.20.0020.02511.04
5.0.10.0020.02411.04
5.0.00.0020.03411.04
4.4.90.0030.01211.04
4.4.80.0020.01911.04
4.4.70.0070.01611.04
4.4.60.0070.01511.04
4.4.50.0040.01211.04
4.4.40.0000.02011.04
4.4.30.0030.01811.04
4.4.20.0030.01711.04
4.4.10.0020.02111.04
4.4.00.0020.02711.04
4.3.110.0020.01811.04
4.3.100.0030.01711.04
4.3.90.0030.01711.04
4.3.80.0000.02811.04
4.3.70.0030.01811.04
4.3.60.0020.01911.04
4.3.50.0030.01811.04
4.3.40.0010.02611.04
4.3.30.0030.01811.04
4.3.20.0000.02211.04
4.3.10.0030.01711.04
4.3.00.0050.01511.04

preferences:
50.56 ms | 401 KiB | 5 Q