3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT >num, blah, blah, blah ATCGACTGAATCGA >num, blah, blah, blah ATCGATCGATCGATCG >num, blah, blah, blah ATCGATCGATCGATCG TEXT; echo preg_replace_callback( "~^>\Knum~m", function () { static $counter = 0; return ++$counter; }, $text );

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.120.0090.00919.17
8.3.110.0090.00020.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0060.00316.63
8.3.70.0040.01118.43
8.3.60.0050.01018.61
8.3.50.0110.01024.46
8.3.40.0040.01121.78
8.3.30.0110.00419.00
8.3.20.0040.00424.18
8.3.10.0040.01124.66
8.3.00.0060.00326.16
8.2.240.0040.00419.02
8.2.230.0090.00022.58
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0100.00016.74
8.2.190.0090.00618.54
8.2.180.0070.00725.92
8.2.170.0070.00719.09
8.2.160.0100.00322.96
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.07
8.2.110.0070.00321.12
8.2.100.0110.00017.84
8.2.90.0030.00519.21
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0030.00618.16
8.2.30.0040.00418.09
8.2.20.0050.00318.01
8.2.10.0040.00419.24
8.2.00.0000.00719.30
8.1.300.0090.00018.11
8.1.290.0060.00318.88
8.1.280.0000.01425.92
8.1.270.0040.00422.12
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00322.69
8.1.230.0060.00618.88
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0040.00417.61
8.1.190.0060.00317.47
8.1.180.0050.00318.10
8.1.170.0060.00318.71
8.1.160.0040.00418.92
8.1.150.0040.00418.93
8.1.140.0060.00318.96
8.1.130.0040.00420.16
8.1.120.0080.00017.61
8.1.110.0000.00817.61
8.1.100.0040.00417.66
8.1.90.0000.00717.67
8.1.80.0060.00417.50
8.1.70.0100.00117.54
8.1.60.0080.00617.73
8.1.50.0070.00817.65
8.1.40.0130.00117.65
8.1.30.0060.00917.80
8.1.20.0090.00717.69
8.1.10.0040.00917.58
8.1.00.0120.00117.59
8.0.300.0050.00218.77
8.0.290.0000.00916.75
8.0.280.0030.00318.53
8.0.270.0030.00318.23
8.0.260.0000.00718.60
8.0.250.0030.00317.05
8.0.240.0040.00417.08
8.0.230.0000.00717.13
8.0.220.0000.00717.16
8.0.210.0100.00017.01
8.0.200.0070.00617.14
8.0.190.0090.00317.10
8.0.180.0080.00517.08
8.0.170.0090.00417.07
8.0.160.0090.00317.07
8.0.150.0070.00516.97
8.0.140.0110.00217.04
8.0.130.0090.00415.83
8.0.120.0070.00617.04
8.0.110.0080.00417.04
8.0.100.0070.00517.08
8.0.90.0100.00217.01
8.0.80.0110.00617.06
8.0.70.0090.00317.01
8.0.60.0060.00617.02
8.0.50.0070.00517.04
8.0.30.0090.00617.02
8.0.20.0120.00217.16
8.0.10.0170.00517.14
8.0.00.0120.00717.13
7.4.330.0000.00515.55
7.4.320.0050.00316.72
7.4.300.0060.00416.69
7.4.290.0060.00516.66
7.4.280.0130.00216.75
7.4.270.0110.00316.73
7.4.260.0120.00215.65
7.4.250.0080.00616.72
7.4.240.0080.00616.71
7.4.230.0120.00216.75
7.4.220.0070.00416.68
7.4.210.0090.00916.79
7.4.200.0090.00216.78
7.4.190.0090.00516.80
7.4.180.0110.00316.77
7.4.160.0120.00116.75
7.4.150.0070.00616.67
7.4.140.0140.00716.62
7.4.130.0150.00416.70
7.4.120.0130.00816.60
7.4.110.0150.00516.74
7.4.100.0160.00516.72
7.4.90.0160.00316.67
7.4.80.0140.00516.78
7.4.70.0120.00716.64
7.4.60.0140.00816.72
7.4.50.0130.00716.66
7.4.40.0110.00716.61
7.4.30.0120.00916.75
7.4.20.0170.00516.67
7.4.10.0090.00916.64
7.4.00.0150.00416.77
7.3.330.0060.00516.35
7.3.320.0100.00315.34
7.3.310.0100.00216.46
7.3.300.0080.00416.48
7.3.290.0080.00716.42
7.3.280.0090.00616.39
7.3.270.0080.00816.48
7.3.260.0100.00516.54
7.3.250.0130.00716.52
7.3.240.0130.00616.61
7.3.230.0120.00816.49
7.3.220.0160.00416.51
7.3.210.0170.00316.44
7.3.200.0110.00816.42
7.3.190.0180.00316.46
7.3.180.0120.01016.50
7.3.170.0160.00616.47
7.3.160.0120.00716.36
7.3.150.0150.00716.43
7.3.140.0160.00516.48
7.3.130.0170.00516.46
7.3.120.0130.00616.52
7.3.110.0110.00916.36
7.3.100.0140.00616.44
7.3.90.0150.00616.58
7.3.80.0160.00616.38
7.3.70.0130.00916.41
7.3.60.0110.00816.33
7.3.50.0150.00616.41
7.3.40.0110.00716.52
7.3.30.0130.00716.55
7.3.20.0090.01117.49
7.3.10.0140.00717.32
7.3.00.0120.00917.34

preferences:
28.05 ms | 403 KiB | 5 Q