3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sepChmp = '`'; $dlmtTxt = '§'; $sepLigne = "\v"; $chaines = '§Laurent TOGIER§`§19\` Rue Bréa§`75006`PARIS'. $sepLigne . 'Laurent TOGIER`§\` Rue Bréa§`75006`PARIS'. $sepLigne . 'Laurent TOGIER`§19\`§`75006`PARIS'. $sepLigne . 'Laurent TOGIER`§\`§`75006`PARIS'. $sepLigne . 'Laurent TOGIER`§19\` Rue\` Bréa§`75006`PARIS '. $sepLigne . 'Laurent TOGIER`§\`\`§`75006`PARIS'. $sepLigne . '§il a dit §§aie§§ ` en \\criant§'; $lignes = []; $regexp = sprintf( '#(?<![%1$s\\\])%1$s(?!%1$s)(?<data>.*?)(?<![%1$s\\\])%1$s(?<sep>[%2$s%3$s]|$)|(?<data>[^%2$s%3$s]*)(?<sep>[%2$s%3$s]|$)#Jus', $dlmtTxt, $sepChmp, $sepLigne ); if( preg_match_all($regexp, $chaines, $matches, PREG_SET_ORDER) ) { $ligne = []; foreach($matches as $match) { $ligne[] = stripslashes(str_replace(["\\$dlmtTxt", "$dlmtTxt$dlmtTxt"], $dlmtTxt, $match['data'])); if($match['sep'] !== $sepChmp && count(array_filter($ligne))) { $lignes[] = $ligne; $ligne = []; } } } var_dump($lignes);

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.0140.00016.88
8.3.60.0110.01118.68
8.3.50.0160.00318.57
8.3.40.0170.00718.93
8.3.30.0120.00419.08
8.3.20.0040.00420.90
8.3.10.0050.00323.65
8.3.00.0000.00820.95
8.2.190.0110.00416.63
8.2.180.0130.00718.91
8.2.170.0090.00922.96
8.2.160.0110.00420.35
8.2.150.0040.00424.18
8.2.140.0050.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00419.51
8.2.110.0070.00319.38
8.2.100.0090.00318.09
8.2.90.0090.00019.27
8.2.80.0080.00019.29
8.2.70.0030.00517.93
8.2.60.0080.00018.16
8.2.50.0040.00418.10
8.2.40.0050.00319.47
8.2.30.0030.00619.37
8.2.20.0040.00418.18
8.2.10.0030.00619.41
8.2.00.0080.00018.16
8.1.280.0070.01025.92
8.1.270.0050.00320.38
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0060.00322.05
8.1.230.0080.00420.96
8.1.220.0000.00817.77
8.1.210.0030.00618.93
8.1.200.0030.00717.47
8.1.190.0050.00317.47
8.1.180.0000.00818.10
8.1.170.0080.00018.78
8.1.160.0070.00018.96
8.1.150.0070.00418.96
8.1.140.0040.00419.16
8.1.130.0040.00420.19
8.1.120.0040.00417.61
8.1.110.0030.00617.53
8.1.100.0000.01217.66
8.1.90.0030.00517.63
8.1.80.0000.00917.49
8.1.70.0070.00017.55
8.1.60.0000.00817.59
8.1.50.0030.00617.65
8.1.40.0060.00317.66
8.1.30.0030.00617.74
8.1.20.0000.00917.85
8.1.10.0000.00817.74
8.1.00.0040.00417.70
8.0.300.0000.00720.16
8.0.290.0000.00817.00
8.0.280.0070.00018.40
8.0.270.0000.00817.21
8.0.260.0000.00718.40
8.0.250.0040.00417.10
8.0.240.0000.00717.17
8.0.230.0000.00717.10
8.0.220.0030.00517.20
8.0.210.0070.00017.23
8.0.200.0000.00717.22
8.0.190.0080.00017.19
8.0.180.0040.00417.06
8.0.170.0030.00517.02
8.0.160.0040.00417.13
8.0.150.0040.00416.89
8.0.140.0000.00816.95
8.0.130.0000.00613.51
8.0.120.0040.00417.16
8.0.110.0000.00817.09
8.0.100.0000.00817.25
8.0.90.0040.00417.21
8.0.80.0100.00717.13
8.0.70.0050.00317.17
8.0.60.0040.00417.25
8.0.50.0040.00417.13
8.0.30.0070.01017.26
8.0.20.0100.01017.19
8.0.10.0030.00517.21
8.0.00.0090.00917.04
7.4.330.0020.00216.77
7.4.320.0060.00016.81
7.4.300.0000.00716.80
7.4.290.0030.00316.80
7.4.280.0000.00816.68
7.4.270.0000.00716.95
7.4.260.0040.00416.83
7.4.250.0040.00416.85
7.4.240.0070.00016.79
7.4.230.0080.00016.96
7.4.220.0030.00616.60
7.4.210.0060.01116.97
7.4.200.0080.00016.91
7.4.160.0090.00816.71
7.4.140.0080.01117.86
7.4.130.0120.00816.72
7.4.120.0120.01016.91
7.4.110.0070.01116.62
7.4.100.0030.02016.85
7.4.90.0120.00616.74
7.4.80.0060.01819.39
7.4.70.0050.01216.71
7.4.60.0030.01416.82
7.4.50.0060.00616.67
7.4.40.0150.00616.79
7.4.00.0060.01015.50
7.3.330.0050.00013.43
7.3.320.0000.00613.46
7.3.310.0000.00816.63
7.3.300.0000.00716.55
7.3.290.0000.00716.59
7.3.280.0130.00616.55
7.3.260.0080.01116.71
7.3.240.0080.01116.57
7.3.230.0070.01116.70
7.3.210.0110.00716.52
7.3.200.0140.00616.83
7.3.190.0040.01316.73
7.3.180.0110.01216.40
7.3.170.0120.00616.61
7.3.160.0090.01416.48
7.3.120.0100.01014.91
7.3.110.0090.00915.09
7.3.100.0070.01015.04
7.3.90.0030.01015.06
7.3.80.0040.01214.92
7.3.70.0100.00314.87
7.3.60.0030.00715.01
7.3.50.0080.00414.83
7.3.40.0110.00314.97
7.3.30.0080.00815.18
7.3.20.0030.00916.08
7.3.10.0090.00815.96
7.3.00.0080.01015.94
7.2.330.0170.01416.92
7.2.320.0130.01416.88
7.2.310.0110.00716.91
7.2.300.0080.01116.88
7.2.290.0110.00816.85
7.2.250.0000.01615.01
7.2.240.0030.01715.22
7.2.230.0070.01115.48
7.2.220.0090.00615.23
7.2.210.0030.01215.45
7.2.200.0090.00915.19
7.2.190.0040.00715.27
7.2.180.0090.00615.30
7.2.170.0090.00715.22
7.2.160.0090.00615.31
7.2.150.0150.00915.39
7.2.140.0120.00315.11
7.2.130.0150.00615.29
7.2.120.0190.00315.41
7.2.110.0070.01115.18
7.2.100.0050.01015.39
7.2.90.0070.01015.56
7.2.80.0280.01815.20
7.2.70.0180.00715.03
7.2.60.0070.01115.32
7.2.50.0150.00515.18
7.2.40.0120.01215.31
7.2.30.0790.01015.31
7.2.20.0190.00615.37
7.2.10.0150.00315.09
7.2.00.0190.00715.25
7.1.330.0090.00615.93
7.1.320.0040.01415.92
7.1.310.0030.01016.13
7.1.300.0040.00815.96
7.1.290.0100.00316.12
7.1.280.0110.00714.83
7.1.270.0110.00615.07
7.1.260.0050.01115.02
7.1.250.0060.01214.27

preferences:
49.62 ms | 401 KiB | 5 Q