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.60.0080.01218.81
8.3.50.0090.00622.05
8.3.40.0150.00619.03
8.3.30.0120.00319.06
8.3.20.0040.00420.33
8.3.10.0000.00822.25
8.3.00.0080.00022.31
8.2.180.0120.00316.75
8.2.170.0110.00422.96
8.2.160.0060.00921.01
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0140.00426.16
8.2.120.0030.00619.61
8.2.110.0070.00321.31
8.2.100.0060.00619.89
8.2.90.0080.00019.30
8.2.80.0040.00417.97
8.2.70.0060.00317.88
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0050.00318.16
8.2.30.0050.00218.13
8.2.20.0080.00017.80
8.2.10.0080.00017.87
8.2.00.0000.00717.93
8.1.280.0100.00725.92
8.1.270.0040.00422.18
8.1.260.0090.00026.35
8.1.250.0030.00528.09
8.1.240.0090.00023.83
8.1.230.0000.01119.26
8.1.220.0030.00617.78
8.1.210.0030.00618.77
8.1.200.0030.00617.50
8.1.190.0040.00417.55
8.1.180.0030.00518.71
8.1.170.0030.00618.71
8.1.160.0040.00422.13
8.1.150.0000.00818.70
8.1.140.0060.00317.60
8.1.130.0030.00317.84
8.1.120.0040.00417.63
8.1.110.0040.00417.69
8.1.100.0040.00417.70
8.1.90.0040.00417.63
8.1.80.0000.00717.54
8.1.70.0000.00717.54
8.1.60.0030.00617.72
8.1.50.0030.00517.59
8.1.40.0000.00817.54
8.1.30.0000.00917.84
8.1.20.0000.00817.79
8.1.10.0000.00917.70
8.1.00.0000.00817.70
8.0.300.0040.00418.77
8.0.290.0040.00417.17
8.0.280.0030.00318.49
8.0.270.0040.00417.33
8.0.260.0000.00616.93
8.0.250.0040.00417.04
8.0.240.0070.00016.99
8.0.230.0030.00617.05
8.0.220.0000.00716.95
8.0.210.0040.00417.09
8.0.200.0030.00317.22
8.0.190.0030.00617.11
8.0.180.0040.00417.13
8.0.170.0080.00016.98
8.0.160.0080.00017.04
8.0.150.0060.00316.89
8.0.140.0000.00817.05
8.0.130.0030.00313.44
8.0.120.0050.00317.03
8.0.110.0060.00317.00
8.0.100.0040.00417.12
8.0.90.0070.00016.95
8.0.80.0120.00317.09
8.0.70.0060.00317.10
8.0.60.0040.00416.99
8.0.50.0070.00016.96
8.0.30.0130.00617.45
8.0.20.0140.01217.40
8.0.10.0040.00417.19
8.0.00.0140.00616.96
7.4.330.0050.00015.00
7.4.320.0040.00416.85
7.4.300.0040.00416.75
7.4.290.0030.00316.77
7.4.280.0000.00716.86
7.4.270.0040.00416.86
7.4.260.0070.00016.86
7.4.250.0040.00416.82
7.4.240.0000.00716.69
7.4.230.0050.00316.93
7.4.220.0120.00616.92
7.4.210.0070.01016.89
7.4.200.0040.00416.91
7.4.190.0000.00716.82
7.4.160.0100.00716.58
7.4.150.0090.00917.40
7.4.140.0090.01417.86
7.4.130.0100.00816.79
7.4.120.0150.00416.74
7.4.110.0150.00916.74
7.4.100.0120.00916.81
7.4.90.0220.00316.68
7.4.80.0030.01619.39
7.4.70.0080.01116.67
7.4.60.0120.01016.60
7.4.50.0110.00716.55
7.4.40.0130.00818.74
7.4.30.0130.01316.58
7.4.20.0110.01716.43
7.4.10.0240.00816.64
7.4.00.0100.00716.17
7.3.330.0030.00513.51
7.3.320.0000.00513.46
7.3.310.0000.00716.57
7.3.300.0070.00016.49
7.3.290.0060.01316.47
7.3.280.0090.00916.52
7.3.270.0140.00517.40
7.3.260.0100.00916.55
7.3.250.0100.01216.76
7.3.240.0060.01316.61
7.3.230.0100.01016.82
7.3.210.0100.01016.70
7.3.200.0170.00719.39
7.3.190.0090.00916.77
7.3.180.0140.00716.66
7.3.170.0230.00316.49
7.3.160.0140.01016.61
7.3.150.0190.00616.58
7.3.140.0130.01316.75
7.3.130.0170.00916.58
7.3.120.0090.00715.58
7.3.110.0270.00616.52
7.3.100.0180.00416.52
7.3.90.0140.01216.24
7.3.80.0100.01016.20
7.3.70.0140.00616.50
7.3.60.0210.00016.56
7.3.50.0100.01016.46
7.3.40.0160.00516.57
7.3.30.0200.01016.64
7.3.20.0220.00616.47
7.3.10.0130.00916.50
7.3.00.0210.00516.36
7.2.330.0120.00616.82
7.2.320.0120.00616.81
7.2.310.0140.01716.82
7.2.300.0100.01416.64
7.2.290.0190.00816.77
7.2.280.0150.01116.86
7.2.270.0180.00616.60
7.2.260.0160.01316.63
7.2.250.0170.00816.68
7.2.240.0190.00716.79
7.2.230.0140.00816.52
7.2.220.0100.01716.87
7.2.210.0220.01116.96
7.2.200.0080.01216.84
7.2.190.0060.01216.67
7.2.180.0180.01516.86
7.2.170.0230.00616.84
7.2.160.0090.01416.74
7.2.150.0170.01016.79
7.2.140.0170.00416.56
7.2.130.0350.00916.92
7.2.120.0170.00716.83
7.2.110.0080.01516.82
7.2.100.0140.00816.71
7.2.90.0140.00916.99
7.2.80.0160.00616.63
7.2.70.0160.00716.71
7.2.60.0120.01416.63
7.2.50.0230.00916.89
7.2.40.0290.01316.82
7.2.30.0100.01316.75
7.2.20.0210.00816.71
7.2.10.0160.00316.74
7.2.00.0050.01218.10
7.1.330.0100.01015.78
7.1.320.0060.01515.69
7.1.310.0160.01015.95
7.1.300.0110.01115.75
7.1.290.0200.00915.78
7.1.280.0150.00615.92
7.1.270.0090.00915.57
7.1.260.0080.01215.68
7.1.250.0060.01215.69
7.1.240.0110.00815.63
7.1.230.0170.00615.85
7.1.220.0150.00915.61
7.1.210.0220.01115.76
7.1.200.0140.00315.72
7.1.190.0140.01215.55
7.1.180.0150.00715.59
7.1.170.0140.00515.62
7.1.160.0090.01215.71
7.1.150.0160.00315.74
7.1.140.0130.01415.86
7.1.130.0080.01015.64
7.1.120.0150.00415.66
7.1.110.0100.01415.79
7.1.100.0120.01016.83
7.1.90.0140.01115.78
7.1.80.0200.00415.62
7.1.70.0130.01316.47
7.1.60.0150.00817.70
7.1.50.0140.00616.51
7.1.40.0100.01015.79
7.1.30.0180.00315.89
7.1.20.0110.01115.64
7.1.10.0140.00515.37
7.1.00.0100.04319.00
7.0.330.0060.01215.18
7.0.320.0150.00915.33
7.0.310.0070.01815.23
7.0.300.0080.01115.34
7.0.290.0150.00415.18
7.0.280.0120.00615.31
7.0.270.0070.01015.31
7.0.260.0120.00815.51
7.0.250.0180.00315.17
7.0.240.0120.00815.51
7.0.230.0080.01215.58
7.0.220.0110.00515.30
7.0.210.0170.00615.34
7.0.200.0100.00616.21
7.0.190.0110.01115.42
7.0.180.0110.01115.34
7.0.170.0150.00415.62
7.0.160.0160.00615.59
7.0.150.0110.00715.23
7.0.140.0080.04018.67
7.0.130.0140.00715.38
7.0.120.0060.01215.18
7.0.110.0030.01515.39
7.0.100.0120.00615.29
7.0.90.0110.00815.13
7.0.80.0140.01415.50
7.0.70.0130.00915.25
7.0.60.0110.02417.57
7.0.50.0070.04716.61
7.0.40.0110.02717.81
7.0.30.0180.04017.71
7.0.20.0190.04217.67
7.0.10.0160.04117.78
7.0.00.0060.02417.87
5.6.400.0180.00616.11
5.6.390.0170.00515.85
5.6.380.0180.00515.81
5.6.370.0160.01015.93
5.6.360.0130.00816.19
5.6.350.0150.00615.78
5.6.340.0100.01015.96
5.6.330.0110.00915.94
5.6.320.0100.01016.01
5.6.310.0150.00616.07
5.6.300.0040.01516.09
5.6.290.0110.01515.80
5.6.280.0120.03718.47
5.6.270.0090.01215.89
5.6.260.0080.01115.97
5.6.250.0150.00616.07
5.6.240.0100.01016.00
5.6.230.0110.00915.86
5.6.220.0120.00916.02
5.6.210.0060.02618.41
5.6.200.0050.05417.10
5.6.190.0110.05018.41
5.6.180.0220.02418.38
5.6.170.0230.03818.13
5.6.160.0120.03018.10
5.6.150.0080.03817.06
5.6.140.0050.04917.07
5.6.130.0100.02517.14
5.6.120.0110.02818.46
5.6.110.0110.04618.49
5.6.100.0070.04118.65
5.6.90.0090.03918.41
5.6.80.0050.03718.18
5.6.70.0130.01015.84
5.6.60.0100.01015.97
5.6.50.0060.01415.95
5.6.40.0140.01015.81
5.6.30.0160.00615.82
5.6.20.0130.01015.92
5.6.10.0090.01515.88
5.6.00.0150.00616.00
5.5.380.0090.01315.95
5.5.370.0110.00915.81
5.5.360.0070.01416.13
5.5.350.0230.03818.14
5.5.340.0120.02416.95
5.5.330.0110.02718.18
5.5.320.0230.03018.25
5.5.310.0180.02818.13
5.5.300.0100.02617.02
5.5.290.0130.04516.91
5.5.280.0110.04118.46
5.5.270.0080.04818.42
5.5.260.0200.03518.44
5.5.250.0040.05118.29
5.5.240.0200.03717.98
5.5.230.0120.00915.89
5.5.220.0130.00715.74
5.5.210.0170.00415.97
5.5.200.0110.00915.91
5.5.190.0190.00315.75
5.5.180.0160.00315.86
5.5.170.0160.01115.95
5.5.160.0120.00816.04
5.5.150.0130.00716.09
5.5.140.0090.01316.11
5.5.130.0190.00316.01
5.5.120.0110.01115.72
5.5.110.0150.00815.84
5.5.100.0150.01215.98
5.5.90.0200.00315.96
5.5.80.0040.01615.82
5.5.70.0100.01016.07
5.5.60.0100.01015.87
5.5.50.0100.01115.70
5.5.40.0140.00515.67
5.5.30.0110.00815.89
5.5.20.0030.01616.08
5.5.10.0170.00615.77
5.5.00.0030.01715.79
5.4.450.0500.01716.16
5.4.440.0350.02916.21
5.4.430.0290.02516.08
5.4.420.0320.02016.11
5.4.410.0160.01816.08
5.4.400.0420.02216.05
5.4.390.0530.02616.02
5.4.380.0150.03315.66
5.4.370.0170.03415.61
5.4.360.0230.02715.85
5.4.350.0160.03315.62
5.4.340.0180.03415.82
5.4.330.0070.01012.87
5.4.320.0090.02112.62
5.4.310.0060.02312.68
5.4.300.0130.01712.65
5.4.290.0090.02412.80
5.4.280.0100.02312.67
5.4.270.0070.02612.64
5.4.260.0120.04015.76
5.4.250.0110.02915.79
5.4.240.0090.04315.83
5.4.230.0100.02915.89
5.4.220.0130.03915.87
5.4.210.0080.03715.85
5.4.200.0100.03015.84
5.4.190.0090.03115.90
5.4.180.0100.04215.60
5.4.170.0070.03515.79
5.4.160.0100.03015.93
5.4.150.0080.04315.80
5.4.140.0110.03714.70
5.4.130.0160.02814.62
5.4.120.0130.02814.54
5.4.110.0060.04214.59
5.4.100.0040.03714.62
5.4.90.0160.02114.50
5.4.80.0070.03614.62
5.4.70.0110.03414.63
5.4.60.0050.02914.66
5.4.50.0050.03314.62
5.4.40.0030.03214.56
5.4.30.0080.02814.62
5.4.20.0100.03414.71
5.4.10.0050.03114.67
5.4.00.0040.03414.33
5.3.290.0040.02713.07
5.3.280.0070.04313.92
5.3.270.0080.04013.95
5.3.260.0030.03914.04
5.3.250.0100.03613.94
5.3.240.0120.03713.87
5.3.230.0030.03513.90
5.3.220.0090.04113.95
5.3.210.0150.03713.87
5.3.200.0140.03113.86
5.3.190.0020.03813.96
5.3.180.0180.03514.04
5.3.170.0060.03014.05
5.3.160.0050.03113.94
5.3.150.0130.03013.81
5.3.140.0100.03213.96
5.3.130.0120.02714.03
5.3.120.0110.03413.98
5.3.110.0100.03013.86
5.3.100.0030.04013.66
5.3.90.0080.03013.59
5.3.80.0050.03213.63
5.3.70.0080.02813.48
5.3.60.0070.03713.58
5.3.50.0060.04113.58
5.3.40.0110.02513.51
5.3.30.0030.03313.71
5.3.20.0080.03513.29
5.3.10.0050.03313.30
5.3.00.0150.03313.38
5.2.170.0030.03511.71
5.2.160.0050.02611.79
5.2.150.0050.02711.70
5.2.140.0070.02911.58
5.2.130.0100.02811.58
5.2.120.0060.02411.61
5.2.110.0060.02211.60
5.2.100.0110.02811.73
5.2.90.0110.01911.68
5.2.80.0060.03011.56
5.2.70.0080.02311.55
5.2.60.0030.03011.44
5.2.50.0020.02711.56
5.2.40.0080.02111.51
5.2.30.0050.03311.39
5.2.20.0060.02511.49
5.2.10.0050.02411.30
5.2.00.0050.02711.26
5.1.60.0030.02210.73
5.1.50.0100.01510.52
5.1.40.0050.02310.66
5.1.30.0030.02510.90
5.1.20.0050.03010.83
5.1.10.0090.02210.62
5.1.00.0060.02310.70
5.0.50.0030.0229.38
5.0.40.0060.0209.32
5.0.30.0070.0229.24
5.0.20.0060.0199.21
5.0.10.0050.0179.28
5.0.00.0050.0319.15
4.4.90.0030.0118.64
4.4.80.0030.0178.64
4.4.70.0040.0108.64
4.4.60.0020.0158.64
4.4.50.0020.0138.64
4.4.40.0000.0268.64
4.4.30.0040.0108.64
4.4.20.0040.0128.64
4.4.10.0020.0168.64
4.4.00.0000.0238.64
4.3.110.0050.0168.64
4.3.100.0050.0168.64
4.3.90.0050.0168.64
4.3.80.0040.0238.64
4.3.70.0040.0128.64
4.3.60.0030.0118.64
4.3.50.0030.0178.64
4.3.40.0000.0218.64
4.3.30.0080.0108.64
4.3.20.0030.0128.64
4.3.10.0020.0138.64
4.3.00.0030.01011.68

preferences:
43.3 ms | 401 KiB | 5 Q