3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _prepareSkuParseRules(){ $structure = array(); $skuStructure = "[#name]-[Stoffgruppe]-[Groesse]-[:Ausfuehrung]-[:Matratze]"; $segments = explode("-", $skuStructure); foreach($segments as $segment){ $segmentInfo = array(); //check if segment is fixed if(!preg_match('/^\[(#|:)?([^\]#]*)\]$/', $segment, $matches)){ //is fixed value $segmentInfo["type"] = "set"; $segmentInfo["value"] = $matches[2]; }else{ if(isset($matches[1]) && !empty($matches[1]) && strcmp($matches[1], "#")==0){ $segmentInfo["type"] = "set"; $segmentInfo["namespace"] = "both"; //is registered variable name switch($matches[2]){ case "name": $segmentInfo["value"] = "Modellname"; break; } }else{ if(isset($matches[1]) && !empty($matches[1]) && strcmp($matches[1], ":")==0){ $segmentInfo["namespace"] = "simple"; }else{ $segmentInfo["namespace"] = "both"; } $segmentInfo["type"] = "variable"; $segmentInfo["fieldname"] = $matches[2]; } } //check if segment is always $structure[] = $segmentInfo; } var_dump($structure); } _prepareSkuParseRules();

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.0070.01516.75
8.3.60.0160.00618.53
8.3.50.0090.01122.05
8.3.40.0110.01119.03
8.3.30.0120.00319.22
8.3.20.0070.00020.22
8.3.10.0090.00022.05
8.3.00.0040.00422.34
8.2.190.0120.00317.00
8.2.180.0060.00916.88
8.2.170.0090.00922.96
8.2.160.0110.00420.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0060.00317.88
8.2.110.0050.00521.12
8.2.100.0090.00317.84
8.2.90.0000.00819.30
8.2.80.0040.00418.04
8.2.70.0000.00817.75
8.2.60.0050.00517.91
8.2.50.0060.00318.07
8.2.40.0090.00020.01
8.2.30.0030.00618.20
8.2.20.0070.00017.79
8.2.10.0000.00817.87
8.2.00.0040.00417.93
8.1.280.0190.00325.92
8.1.270.0000.00822.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00822.07
8.1.230.0040.00821.02
8.1.220.0000.00817.89
8.1.210.0090.00018.77
8.1.200.0060.00317.73
8.1.190.0040.00417.63
8.1.180.0050.00318.63
8.1.170.0050.00318.88
8.1.160.0000.00722.00
8.1.150.0030.00518.90
8.1.140.0040.00417.63
8.1.130.0000.00717.84
8.1.120.0040.00417.72
8.1.110.0030.00517.57
8.1.100.0030.00517.60
8.1.90.0080.00017.69
8.1.80.0040.00417.56
8.1.70.0000.00717.63
8.1.60.0000.00817.75
8.1.50.0030.00517.77
8.1.40.0040.00417.74
8.1.30.0030.00617.83
8.1.20.0030.00617.78
8.1.10.0030.00617.79
8.1.00.0050.00317.74
8.0.300.0070.00018.77
8.0.290.0060.00317.30
8.0.280.0030.00318.45
8.0.270.0000.00817.32
8.0.260.0030.00316.92
8.0.250.0040.00417.18
8.0.240.0070.00017.03
8.0.230.0060.00417.18
8.0.220.0040.00417.05
8.0.210.0070.00017.10
8.0.200.0000.00717.07
8.0.190.0000.00717.05
8.0.180.0000.00717.10
8.0.170.0000.00717.11
8.0.160.0000.00717.05
8.0.150.0000.00817.11
8.0.140.0020.00517.06
8.0.130.0000.00613.47
8.0.120.0080.00017.09
8.0.110.0000.00817.04
8.0.100.0000.00817.13
8.0.90.0080.00017.15
8.0.80.0080.00817.07
8.0.70.0030.00616.88
8.0.60.0070.00016.95
8.0.50.0040.00417.20
8.0.30.0130.00717.55
8.0.20.0190.00917.40
8.0.10.0040.00417.27
8.0.00.0110.00817.07
7.4.330.0030.00315.00
7.4.320.0000.00616.91
7.4.300.0030.00316.68
7.4.290.0040.00416.86
7.4.280.0040.00416.84
7.4.270.0030.00316.86
7.4.260.0040.00416.81
7.4.250.0080.00016.75
7.4.240.0040.00416.81
7.4.230.0000.00716.95
7.4.220.0110.00716.83
7.4.210.0070.01116.89
7.4.200.0000.00716.61
7.4.190.0040.00417.03
7.4.160.0070.01016.74
7.4.150.0140.00417.40
7.4.140.0090.01217.86
7.4.130.0120.00716.67
7.4.120.0090.00916.71
7.4.110.0060.01216.77
7.4.100.0160.00616.57
7.4.90.0190.00516.89
7.4.80.0070.01719.39
7.4.70.0100.00716.82
7.4.60.0140.00916.60
7.4.50.0040.01216.62
7.4.40.0040.01218.63
7.4.30.0140.00416.34
7.4.20.0080.01116.60
7.4.10.0100.01016.64
7.4.00.0080.01016.21
7.3.330.0040.00413.36
7.3.320.0000.00513.39
7.3.310.0050.00316.53
7.3.300.0070.00016.37
7.3.290.0060.00916.50
7.3.280.0090.01116.55
7.3.270.0070.01117.40
7.3.260.0070.01316.48
7.3.250.0160.00316.59
7.3.240.0060.01316.86
7.3.230.0090.00816.67
7.3.210.0060.01216.80
7.3.200.0060.01219.39
7.3.190.0160.00616.62
7.3.180.0120.01116.72
7.3.170.0080.00916.80
7.3.160.0040.01416.43
7.3.150.0100.00716.72
7.3.140.0110.00616.72
7.3.130.0060.01216.85
7.3.120.0070.00915.85
7.3.110.0040.01416.54
7.3.100.0120.00416.64
7.3.90.0100.00716.62
7.3.80.0140.00316.48
7.3.70.0040.01216.65
7.3.60.0090.01316.55
7.3.50.0120.00616.55
7.3.40.0120.00616.64
7.3.30.0060.01016.54
7.3.20.0160.00716.48
7.3.10.0080.01216.46
7.3.00.0480.00816.54
7.2.330.0140.00616.76
7.2.320.0040.01417.01
7.2.310.0110.01116.83
7.2.300.0100.00816.64
7.2.290.0110.00617.03
7.2.280.0100.01016.79
7.2.270.0110.00916.68
7.2.260.0060.01216.75
7.2.250.0090.00916.62
7.2.240.0100.00716.85
7.2.230.0120.00616.88
7.2.220.0150.00316.97
7.2.210.0100.00616.68
7.2.200.0070.01116.99
7.2.190.0130.01016.77
7.2.180.0060.01316.90
7.2.170.0100.00716.71
7.2.160.0120.00916.73
7.2.150.0140.00816.76
7.2.140.0110.00716.73
7.2.130.0090.00816.92
7.2.120.0080.01116.90
7.2.110.0100.00816.98
7.2.100.0150.00517.02
7.2.90.0080.00816.94
7.2.80.0090.00717.02
7.2.70.0080.00716.87
7.2.60.0090.00716.76
7.2.50.0090.00716.82
7.2.40.0060.01016.97
7.2.30.0080.01116.95
7.2.20.0090.00716.86
7.2.10.0120.00516.98
7.2.00.0050.01017.86
7.1.330.0170.01016.00
7.1.320.0040.01415.59
7.1.310.0060.00915.78
7.1.300.0140.00615.84
7.1.290.0080.00815.73
7.1.280.0060.01015.80
7.1.270.0100.01015.64
7.1.260.0100.00615.62
7.1.250.0060.00815.67
7.1.240.0110.00515.91
7.1.230.0060.01115.77
7.1.220.0100.00715.73
7.1.210.0100.00515.79
7.1.200.0090.00715.80
7.1.190.0070.00815.88
7.1.180.0090.00715.82
7.1.170.0090.00815.93
7.1.160.0070.00915.63
7.1.150.0100.00715.85
7.1.140.0100.00615.94
7.1.130.0100.00815.85
7.1.120.0070.00615.70
7.1.110.0020.01215.96
7.1.100.0100.00416.60
7.1.90.0040.01115.70
7.1.80.0050.01015.69
7.1.70.0060.00616.28
7.1.60.0080.00717.12
7.1.50.0070.01116.29
7.1.40.0060.01015.82
7.1.30.0100.00515.99
7.1.20.0070.00715.82
7.1.10.0100.00615.75
7.1.00.0040.03018.03
7.0.330.0030.01015.47
7.0.320.0110.00415.41
7.0.310.0080.00715.38
7.0.300.0090.00915.43
7.0.290.0060.00915.41
7.0.280.0090.00415.39
7.0.270.0030.01015.38
7.0.260.0060.00815.30
7.0.250.0090.00715.41
7.0.240.0050.01115.70
7.0.230.0050.01015.40
7.0.220.0100.00615.44
7.0.210.0020.01215.37
7.0.200.0070.00415.85
7.0.190.0080.00615.55
7.0.180.0120.00415.44
7.0.170.0050.01015.49
7.0.160.0080.00515.52
7.0.150.0030.01115.42
7.0.140.0040.02917.68
7.0.130.0050.01115.47
7.0.120.0040.01015.40
7.0.110.0080.00515.44
7.0.100.0100.00815.43
7.0.90.0080.00515.38
7.0.80.0040.01115.46
7.0.70.0070.00815.45
7.0.60.0050.02016.90
7.0.50.0060.02916.19
7.0.40.0080.03316.48
7.0.30.0170.02516.36
7.0.20.0150.03216.32
7.0.10.0100.02616.29
7.0.00.0070.02016.43
5.6.400.0090.00916.02
5.6.390.0160.00815.76
5.6.380.0140.00615.36
5.6.370.0040.01015.39
5.6.360.0070.00815.39
5.6.350.0120.00515.25
5.6.340.0110.00615.36
5.6.330.0060.01115.28
5.6.320.0080.00915.29
5.6.310.0090.00615.24
5.6.300.0070.01015.42
5.6.290.0060.01015.24
5.6.280.0060.03017.13
5.6.270.0060.00915.05
5.6.260.0140.00315.20
5.6.250.0100.00915.29
5.6.240.0110.00515.41
5.6.230.0120.00315.45
5.6.220.0090.00915.22
5.6.210.0120.02916.90
5.6.200.0060.02716.24
5.6.190.0100.03116.97
5.6.180.1430.02217.03
5.6.170.0170.01816.96
5.6.160.0080.01716.96
5.6.150.0100.02716.09
5.6.140.0050.02616.29
5.6.130.0080.02916.29
5.6.120.0020.03517.23
5.6.110.0110.02317.12
5.6.100.0070.03017.08
5.6.90.0070.02017.08
5.6.80.0100.02916.92
5.6.70.0160.03116.86
5.6.60.0090.00915.30
5.6.50.0050.01415.30
5.6.40.0100.00715.24
5.6.30.0110.00315.24
5.6.20.0120.00615.23
5.6.10.0090.00815.08
5.6.00.0040.01015.25
5.5.380.0060.00813.54
5.5.370.0050.01113.85
5.5.360.0030.00913.69
5.5.350.0090.03015.93
5.5.340.0110.01415.07
5.5.330.0080.03615.89
5.5.320.0120.03315.86
5.5.310.0130.03015.82
5.5.300.0060.02015.13
5.5.290.0060.02015.05
5.5.280.0120.02916.02
5.5.270.0080.03616.03
5.5.260.0100.03116.10
5.5.250.0070.01915.84
5.5.240.0080.02915.84
5.5.230.0080.00613.46
5.5.220.0080.00713.60
5.5.210.0040.00913.55
5.5.200.0080.00813.67
5.5.190.0050.01113.77
5.5.180.0040.01013.62
5.5.170.0090.00713.71
5.5.160.0130.00513.65
5.5.150.0090.00413.62
5.5.140.0040.00913.76
5.5.130.0080.00513.71
5.5.120.0030.00913.84
5.5.110.0060.00913.46
5.5.100.0050.01013.64
5.5.90.0080.00913.65
5.5.80.0070.00713.67
5.5.70.0090.00813.61
5.5.60.0060.00713.85
5.5.50.0100.00513.70
5.5.40.0150.00013.68
5.5.30.0020.01313.49
5.5.20.0080.00613.71
5.5.10.0020.01213.68
5.5.00.0080.00613.69
5.4.450.0220.02714.56
5.4.440.0270.02214.71
5.4.430.0080.02414.52
5.4.420.0070.02514.76
5.4.410.0070.02214.54
5.4.400.0310.00314.28
5.4.390.0310.00614.26
5.4.380.0120.02514.24
5.4.370.0070.02514.27
5.4.360.0090.02214.24
5.4.350.0130.02014.30
5.4.340.0100.02214.24
5.4.330.0080.00411.91
5.4.320.0060.01812.16
5.4.310.0080.01612.23
5.4.300.0040.02112.12
5.4.290.0060.01812.27
5.4.280.0060.01812.14
5.4.270.0060.01512.17
5.4.260.0090.02614.42
5.4.250.0070.02414.36
5.4.240.0120.01714.19
5.4.230.0090.02514.24
5.4.220.0060.02714.16
5.4.210.0090.02214.34
5.4.200.0070.02814.27
5.4.190.0100.02314.29
5.4.180.0070.02314.35
5.4.170.0110.02614.33
5.4.160.0100.02914.36
5.4.150.0080.03114.24
5.4.140.0080.02213.58
5.4.130.0080.02113.52
5.4.120.0050.02413.66
5.4.110.0090.02613.58
5.4.100.0120.01813.55
5.4.90.0080.02113.40
5.4.80.0060.02413.57
5.4.70.0130.02213.37
5.4.60.0040.02813.55
5.4.50.0080.01813.51
5.4.40.0040.02113.52
5.4.30.0070.02413.56
5.4.20.0030.02313.53
5.4.10.0060.03013.54
5.4.00.0060.02513.23
5.3.290.0040.02212.28
5.3.280.0070.02712.75
5.3.270.0060.02512.89
5.3.260.0080.02212.87
5.3.250.0080.02012.93
5.3.240.0040.02612.83
5.3.230.0050.02312.76
5.3.220.0050.02312.77
5.3.210.0080.02912.74
5.3.200.0050.02212.80
5.3.190.0040.03112.79
5.3.180.0080.02212.98
5.3.170.0100.02712.81
5.3.160.0050.02112.87
5.3.150.0030.02512.96
5.3.140.0040.02312.72
5.3.130.0100.01612.80
5.3.120.0060.02412.94
5.3.110.0060.02512.90
5.3.100.0080.02212.73
5.3.90.0060.02212.59
5.3.80.0040.02512.56
5.3.70.0060.02212.60
5.3.60.0080.02712.70
5.3.50.0080.01912.45
5.3.40.0110.02512.51
5.3.30.0080.02512.62
5.3.20.0080.02312.48
5.3.10.0070.02312.37
5.3.00.0060.02412.26
5.2.170.0090.01410.92
5.2.160.0010.02110.89
5.2.150.0030.02010.97
5.2.140.0020.02710.98
5.2.130.0050.01910.89
5.2.120.0070.01610.95
5.2.110.0070.01610.88
5.2.100.0070.02210.93
5.2.90.0060.01710.93
5.2.80.0080.02210.80
5.2.70.0070.02210.77
5.2.60.0060.01710.88
5.2.50.0030.02410.78
5.2.40.0080.01710.84
5.2.30.0040.02110.73
5.2.20.0010.02010.76
5.2.10.0030.02110.71
5.2.00.0050.01810.56
5.1.60.0040.0189.93
5.1.50.0010.0199.71
5.1.40.0050.0159.91
5.1.30.0030.02010.08
5.1.20.0050.01910.02
5.1.10.0030.0199.90
5.1.00.0030.0199.84
5.0.50.0020.0148.93
5.0.40.0050.0129.01
5.0.30.0070.0138.85
5.0.20.0070.0128.92
5.0.10.0060.0128.87
5.0.00.0030.0218.89
4.4.90.0030.0098.50
4.4.80.0030.0128.50
4.4.70.0050.0098.50
4.4.60.0030.0088.50
4.4.50.0040.0088.50
4.4.40.0030.0148.50
4.4.30.0020.0148.50
4.4.20.0020.0108.50
4.4.10.0010.0108.50
4.4.00.0030.0138.50
4.3.110.0030.0098.50
4.3.100.0000.0128.50
4.3.90.0030.0088.50
4.3.80.0080.0118.50
4.3.70.0020.0108.50
4.3.60.0010.0128.50
4.3.50.0030.0098.50
4.3.40.0020.0158.50
4.3.30.0000.0138.50
4.3.20.0030.0118.50
4.3.10.0040.0128.50
4.3.00.0080.0128.47

preferences:
46.3 ms | 401 KiB | 5 Q