3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourcestring='part "C28" { type : "1AB010050093", %cadtype : "1AB010050094", shapeid : "2_1206", descr : "4700.0000 pFarad 10.00 % 100.0 - VE5-VS3", insclass : "CP6A,CP6B", gentype : "RECT_032_016_006", machine : "SMT", %package : "080450E", %_item_number: "508", %_Term_Seq : "" } part "C29" { type : "1AB008140029", shapeid : "2_1206", descr : "150.0000 pFarad 5.00 % 100.0 Volt NP0 CERAMIC CAPACITOR", insclass : "CP6A,CP6B", gentype : "RECT_032_016_006", machine : "SMT", %package : "080450E", %_item_number: "3", %_Term_Seq : "" } part "C30" { type : "1AB0081400 30", shapeid : "2_1206 30", insclass : "CP6A,CP6B 30", gentype : "RECT_032_016_006 30", machine : "SMT 30", %package : "080450E 30 ", %_item_number: "3 30 ", %_Term_Seq : "30" }'; preg_match_all('/^part\s"(?P<ref>[^"]*)"[^{]*{ (?:(?=[^}]*\sdescr\s*:\s+"(?P<descr>[^"]*)"))? (?=[^}]*\stype\s*:\s+"(?P<partnumber>[^"]*)")/imsx',$sourcestring,$matches); echo "<pre>".print_r($matches,true); ?>

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.00818.56
8.3.50.0130.00622.24
8.3.40.0110.00719.09
8.3.30.0120.00619.09
8.3.20.0040.00420.16
8.3.10.0050.00322.14
8.3.00.0040.00422.44
8.2.180.0120.00616.63
8.2.170.0070.01422.96
8.2.160.0040.01121.18
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0070.01026.16
8.2.120.0060.00319.61
8.2.110.0090.00021.30
8.2.100.0080.00417.97
8.2.90.0030.00519.23
8.2.80.0040.00417.97
8.2.70.0080.00018.04
8.2.60.0000.00817.93
8.2.50.0030.00518.10
8.2.40.0040.00420.07
8.2.30.0000.00718.21
8.2.20.0000.00717.92
8.2.10.0040.00417.91
8.2.00.0060.00317.84
8.1.280.0080.00525.92
8.1.270.0080.00021.95
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.80
8.1.230.0080.00418.90
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0100.00017.48
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0090.00018.64
8.1.160.0050.00222.09
8.1.150.0000.00718.75
8.1.140.0000.00817.48
8.1.130.0030.00317.74
8.1.120.0000.00717.53
8.1.110.0040.00417.57
8.1.100.0000.00717.49
8.1.90.0040.00417.49
8.1.80.0050.00217.58
8.1.70.0000.00717.57
8.1.60.0040.00417.57
8.1.50.0040.00417.51
8.1.40.0030.00617.64
8.1.30.0040.00417.78
8.1.20.0000.00817.74
8.1.10.0000.00817.56
8.1.00.0090.00017.63
8.0.300.0030.00618.77
8.0.290.0090.00016.88
8.0.280.0000.00818.52
8.0.270.0070.00017.23
8.0.260.0030.00317.04
8.0.250.0070.00017.06
8.0.240.0030.00317.00
8.0.230.0070.00017.05
8.0.220.0000.00817.11
8.0.210.0040.00417.02
8.0.200.0030.00517.16
8.0.190.0050.00317.03
8.0.180.0030.00316.97
8.0.170.0050.00217.07
8.0.160.0020.00516.94
8.0.150.0070.00017.00
8.0.140.0060.00316.91
8.0.130.0030.00313.41
8.0.120.0080.00016.98
8.0.110.0040.00416.83
8.0.100.0040.00416.79
8.0.90.0040.00417.06
8.0.80.0060.00916.93
8.0.70.0000.00716.93
8.0.60.0040.00417.02
8.0.50.0050.00317.00
8.0.30.0130.00717.18
8.0.20.0040.01517.40
8.0.10.0040.00417.11
8.0.00.0110.00817.01
7.4.330.0000.00515.05
7.4.320.0060.00016.76
7.4.300.0060.00016.64
7.4.290.0040.00416.75
7.4.280.0060.00316.68
7.4.270.0000.00716.70
7.4.260.0030.00716.79
7.4.250.0000.00816.63
7.4.240.0060.00116.77
7.4.230.0050.00316.65
7.4.220.0070.01016.68
7.4.210.0090.00916.79
7.4.200.0050.00316.66
7.4.190.0050.00216.90
7.4.160.0100.00616.40
7.4.150.0080.00817.40
7.4.140.0100.00917.86
7.4.130.0110.00916.65
7.4.120.0100.01016.66
7.4.110.0070.01016.68
7.4.100.0120.00616.77
7.4.90.0150.00616.82
7.4.80.0100.00619.39
7.4.70.0030.01516.55
7.4.60.0030.01316.64
7.4.50.0030.00516.57
7.4.40.0000.01222.77
7.4.30.0000.01716.68
7.4.00.0050.01115.23
7.3.330.0000.00513.14
7.3.320.0030.00313.21
7.3.310.0070.00016.32
7.3.300.0070.00016.25
7.3.290.0030.01216.36
7.3.280.0080.00816.43
7.3.270.0100.00617.40
7.3.260.0120.00616.73
7.3.250.0080.00816.60
7.3.240.0100.00716.46
7.3.230.0140.00616.39
7.3.210.0050.01116.53
7.3.200.0070.00919.39
7.3.190.0110.01116.40
7.3.180.0060.01016.55
7.3.170.0030.01616.44
7.3.160.0130.00316.34
7.3.120.0100.00815.02
7.3.110.0110.00715.03
7.3.100.0130.00315.08
7.3.90.0110.00715.13
7.3.80.0070.01015.02
7.3.70.0000.00914.75
7.3.60.0030.01114.81
7.3.50.0090.00614.93
7.3.40.0030.00914.57
7.3.30.0070.01015.03
7.3.20.0040.00816.75
7.3.10.0100.00316.66
7.3.00.0040.01116.53
7.2.330.0140.00416.76
7.2.320.0100.00716.71
7.2.310.0090.01416.76
7.2.300.0060.00916.62
7.2.290.0030.01316.77
7.2.250.0120.00715.18
7.2.240.0060.00915.23
7.2.230.0000.01215.02
7.2.220.0040.00815.10
7.2.210.0090.00014.82
7.2.200.0040.00715.33
7.2.190.0030.01215.09
7.2.180.0110.00014.89
7.2.170.0130.00315.37
7.1.330.0000.01415.80
7.1.320.0030.00915.87
7.1.310.0030.01015.89
7.1.300.0040.01116.01
7.1.290.0040.01115.86
7.1.280.0100.00716.00
7.1.270.0090.00915.82
7.1.260.0080.00415.86
7.1.200.0050.00215.62
7.1.70.0030.01217.34
7.1.60.0000.01017.38
7.1.50.0040.01517.06
7.1.00.0000.07722.39
7.0.200.0040.00416.78
7.0.140.0070.07022.18
7.0.80.0070.06019.98
7.0.70.0070.04319.89
7.0.60.0570.08019.96
7.0.50.0500.07320.27
7.0.40.0100.05020.00
7.0.30.0130.08320.00
7.0.20.0170.07720.10
7.0.10.0170.07020.13
7.0.00.0030.06020.07
5.6.280.0000.07720.91
5.6.230.0070.09020.63
5.6.220.0070.07320.70
5.6.210.0100.06020.66
5.6.200.0100.08020.93
5.6.190.0030.09321.02
5.6.180.0170.06721.03
5.6.170.0100.06321.00
5.6.160.0070.05021.01
5.6.150.0030.08021.11
5.6.140.0070.07720.96
5.6.130.0070.09021.03
5.6.120.0170.07321.03
5.6.110.0130.07320.99
5.6.100.0070.07721.04
5.6.90.0130.08021.04
5.6.80.0130.07020.39
5.6.70.0130.07320.41
5.6.60.0170.07020.32
5.6.50.0030.05320.50
5.6.40.0100.07720.43
5.6.30.0030.07320.41
5.6.20.0100.07320.30
5.6.10.0070.08320.34
5.6.00.0070.07320.46
5.5.370.0130.07720.45
5.5.360.0100.08020.38
5.5.350.0100.04320.41
5.5.340.0070.07020.74
5.5.330.0030.08320.88
5.5.320.0100.07720.89
5.5.310.0100.08020.80
5.5.300.0100.08020.77
5.5.290.0100.08320.89
5.5.280.0100.08320.92
5.5.270.0200.06320.88
5.5.260.0100.08720.91
5.5.250.0130.07320.73
5.5.240.0070.08020.29
5.5.230.0030.08020.13
5.5.220.0100.07020.25
5.5.210.0100.07320.21
5.5.200.0030.04320.18
5.5.190.0030.04320.22
5.5.180.0030.08020.25
5.5.160.0100.04720.18
5.5.150.0100.06020.12
5.5.140.0000.04720.20
5.5.130.0170.06720.16
5.5.120.0130.07020.13
5.5.110.0100.07320.11
5.5.100.0070.07020.07
5.5.90.0070.05720.06
5.5.80.0270.05720.15
5.5.70.0070.07720.09
5.5.60.0130.07320.11
5.5.50.0100.07020.03
5.5.40.0070.04719.98
5.5.30.0270.06020.07
5.5.20.0100.08020.08
5.5.10.0130.06720.00
5.5.00.0170.07020.01
5.4.450.0070.05319.18
5.4.440.0070.08019.36
5.4.430.0100.08019.36
5.4.420.0070.06319.45
5.4.410.0130.07719.43
5.4.400.0100.07018.90
5.4.390.0130.07319.16
5.4.380.0170.06319.16
5.4.370.0100.07319.21
5.4.360.0100.06718.98
5.4.350.0070.06719.14
5.4.340.0070.06018.87
5.4.320.0000.07319.12
5.4.310.0070.07018.95
5.4.300.0070.07018.89
5.4.290.0130.07718.95
5.4.280.0100.07318.84
5.4.270.0200.06319.03
5.4.260.0030.08719.04
5.4.250.0000.07319.22
5.4.240.0030.08319.20
5.4.230.0030.05718.84
5.4.220.0070.06019.15
5.4.210.0070.07719.24
5.4.200.0070.05319.04
5.4.190.0030.04019.08
5.4.180.0100.05019.03
5.4.170.0170.06719.08
5.4.160.0100.03719.14
5.4.150.0100.08018.82
5.4.140.0130.04316.50
5.4.130.0000.05016.49
5.4.120.0070.03016.33
5.4.110.0030.03716.42
5.4.100.0070.04016.46
5.4.90.0000.03716.46
5.4.80.0030.03316.55
5.4.70.0000.04316.45
5.4.60.0030.03716.47
5.4.50.0070.03016.24
5.4.40.0030.04016.54
5.4.30.0070.04316.44
5.4.20.0070.06716.39
5.4.10.0070.05716.39
5.4.00.0070.03015.89
5.3.290.0030.07714.77
5.3.280.0030.08014.61
5.3.270.0070.07714.71
5.3.260.0100.06714.66
5.3.250.0000.04314.74
5.3.240.0070.03314.70
5.3.230.0070.03714.63
5.3.220.0000.03714.59
5.3.210.0000.04014.68
5.3.200.0030.03014.61
5.3.190.0030.03714.51
5.3.180.0000.04314.59
5.3.170.0000.04014.68
5.3.160.0070.03314.65
5.3.150.0130.02714.66
5.3.140.0030.05714.65
5.3.130.0030.03714.63
5.3.120.0030.04014.59
5.3.110.0070.05314.46
5.3.100.0030.04714.10
5.3.90.0030.03713.96
5.3.80.0030.03314.07
5.3.70.0030.03714.04
5.3.60.0030.05313.97
5.3.50.0030.03013.83
5.3.40.0030.04013.83
5.3.30.0100.02713.83
5.3.20.0030.03013.82
5.3.10.0030.03013.68
5.3.00.0030.03013.65
5.2.170.0070.02011.98
5.2.160.0030.02311.98
5.2.150.0030.02711.98
5.2.140.0000.03011.98
5.2.130.0030.02311.98
5.2.120.0000.03711.98
5.2.110.0030.02311.98
5.2.100.0000.03711.98
5.2.90.0000.02311.98
5.2.80.0000.03011.98
5.2.70.0070.02711.98
5.2.60.0070.03711.98
5.2.50.0000.04711.98
5.2.40.0070.04011.98
5.2.30.0030.02711.98
5.2.20.0030.03311.98
5.2.10.0000.03011.98
5.2.00.0030.03011.98
5.1.60.0070.01711.98
5.1.50.0000.02011.98
5.1.40.0000.02011.98
5.1.30.0000.02311.98
5.1.20.0000.02311.98
5.1.10.0030.02311.98
5.1.00.0000.02311.98
5.0.50.0000.01711.98
5.0.40.0000.02311.98
5.0.30.0000.02711.98
5.0.20.0000.01711.98
5.0.10.0000.02011.98
5.0.00.0030.02311.98
4.4.90.0000.01711.98
4.4.80.0030.02011.98
4.4.70.0030.01311.98
4.4.60.0070.01011.98
4.4.50.0030.01011.98
4.4.40.0000.02311.98
4.4.30.0000.01311.98
4.4.20.0070.01011.98
4.4.10.0000.01311.98
4.4.00.0000.03311.98
4.3.110.0000.01311.98
4.3.100.0030.01311.98
4.3.90.0000.01311.98
4.3.80.0000.04711.98
4.3.70.0000.01711.98
4.3.60.0000.01311.98
4.3.50.0030.01311.98
4.3.40.0000.02311.98
4.3.30.0000.02011.98
4.3.20.0000.01711.98
4.3.10.0000.01311.98
4.3.00.0000.01311.98

preferences:
46.28 ms | 401 KiB | 5 Q