3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar = ['filename.en_us.srt', 'filename.en_uk.srt', 'filename.fr_fr.srt']; foreach($ar as $a) { preg_match('/\.([^\.]*)\.srt$/', $a, $matches); echo $matches[1]."\n"; }

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.33
8.3.50.0110.00318.11
8.3.40.0100.01019.04
8.3.30.0090.00618.76
8.3.20.0000.00821.97
8.3.10.0090.00020.70
8.3.00.0040.00419.14
8.2.180.0180.00416.38
8.2.170.0110.00422.96
8.2.160.0100.00319.29
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00319.95
8.2.120.0030.00626.35
8.2.110.0000.01122.20
8.2.100.0070.00418.16
8.2.90.0060.00318.18
8.2.80.0040.00417.97
8.2.70.0000.01017.84
8.2.60.0000.00817.93
8.2.50.0060.00318.10
8.2.40.0000.00822.28
8.2.30.0050.00219.33
8.2.20.0050.00218.14
8.2.10.0030.00618.13
8.2.00.0040.00417.98
8.1.280.0110.00425.92
8.1.270.0050.00222.23
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00423.98
8.1.230.0060.00620.89
8.1.220.0030.00617.74
8.1.210.0000.00818.83
8.1.200.0000.00817.35
8.1.190.0000.00817.47
8.1.180.0080.00018.10
8.1.170.0080.00020.57
8.1.160.0050.00319.04
8.1.150.0000.00718.94
8.1.140.0060.00319.60
8.1.130.0070.00018.93
8.1.120.0050.00317.54
8.1.110.0000.00717.61
8.1.100.0030.00617.55
8.1.90.0070.00017.46
8.1.80.0040.00417.55
8.1.70.0030.00517.66
8.1.60.0030.00517.71
8.1.50.0040.00417.72
8.1.40.0040.00417.52
8.1.30.0050.00317.69
8.1.20.0000.00817.71
8.1.10.0070.00017.55
8.1.00.0040.00417.66
8.0.300.0000.00720.09
8.0.290.0030.00616.88
8.0.280.0030.00318.50
8.0.270.0070.00017.23
8.0.260.0030.00320.76
8.0.250.0030.00317.12
8.0.240.0000.00717.16
8.0.230.0070.00017.02
8.0.220.0000.00717.05
8.0.210.0070.00017.05
8.0.200.0030.00317.08
8.0.190.0000.00817.13
8.0.180.0000.00816.95
8.0.170.0080.00016.95
8.0.160.0060.00316.96
8.0.150.0000.00717.03
8.0.140.0040.00317.04
8.0.130.0050.00013.45
8.0.120.0000.00816.90
8.0.110.0000.00716.90
8.0.100.0000.00816.88
8.0.90.0080.00017.09
8.0.80.0120.00317.08
8.0.70.0040.00416.89
8.0.60.0000.00817.06
8.0.50.0070.00016.85
8.0.30.0070.01117.17
8.0.20.0130.00617.46
8.0.10.0030.00517.02
8.0.00.0080.00817.03
7.4.330.0000.00515.55
7.4.320.0050.00316.70
7.4.300.0000.00616.85
7.4.290.0030.00316.63
7.4.280.0000.00716.60
7.4.270.0030.00316.86
7.4.260.0040.00416.72
7.4.250.0040.00416.78
7.4.240.0070.00016.71
7.4.230.0030.00316.60
7.4.220.0180.00616.76
7.4.210.0070.00716.67
7.4.200.0070.00016.72
7.4.160.0120.00416.55
7.4.150.0080.01117.40
7.4.140.0080.00917.86
7.4.130.0090.00916.79
7.4.120.0120.00716.68
7.4.110.0130.01016.61
7.4.100.0160.00316.60
7.4.90.0070.01016.59
7.4.80.0060.00919.39
7.4.70.0080.00816.57
7.4.60.0120.00316.55
7.4.50.0030.01016.57
7.4.40.0120.00616.66
7.4.30.0150.00316.65
7.4.00.0080.00414.90
7.3.330.0000.00613.28
7.3.320.0000.00513.27
7.3.310.0000.00716.57
7.3.300.0070.00016.46
7.3.290.0080.00916.42
7.3.280.0100.00816.42
7.3.270.0210.00017.40
7.3.260.0120.00416.57
7.3.250.0090.01116.54
7.3.240.0070.00916.53
7.3.230.0090.00916.52
7.3.210.0100.00716.53
7.3.200.0060.01016.52
7.3.190.0070.01016.48
7.3.180.0030.01416.43
7.3.170.0000.01716.66
7.3.160.0130.00316.70
7.2.330.0030.01416.86
7.2.320.0140.00616.94
7.2.310.0070.01016.89
7.2.300.0000.01616.78
7.2.290.0060.01016.89
7.2.60.0030.00817.20
7.1.200.0080.00816.00
7.1.70.0110.00917.38
7.1.60.0280.00635.09
7.1.50.0180.01234.75
7.1.40.0320.01034.78
7.1.30.0270.01534.94
7.1.20.0260.01634.89
7.1.10.0120.00916.76
7.1.00.0100.01017.14
7.0.200.0150.00316.88
7.0.190.0060.00917.07
7.0.180.0110.00516.48
7.0.170.0090.01216.34
7.0.160.0070.01316.38
7.0.150.0080.01216.49
7.0.140.0060.01116.77
7.0.130.0100.01016.75
7.0.120.0090.00616.74
7.0.110.0040.01216.52
7.0.100.0070.01016.62
7.0.90.0130.00616.48
7.0.80.0100.01016.62
7.0.70.0030.01716.43
7.0.60.0080.01116.35
7.0.50.0040.01416.77
7.0.40.0100.01016.69
7.0.30.0130.00616.80
7.0.20.0130.00716.54
7.0.10.0090.01216.71
7.0.00.0030.01716.66

preferences:
44.7 ms | 400 KiB | 5 Q