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" => 456, "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.0100.01018.16
8.3.50.0090.00921.20
8.3.40.0070.00718.52
8.3.30.0080.00619.01
8.3.20.0050.00320.34
8.3.10.0000.00822.14
8.3.00.0000.00922.46
8.2.180.0120.00916.50
8.2.170.0090.01222.96
8.2.160.0110.00320.53
8.2.150.0040.00424.18
8.2.140.0060.00624.66
8.2.130.0070.00026.16
8.2.120.0050.00319.78
8.2.110.0030.00619.30
8.2.100.0070.00418.02
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0100.00017.91
8.2.50.0060.00318.07
8.2.40.0030.00618.09
8.2.30.0040.00418.20
8.2.20.0050.00317.75
8.2.10.0040.00417.63
8.2.00.0040.00417.73
8.1.280.0040.01125.92
8.1.270.0040.00420.52
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.14
8.1.230.0070.00419.05
8.1.220.0080.00017.79
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0040.00418.70
8.1.170.0000.00918.66
8.1.160.0030.00622.09
8.1.150.0030.00618.64
8.1.140.0060.00317.50
8.1.130.0000.00817.78
8.1.120.0000.00717.36
8.1.110.0030.00517.50
8.1.100.0030.00317.36
8.1.90.0040.00417.52
8.1.80.0050.00317.46
8.1.70.0070.00017.43
8.1.60.0040.00417.64
8.1.50.0000.00817.53
8.1.40.0040.00417.48
8.1.30.0000.00817.56
8.1.20.0080.00017.59
8.1.10.0050.00317.43
8.1.00.0030.00717.39
8.0.300.0040.00420.08
8.0.290.0000.00816.75
8.0.280.0040.00418.46
8.0.270.0000.00717.27
8.0.260.0070.00016.82
8.0.250.0080.00016.86
8.0.240.0050.00316.83
8.0.230.0030.00516.97
8.0.220.0000.00716.87
8.0.210.0040.00416.89
8.0.200.0000.00616.86
8.0.190.0000.00716.96
8.0.180.0020.00516.96
8.0.170.0070.00016.96
8.0.160.0040.00416.96
8.0.150.0000.00816.74
8.0.140.0000.00816.74
8.0.130.0030.00313.36
8.0.120.0050.00216.71
8.0.110.0040.00416.78
8.0.100.0000.00816.96
8.0.90.0080.00016.85
8.0.80.0150.00316.78
8.0.70.0080.00016.90
8.0.60.0030.00516.91
8.0.50.0040.00416.76
8.0.30.0110.01117.07
8.0.20.0140.00417.40
8.0.10.0050.00316.89
8.0.00.0120.00816.69
7.4.330.0030.00315.00
7.4.320.0030.00316.55
7.4.300.0060.00016.60
7.4.290.0000.00716.59
7.4.280.0000.00616.64
7.4.270.0040.00416.64
7.4.260.0000.00716.51
7.4.250.0030.00516.34
7.4.240.0020.00516.54
7.4.230.0000.00716.63
7.4.220.0090.01316.69
7.4.210.0040.01016.59
7.4.200.0040.00416.53
7.4.190.0070.00016.67
7.4.160.0090.00616.34
7.4.150.0080.00817.40
7.4.140.0150.01017.86
7.4.130.0110.00916.47
7.4.120.0080.01216.50
7.4.110.0100.00716.68
7.4.100.0090.01516.43
7.4.90.0150.00316.50
7.4.80.0140.00719.39
7.4.70.0070.01516.47
7.4.60.0000.01516.59
7.4.50.0020.00216.37
7.4.40.0070.00722.77
7.4.30.0150.00416.45
7.4.00.0050.00914.93
7.3.330.0020.00213.28
7.3.320.0020.00213.32
7.3.310.0030.00316.35
7.3.300.0000.00716.34
7.3.290.0080.00616.33
7.3.280.0110.00416.28
7.3.270.0140.00617.40
7.3.260.0130.00616.59
7.3.250.0100.00716.45
7.3.240.0040.01316.43
7.3.230.0130.00416.39
7.3.210.0190.00316.30
7.3.200.0110.00719.39
7.3.190.0120.01116.41
7.3.180.0120.00316.57
7.3.170.0110.01116.29
7.3.160.0040.01116.56
7.3.120.0050.01214.71
7.3.110.0120.00615.09
7.3.100.0090.00614.91
7.3.90.0040.01214.76
7.3.80.0080.00414.80
7.3.70.0040.00814.50
7.3.60.0110.00414.87
7.3.50.0030.01014.96
7.3.40.0030.01314.84
7.3.30.0070.00714.48
7.3.20.0080.00416.49
7.3.10.0060.00316.43
7.3.00.0120.00316.68
7.2.330.0030.01616.61
7.2.320.0140.00716.77
7.2.310.0100.00716.36
7.2.300.0130.00616.83
7.2.290.0160.00016.36
7.2.250.0130.00615.10
7.2.240.0150.00415.03
7.2.230.0080.00815.02
7.2.220.0060.00615.17
7.2.210.0060.00914.96
7.2.200.0030.00815.22
7.2.190.0000.01414.96
7.2.180.0070.01015.00
7.2.170.0030.00915.05
7.2.160.0000.01314.86
7.2.150.0030.00617.02
7.2.140.0090.00617.03
7.2.130.0040.01117.01
7.2.120.0000.01517.04
7.2.110.0060.00916.64
7.2.100.0030.00616.79
7.2.90.0060.01016.93
7.2.80.0080.00616.71
7.2.70.0060.00617.07
7.2.60.0060.01016.95
7.2.50.0150.00316.82
7.2.40.0110.00717.11
7.2.30.0000.01716.98
7.2.20.0090.00316.78
7.2.10.0030.01516.78
7.2.00.0030.01318.23
7.1.330.0030.00915.91
7.1.320.0060.00915.61
7.1.310.0030.00715.91
7.1.300.0030.01015.91
7.1.290.0030.01215.51
7.1.280.0000.01215.66
7.1.270.0060.00615.64
7.1.260.0030.00916.02
7.1.250.0040.01115.58
7.1.240.0000.01315.84
7.1.230.0030.01015.67
7.1.220.0100.00315.77
7.1.210.0070.00715.80
7.1.200.0060.00515.87
7.1.190.0000.01215.76
7.1.180.0120.00315.53
7.1.170.0030.01315.92
7.1.160.0050.00315.93
7.1.150.0030.01015.83
7.1.140.0030.00615.86
7.1.130.0120.00615.57
7.1.120.0070.00715.93
7.1.110.0030.00615.57
7.1.100.0010.01216.89
7.1.90.0060.00616.05
7.1.80.0000.01415.86
7.1.70.0020.01216.32
7.1.60.0070.00316.38
7.1.50.0080.01125.18
7.1.40.0060.00615.52
7.1.30.0070.00715.91
7.1.20.0070.00716.00
7.1.10.0030.01615.94
7.1.00.0020.02519.10
7.0.330.0030.00615.44
7.0.320.0070.00715.45
7.0.310.0090.00615.51
7.0.300.0060.00915.41
7.0.290.0060.00615.46
7.0.280.0060.00615.48
7.0.270.0070.00715.22
7.0.260.0030.00615.62
7.0.250.0090.00315.41
7.0.240.0030.01015.30
7.0.230.0040.00415.42
7.0.220.0000.00915.55
7.0.210.0100.00715.55
7.0.200.0020.00916.03
7.0.190.0040.00815.63
7.0.180.0000.01015.29
7.0.170.0000.00915.39
7.0.160.0000.01715.13
7.0.150.0030.01515.44
7.0.140.0030.03718.78
7.0.130.0030.00915.39
7.0.120.0090.00015.40
7.0.110.0050.00515.50
7.0.100.0060.00615.48
7.0.90.0040.01115.27
7.0.80.0000.01515.39
7.0.70.0000.00915.30
7.0.60.0030.04817.71
7.0.50.0120.03716.60
7.0.40.0050.04017.06
7.0.30.0130.02116.76
7.0.20.0190.04016.79
7.0.10.0110.03216.86
7.0.00.0020.04716.80
5.6.400.0100.00614.37
5.6.390.0060.00613.95
5.6.380.0070.00714.64
5.6.370.0030.01014.46
5.6.360.0040.00814.51
5.6.350.0140.00014.46
5.6.340.0000.01314.04
5.6.330.0030.01314.57
5.6.320.0000.01214.53
5.6.310.0000.01014.60
5.6.300.0070.00414.37
5.6.290.0070.00714.32
5.6.280.0060.04017.68
5.6.270.0000.01214.48
5.6.260.0000.01414.25
5.6.250.0000.01114.39
5.6.240.0030.00914.59
5.6.230.0030.01214.32
5.6.220.0150.00014.14
5.6.210.0050.03917.48
5.6.200.0040.04116.16
5.6.190.0020.05517.50
5.6.180.1620.02617.40
5.6.170.0160.03017.55
5.6.160.0030.03017.38
5.6.150.0060.02616.47
5.6.140.0080.02716.16
5.6.130.0050.02616.19
5.6.120.0030.02517.74
5.6.110.0100.04517.73
5.6.100.0120.03517.85
5.6.90.0080.02817.80
5.6.80.0080.04017.34
5.6.70.0100.03417.42
5.6.60.0080.00414.18
5.6.50.0060.00614.34
5.6.40.0040.01114.22
5.6.30.0030.01014.08
5.6.20.0030.00714.59
5.6.10.0050.00314.19
5.6.00.0060.00914.41
5.5.380.0000.01114.29
5.5.370.0030.00513.87
5.5.360.0070.01114.04
5.5.350.0100.04717.52
5.5.340.0070.04216.27
5.5.330.0050.03817.11
5.5.320.0170.04217.26
5.5.310.0130.03717.38
5.5.300.0050.03016.22
5.5.290.0120.04216.08
5.5.280.0060.02617.55
5.5.270.0100.03017.63
5.5.260.0090.04217.55
5.5.250.0090.02317.37
5.5.240.0050.03817.33
5.5.230.0040.00814.41
5.5.220.0040.01114.30
5.5.210.0050.00814.32
5.5.200.0000.01214.02
5.5.190.0070.00713.85
5.5.180.0060.00613.93
5.5.170.0110.00014.20
5.5.160.0120.00314.31
5.5.150.0150.00013.84
5.5.140.0080.00313.89
5.5.130.0030.00613.98
5.5.120.0040.01114.19
5.5.110.0000.01114.34
5.5.100.0070.00714.16
5.5.90.0090.00613.96
5.5.80.0070.00714.39
5.5.70.0030.01014.26
5.5.60.0000.00914.02
5.5.50.0090.00614.29
5.5.40.0000.01114.06
5.5.30.0030.01013.95
5.5.20.0030.00614.27
5.5.10.0100.00314.23
5.5.00.0030.00614.30
5.4.450.0310.03115.73
5.4.440.0280.03015.79
5.4.430.0100.03515.67
5.4.420.0080.03915.74
5.4.410.0400.04015.68
5.4.400.0530.03115.48
5.4.390.0800.03615.33
5.4.380.0170.02815.47
5.4.370.0080.03015.43
5.4.360.0030.03415.47
5.4.350.0070.01912.09
5.4.340.0050.02412.09
5.4.330.0030.00612.16
5.4.320.0030.02312.33
5.4.310.0050.02512.33
5.4.300.0040.02112.33
5.4.290.0070.02412.33
5.4.280.0060.02212.28
5.4.270.0050.02012.28
5.4.260.0040.02512.28
5.4.250.0060.03115.54
5.4.240.0120.02815.38
5.4.230.0080.04015.60
5.4.220.0070.03015.46
5.4.210.0100.02415.56
5.4.200.0030.03415.54
5.4.190.0050.03715.39
5.4.180.0070.02715.53
5.4.170.0050.03315.56
5.4.160.0080.02615.55
5.4.150.0030.03215.51
5.4.140.0050.02814.34
5.4.130.0070.02714.35
5.4.120.0060.02814.36
5.4.110.0100.03314.25
5.4.100.0110.02514.31
5.4.90.0120.03314.29
5.4.80.0080.03514.29
5.4.70.0080.02614.31
5.4.60.0080.02814.23
5.4.50.0020.03014.32
5.4.40.0080.02614.32
5.4.30.0070.02714.36
5.4.20.0050.02814.32
5.4.10.0070.02814.17
5.4.00.0080.02614.09
5.3.290.0060.02712.48
5.3.280.0100.04013.38
5.3.270.0070.03613.29
5.3.260.0140.02813.39
5.3.250.0100.03713.38
5.3.240.0050.03113.39
5.3.230.0060.02713.33
5.3.220.0070.04013.41
5.3.210.0030.03313.40
5.3.200.0060.03113.37
5.3.190.0080.02713.32
5.3.180.0120.03213.36
5.3.170.0080.02813.37
5.3.160.0070.03513.35
5.3.150.0080.04213.40
5.3.140.0080.02713.39
5.3.130.0050.02813.30
5.3.120.0090.02613.42
5.3.110.0050.03113.38
5.3.100.0020.03213.11
5.3.90.0070.03013.13
5.3.80.0090.02413.13
5.3.70.0070.02913.12
5.3.60.0080.02513.08
5.3.50.0090.02513.11
5.3.40.0050.02913.09
5.3.30.0030.02913.07
5.3.20.0060.02812.96
5.3.10.0050.02812.98
5.3.00.0030.02912.99
5.2.170.0100.06011.22
5.2.160.0100.04011.10
5.2.150.0030.04011.31
5.2.140.0030.04311.36
5.2.130.0030.04011.27
5.2.120.0070.03711.05
5.2.110.0170.03011.16
5.2.100.0070.04011.16
5.2.90.0030.04011.08
5.2.80.0030.04011.06
5.2.70.0100.04711.16
5.2.60.0030.04011.14
5.2.50.0100.03711.11
5.2.40.0070.03710.91
5.2.30.0030.04010.98
5.2.20.0030.04010.94
5.2.10.0030.04011.02
5.2.00.0100.03710.71
5.1.60.0170.02310.07
5.1.50.0030.04710.15
5.1.40.0030.0339.82
5.1.30.0100.03010.30
5.1.20.0070.03710.26
5.1.10.0030.03710.31
5.1.00.0000.03710.08
5.0.50.0030.0378.62
5.0.40.0100.0208.48
5.0.30.0030.0438.42
5.0.20.0030.0278.26
5.0.10.0030.0278.37
5.0.00.0030.0578.26
4.4.90.0000.0236.96
4.4.80.0030.0206.96
4.4.70.0000.0236.96
4.4.60.0070.0176.96
4.4.50.0030.0206.96
4.4.40.0030.0336.96
4.4.30.0030.0206.96
4.4.20.0070.0176.96
4.4.10.0030.0276.96
4.4.00.0000.0336.96
4.3.110.0070.0206.96
4.3.100.0000.0236.96
4.3.90.0070.0206.96
4.3.80.0070.0376.96
4.3.70.0070.0176.96
4.3.60.0030.0236.96
4.3.50.0000.0306.96
4.3.40.0000.0336.96
4.3.30.0000.0236.96
4.3.20.0000.0236.96
4.3.10.0000.0206.96
4.3.00.0030.0206.41

preferences:
46.56 ms | 401 KiB | 5 Q