3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matiere1 = 'Cotton 2'; $matiere2 = 'lol'; echo "Matiere1 : ".checkMatiere($matiere1)." - Matiere2 : ".checkMatiere($matiere2); function checkMatiere($matiere){ $matiere = strtolower($matier); switch ($matiere) { case (strpos($matiere, 'cotton') !== FALSE): $matiere = 'coton'; break; default: $matiere = "KO"; break; } }

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.00316.50
8.3.50.0070.00718.25
8.3.40.0140.00018.71
8.3.30.0070.00719.10
8.3.20.0000.00720.29
8.3.10.0050.00321.91
8.3.00.0030.00619.25
8.2.180.0130.00918.41
8.2.170.0030.01318.92
8.2.160.0120.00322.96
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00319.38
8.2.110.0070.00322.13
8.2.100.0040.00717.75
8.2.90.0040.00419.26
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0030.00517.80
8.2.50.0030.00618.07
8.2.40.0040.00419.84
8.2.30.0000.00718.12
8.2.20.0040.00417.66
8.2.10.0040.00418.17
8.2.00.0030.00517.86
8.1.280.0100.01025.92
8.1.270.0040.00420.38
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00022.62
8.1.230.0040.00717.42
8.1.220.0000.00817.77
8.1.210.0040.00418.77
8.1.200.0000.00917.11
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00420.29
8.1.160.0000.00821.98
8.1.150.0040.00418.94
8.1.140.0000.00817.30
8.1.130.0030.00317.84
8.1.120.0030.00517.50
8.1.110.0040.00417.43
8.1.100.0000.00817.45
8.1.90.0000.00717.39
8.1.80.0040.00417.40
8.1.70.0000.00817.45
8.1.60.0040.00417.51
8.1.50.0030.00617.59
8.1.40.0000.00917.55
8.1.30.0040.00417.65
8.1.20.0040.00417.68
8.1.10.0100.00017.32
8.1.00.0030.00617.45
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0000.00717.14
8.0.260.0060.00317.17
8.0.250.0060.00016.98
8.0.240.0000.00616.90
8.0.230.0000.00716.93
8.0.220.0040.00416.92
8.0.210.0030.00616.87
8.0.200.0030.00617.00
8.0.190.0050.00316.95
8.0.180.0000.00717.04
8.0.170.0000.00816.99
8.0.160.0000.00717.02
8.0.150.0050.00216.93
8.0.140.0000.00716.82
8.0.130.0030.00513.34
8.0.120.0030.00616.92
8.0.110.0050.00216.82
8.0.100.0000.00816.98
8.0.90.0080.00016.83
8.0.80.0060.01616.93
8.0.70.0000.00716.74
8.0.60.0040.00416.92
8.0.50.0080.00016.95
8.0.30.0100.01017.16
8.0.20.0090.01217.40
8.0.10.0000.00717.11
8.0.00.0090.01016.74
7.4.330.0050.00015.09
7.4.320.0000.00616.57
7.4.300.0000.00616.55
7.4.290.0000.00716.59
7.4.280.0040.00816.60
7.4.270.0000.00716.52
7.4.260.0000.00816.59
7.4.250.0000.00816.48
7.4.240.0020.00516.55
7.4.230.0000.00716.58
7.4.220.0070.01116.51
7.4.210.0090.00816.59
7.4.200.0080.00016.63
7.4.160.0100.01016.57
7.4.150.0190.00917.40
7.4.140.0140.00317.86
7.4.130.0130.01016.60
7.4.120.0090.01016.53
7.4.110.0160.00316.70
7.4.100.0130.01016.57
7.4.90.0100.01316.50
7.4.80.0130.01019.39
7.4.70.0080.00816.51
7.4.60.0100.00616.50
7.4.50.0020.00216.39
7.4.40.0060.00916.61
7.4.30.0060.01116.66
7.4.00.0160.00015.09
7.3.330.0000.00513.19
7.3.320.0060.00613.44
7.3.310.0070.00016.42
7.3.300.0030.00316.32
7.3.290.0080.00016.30
7.3.280.0050.01016.29
7.3.270.0160.00417.40
7.3.260.0140.00616.55
7.3.250.0120.01116.49
7.3.240.0130.00316.37
7.3.230.0090.00916.53
7.3.210.0100.01016.57
7.3.200.0180.00019.39
7.3.190.0000.01616.50
7.3.180.0070.01016.55
7.3.170.0070.01016.39
7.3.160.0050.01116.67
7.2.330.0180.00016.57
7.2.320.0170.00816.47
7.2.310.0100.01016.61
7.2.300.0120.00416.74
7.2.290.0120.00616.57
7.2.120.0070.00716.54
7.2.110.0030.00716.49
7.2.100.0030.00916.70
7.2.90.0030.01016.34
7.2.80.0070.00716.54
7.2.70.0070.00316.86
7.2.60.0110.00417.00
7.2.50.0050.00516.66
7.2.40.0070.00716.94
7.2.30.0030.00916.84
7.2.20.0100.00316.93
7.2.10.0100.00316.97
7.2.00.0060.00418.06
7.1.240.0070.00715.89
7.1.230.0060.00915.78
7.1.220.0000.01315.50
7.1.210.0140.00015.63
7.1.200.0070.00615.62
7.1.190.0040.00815.73
7.1.180.0030.01315.59
7.1.170.0030.01015.78
7.1.160.0080.00015.50
7.1.150.0030.01015.48
7.1.140.0040.01115.84
7.1.130.0060.00915.70
7.1.120.0100.00315.75
7.1.110.0060.00616.01
7.1.100.0050.01116.89
7.1.90.0030.00915.78
7.1.80.0030.01015.78
7.1.70.0040.00816.31
7.1.60.0050.01417.59
7.1.50.0170.00825.06
7.1.40.0120.00015.54
7.1.30.0030.01015.69
7.1.20.0070.00715.80
7.1.10.0090.00315.85
7.1.00.0080.03819.06
7.0.320.0090.00615.48
7.0.310.0060.00615.18
7.0.300.0030.00715.28
7.0.290.0130.00015.39
7.0.280.0030.00915.17
7.0.270.0090.00315.44
7.0.260.0060.00615.51
7.0.250.0060.00615.54
7.0.240.0070.00315.34
7.0.230.0070.00715.58
7.0.220.0060.00615.31
7.0.210.0000.01115.45
7.0.200.0270.00614.92
7.0.190.0000.00915.56
7.0.180.0110.00015.38
7.0.170.0000.01215.14
7.0.160.0050.00215.54
7.0.150.0000.01015.28
7.0.140.0050.03518.80
7.0.130.0080.00315.56
7.0.120.0060.00615.09
7.0.110.0090.02117.66
7.0.100.0100.02617.73
7.0.90.0080.02817.80
7.0.80.0110.02017.64
7.0.70.0140.02217.69
7.0.60.0200.02317.58
7.0.50.0350.04217.66
7.0.40.0110.03316.63
7.0.30.0080.04216.42
7.0.20.0100.04016.66
7.0.10.0080.04116.58
7.0.00.0020.04316.61
5.6.380.0070.00714.34
5.6.370.0060.00314.28
5.6.360.0060.00614.62
5.6.350.0070.00714.69
5.6.340.0040.00814.59
5.6.330.0000.01414.51
5.6.320.0000.01214.47
5.6.310.0000.01014.48
5.6.300.0040.00814.02
5.6.290.0150.00014.63
5.6.280.0080.03617.56
5.6.270.0100.00314.31
5.6.260.0080.03817.41
5.6.250.0020.02617.52
5.6.240.0070.02217.38
5.6.230.0080.02617.46
5.6.220.0040.02817.46
5.6.210.0050.02717.44
5.6.200.0070.04017.28
5.6.190.0050.04717.54
5.6.180.0120.04317.48
5.6.170.0080.02717.40
5.6.160.0060.04017.48
5.6.150.0130.03517.63
5.6.140.0110.02517.40
5.6.130.0050.04117.57
5.6.120.0140.03717.65
5.6.110.0030.03517.60
5.6.100.0050.04517.45
5.6.90.0070.04017.26
5.6.80.0120.03716.97
5.6.70.0080.02317.26
5.6.60.0100.04217.12
5.6.50.0170.03017.06
5.6.40.0050.03816.91
5.6.30.0080.04016.97
5.6.20.0080.03317.18
5.6.10.0050.03817.14
5.6.00.0070.03517.22
5.5.380.0070.02014.37
5.5.370.0020.02114.38
5.5.360.0030.02114.41
5.5.350.0020.02714.43
5.5.340.0000.04714.68
5.5.330.0020.02814.59
5.5.320.0040.04414.65
5.5.310.0030.04314.68
5.5.300.0080.03814.64
5.5.290.0050.02514.75
5.5.280.0030.04414.80
5.5.270.0050.04514.55
5.5.260.0070.04014.70
5.5.250.0030.04314.67
5.5.240.0120.03414.28
5.5.230.0020.03714.39
5.5.220.0100.03614.37
5.5.210.0080.03614.33
5.5.200.0080.04014.34
5.5.190.0070.04014.34
5.5.180.0140.03414.47
5.5.170.0090.00314.25
5.5.160.0120.03714.38
5.5.150.0100.03814.36
5.5.140.0040.02414.37
5.5.130.0030.04114.27
5.5.120.0030.03414.22
5.5.110.0080.01814.42
5.5.100.0040.02514.18
5.5.90.0130.03314.17
5.5.80.0040.04514.39
5.5.70.0050.04414.23
5.5.60.0050.03814.38
5.5.50.0050.04114.22
5.5.40.0080.03514.32
5.5.30.0070.03014.23
5.5.20.0090.03814.32
5.5.10.0080.03814.28
5.5.00.0060.03814.33
5.4.450.0050.04115.40
5.4.440.0080.04015.30
5.4.430.0070.03715.28
5.4.420.0090.03415.29
5.4.410.0090.03515.25
5.4.400.0000.04715.23
5.4.390.0020.04315.22
5.4.380.0050.03915.25
5.4.370.0050.04215.29
5.4.360.0110.03715.25
5.4.350.0080.04015.25
5.4.340.0070.04015.27
5.4.330.0060.00611.27
5.4.320.0050.04015.22
5.4.310.0110.03515.28
5.4.300.0110.02315.24
5.4.290.0140.01615.13
5.4.280.0000.02915.13
5.4.270.0040.03515.14
5.4.260.0030.04315.13
5.4.250.0030.03715.29
5.4.240.0050.03715.13
5.4.230.0090.04015.29
5.4.220.0030.02515.12
5.4.210.0060.03015.26
5.4.200.0050.04315.20
5.4.190.0050.04515.30
5.4.180.0100.03515.21
5.4.170.0020.03015.24
5.4.160.0040.04515.29
5.4.150.0120.03515.14
5.4.140.0060.03813.91
5.4.130.0050.02013.88
5.4.120.0050.03913.83
5.4.110.0020.03413.93
5.4.100.0070.01913.93
5.4.90.0080.02613.91
5.4.80.0050.03413.96
5.4.70.0060.03813.83
5.4.60.0110.03313.83
5.4.50.0050.03813.75
5.4.40.0080.02713.92
5.4.30.0050.04113.82
5.4.20.0060.03613.89
5.4.10.0050.04213.85
5.4.00.0020.03813.52
5.3.290.0050.02513.08
5.3.280.0030.04513.00
5.3.270.0140.03512.93
5.3.260.0100.03313.00
5.3.250.0070.03512.99
5.3.240.0110.03412.95
5.3.230.0030.02312.93
5.3.220.0070.03112.98
5.3.210.0070.03412.98
5.3.200.0050.03812.91
5.3.190.0050.02312.84
5.3.180.0070.03212.84
5.3.170.0100.03812.91
5.3.160.0030.02712.91
5.3.150.0100.03712.91
5.3.140.0050.03712.91
5.3.130.0050.03712.95
5.3.120.0030.04012.97
5.3.110.0080.03712.91
5.3.100.0080.03212.73
5.3.90.0050.02512.64
5.3.80.0130.03112.68
5.3.70.0020.04212.63
5.3.60.0120.03312.63
5.3.50.0080.03312.59
5.3.40.0080.04012.68
5.3.30.0030.04112.57
5.3.20.0030.04012.49
5.3.10.0050.03812.48
5.3.00.0030.04012.43
5.2.170.0050.03011.27
5.2.160.0030.03511.27
5.2.150.0030.03511.32
5.2.140.0020.03211.27
5.2.130.0010.03411.23
5.2.120.0080.02811.22
5.2.110.0050.03211.19
5.2.100.0040.03011.22
5.2.90.0020.03411.17
5.2.80.0000.03611.18
5.2.70.0070.03211.18
5.2.60.0080.02811.22
5.2.50.0090.02611.22
5.2.40.0050.02811.11
5.2.30.0060.03211.19
5.2.20.0050.03111.11
5.2.10.0000.03611.14
5.2.00.0020.03110.98
5.1.60.0100.02210.76
5.1.50.0030.03010.67
5.1.40.0060.02510.66
5.1.30.0020.03310.80
5.1.20.0080.03110.92
5.1.10.0040.03010.66
5.1.00.0020.03210.81
5.0.50.0080.02310.58
5.0.40.0030.02310.58
5.0.30.0050.03210.58
5.0.20.0070.02010.58
5.0.10.0030.02210.58
5.0.00.0000.03710.58
4.4.90.0050.01610.58
4.4.80.0000.02210.58
4.4.70.0040.01610.58
4.4.60.0030.01810.58
4.4.50.0050.01710.58
4.4.40.0020.02710.58
4.4.30.0000.02210.58
4.4.20.0000.02010.58
4.4.10.0070.01310.58
4.4.00.0030.02910.58
4.3.110.0050.01610.58
4.3.100.0030.01810.58
4.3.90.0040.01710.58
4.3.80.0000.03310.58
4.3.70.0030.01810.58
4.3.60.0030.01810.58
4.3.50.0020.01810.58
4.3.40.0020.02810.58
4.3.30.0010.02010.58
4.3.20.0030.01810.58
4.3.10.0050.01810.58
4.3.00.0000.02110.58

preferences:
48.5 ms | 400 KiB | 5 Q