3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '~^\|\h+\d+>(?!\h*\Q****END OF INPUT****\E)\h\K.+~mi'; $str = '================================================================================ INPUT FILE ================================================================================ NAME = CO-c0m1.txt | 1> ! HF def2-TZVP opt numfreq | 2> | 3> % scf | 4> convergence tight | 5> end | 6> | 7> * xyz 0 1 | 8> C 0 0 0 | 9> O 0 0 1 | 10> * | 11> | 12> ****END OF INPUT**** ================================================================================ '; preg_match_all($re, $str, $matches); // Print the entire match result print_r($matches);

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.5.10.0130.00716.78
8.5.00.0120.01020.27
8.4.160.0150.00723.09
8.4.150.0020.00014.05
8.4.140.0150.00717.83
8.4.130.0090.01217.84
8.4.120.0090.01120.71
8.4.110.0120.00818.89
8.4.100.0050.00318.82
8.4.90.0060.00218.96
8.4.80.0150.00518.79
8.4.70.0130.00918.27
8.4.60.0090.00219.13
8.4.50.0090.01117.94
8.4.40.0090.00617.91
8.4.30.0070.01417.70
8.4.20.0060.00617.77
8.4.10.0100.00017.72
8.3.290.0140.00720.89
8.3.280.0140.00618.50
8.3.270.0150.00416.69
8.3.260.0120.00816.57
8.3.250.0110.00818.76
8.3.240.0110.00916.91
8.3.230.0120.00616.44
8.3.220.0100.00918.82
8.3.210.0100.00916.82
8.3.200.0040.00516.52
8.3.190.0130.00718.56
8.3.180.0110.00716.59
8.3.170.0110.00417.20
8.3.160.0110.00718.45
8.3.150.0120.00617.20
8.3.140.0060.01316.98
8.3.130.0050.00316.55
8.3.120.0130.00320.80
8.3.110.0090.00020.94
8.3.100.0120.00424.06
8.3.90.0050.00326.77
8.3.80.0060.00318.43
8.3.70.0110.00418.23
8.3.60.0060.00918.31
8.3.50.0150.00716.64
8.3.40.0120.00318.79
8.3.30.0120.00418.70
8.3.20.0000.00821.82
8.3.10.0030.00523.67
8.3.00.0040.00423.70
8.2.300.0150.00520.00
8.2.290.0110.00720.49
8.2.280.0070.00219.99
8.2.270.0070.01318.76
8.2.260.0040.00416.61
8.2.250.0060.00318.59
8.2.240.0040.01517.18
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0000.00826.77
8.2.200.0060.00318.66
8.2.190.0110.00716.58
8.2.180.0100.00716.82
8.2.170.0110.00322.96
8.2.160.0000.01520.36
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.13
8.2.110.0060.00321.23
8.2.100.0030.00917.97
8.2.90.0050.00319.46
8.2.80.0000.00817.97
8.2.70.0090.00017.91
8.2.60.0050.00317.75
8.2.50.0030.00518.10
8.2.40.0040.00420.55
8.2.30.0040.00419.28
8.2.20.0040.00418.03
8.2.10.0040.00417.66
8.2.00.0040.00418.07
8.1.340.0150.00817.73
8.1.330.0110.00921.62
8.1.320.0050.00416.16
8.1.310.0030.01018.63
8.1.300.0060.00317.97
8.1.290.0090.00030.84
8.1.280.0100.01325.92
8.1.270.0050.00323.91
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.46
8.1.230.0100.00322.55
8.1.220.0090.00017.74
8.1.210.0030.00518.77
8.1.200.0050.00317.36
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0040.00418.80
8.1.160.0040.00418.82
8.1.150.0000.00820.28
8.1.140.0030.00517.67
8.1.130.0060.00319.04
8.1.120.0030.00317.57
8.1.110.0030.00617.56
8.1.100.0000.00917.52
8.1.90.0070.00017.50
8.1.80.0080.00017.46
8.1.70.0000.00917.60
8.1.60.0060.00617.59
8.1.50.0090.00317.67
8.1.40.0080.00017.56
8.1.30.0000.00817.80
8.1.20.0070.00017.72
8.1.10.0040.00417.64
8.1.00.0040.00417.62
8.0.300.0040.00419.86
8.0.290.0000.00716.63
8.0.280.0030.00318.32
8.0.270.0030.00317.23
8.0.260.0000.00716.91
8.0.250.0030.00317.07
8.0.240.0060.00317.07
8.0.230.0030.00317.04
8.0.220.0040.00417.00
8.0.210.0000.00716.89
8.0.200.0000.00717.06
8.0.190.0000.00817.06
8.0.180.0000.00716.91
8.0.170.0050.00316.88
8.0.160.0070.00016.88
8.0.150.0040.00416.88
8.0.140.0070.00316.95
8.0.130.0000.00513.37
8.0.120.0050.00316.85
8.0.110.0000.00716.94
8.0.100.0080.00016.86
8.0.90.0000.00717.02
8.0.80.0080.00816.88
8.0.70.0070.00017.03
8.0.60.0040.00416.97
8.0.50.0040.00416.95
8.0.30.0090.00917.04
8.0.20.0110.00817.49
8.0.10.0040.00417.00
8.0.00.0190.00616.96
7.4.330.0050.00015.55
7.4.320.0000.00716.57
7.4.300.0000.00616.72
7.4.290.0050.00316.61
7.4.280.0000.00716.76
7.4.270.0000.00716.57
7.4.260.0000.00916.77
7.4.250.0000.00716.73
7.4.240.0030.00516.68
7.4.230.0030.00316.56
7.4.220.0000.00816.64
7.4.210.0000.01516.75
7.4.200.0040.00416.70
7.4.160.0080.00716.58
7.4.140.0090.01117.86
7.4.130.0090.00916.65
7.4.120.0100.01016.63
7.4.110.0040.01516.87
7.4.100.0100.01016.52
7.4.90.0080.00816.55
7.4.80.0120.00619.39
7.4.70.0060.01016.59
7.4.60.0100.00716.58
7.4.50.0140.00016.49
7.4.40.0030.01316.64
7.4.00.0100.00715.09
7.3.330.0050.00013.13
7.3.320.0060.00013.12
7.3.310.0000.00716.37
7.3.300.0000.00616.24
7.3.290.0050.01116.32
7.3.280.0050.01416.32
7.3.260.0120.00616.35
7.3.250.0130.00416.52
7.3.240.0130.00716.57
7.3.230.0100.00616.48
7.3.210.0090.00616.34
7.3.200.0060.01116.27
7.3.190.0090.00916.31
7.3.180.0130.00316.39
7.3.170.0060.00916.45
7.3.160.0040.01616.25
7.2.330.0090.00916.63
7.2.320.0090.00916.68
7.2.310.0100.01016.54
7.2.300.0090.00916.67
7.2.290.0030.01316.58
7.2.60.0060.00616.91
7.2.30.0130.01017.81
7.2.20.0140.01317.84
7.2.10.0180.00717.68
7.2.00.0150.01418.05
7.1.200.0070.00315.90
7.1.150.0120.01016.76
7.1.140.0120.01116.61
7.1.130.0140.01216.86
7.1.120.0210.01517.07
7.1.110.0190.00616.33
7.1.100.0110.01116.24
7.1.90.0160.01216.35
7.1.80.0180.01116.32
7.1.70.0090.00915.39
7.1.60.0440.01533.33
7.1.50.0410.01833.16
7.1.40.0340.01032.85
7.1.30.0330.01732.84
7.1.20.0290.01233.12
7.1.10.0120.01214.82
7.1.00.0170.01314.96

preferences:
43.39 ms | 403 KiB | 5 Q