3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?<=\w)(?=(?:\w\w)+$)/m'; $str = '121510'; preg_match_all($re, $str, $matches); // Print the entire match result var_dump($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.3.60.0070.00718.30
8.3.50.0120.00318.35
8.3.40.0110.00418.79
8.3.30.0040.01118.80
8.3.20.0000.00818.77
8.3.10.0030.00523.48
8.3.00.0070.00020.66
8.2.180.0100.01018.20
8.2.170.0120.00422.96
8.2.160.0100.00321.02
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0140.00317.78
8.2.120.0080.00026.35
8.2.110.0000.01122.24
8.2.100.0080.00318.03
8.2.90.0070.00317.61
8.2.80.0050.00317.97
8.2.70.0040.00417.68
8.2.60.0050.00317.84
8.2.50.0000.00918.10
8.2.40.0090.00019.18
8.2.30.0040.00419.21
8.2.20.0040.00417.92
8.2.10.0040.00418.00
8.2.00.0000.01117.81
8.1.280.0090.00925.92
8.1.270.0030.00618.88
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00923.96
8.1.230.0070.00417.70
8.1.220.0070.00317.74
8.1.210.0060.00618.77
8.1.200.0030.00617.47
8.1.190.0030.00717.13
8.1.180.0060.00318.10
8.1.170.0040.00418.63
8.1.160.0060.00318.89
8.1.150.0050.00218.83
8.1.140.0000.00722.21
8.1.130.0030.00320.01
8.1.120.0040.00417.46
8.1.110.0070.00017.50
8.1.100.0050.00217.59
8.1.90.0070.00017.57
8.1.80.0040.00417.43
8.1.70.0050.00517.52
8.1.60.0000.00817.68
8.1.50.0040.00417.61
8.1.40.0000.00817.63
8.1.30.0040.00417.68
8.1.20.0030.00617.73
8.1.10.0040.00417.56
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0080.00016.88
8.0.280.0000.00718.30
8.0.270.0090.00017.11
8.0.260.0030.00520.21
8.0.250.0090.00017.06
8.0.240.0040.00417.11
8.0.230.0000.00717.14
8.0.220.0050.00216.90
8.0.210.0000.00816.90
8.0.200.0070.00016.95
8.0.190.0030.00517.09
8.0.180.0000.00717.03
8.0.170.0030.00616.87
8.0.160.0040.00416.86
8.0.150.0030.00616.95
8.0.140.0050.00316.96
8.0.130.0000.00613.39
8.0.120.0030.00617.01
8.0.110.0000.00716.92
8.0.100.0020.00516.88
8.0.90.0000.00817.00
8.0.80.0080.01116.95
8.0.70.0020.00517.01
8.0.60.0000.00716.90
8.0.50.0000.00816.93
8.0.30.0090.00917.25
8.0.20.0090.01017.40
8.0.10.0000.00817.12
8.0.00.0120.00716.98
7.4.330.0060.00015.55
7.4.320.0000.00716.75
7.4.300.0070.00016.79
7.4.290.0080.00016.54
7.4.280.0080.00016.52
7.4.270.0040.00416.56
7.4.260.0000.00816.64
7.4.250.0040.00416.70
7.4.240.0030.00516.71
7.4.230.0000.00716.75
7.4.220.0030.00516.64
7.4.210.0060.00916.79
7.4.200.0080.00016.77
7.4.160.0100.00816.69
7.4.140.0110.00717.86
7.4.130.0090.00916.67
7.4.120.0110.00916.72
7.4.110.0140.00716.69
7.4.100.0120.00916.48
7.4.90.0160.01016.73
7.4.80.0090.00919.39
7.4.70.0120.00616.71
7.4.60.0040.01516.83
7.4.50.0070.01016.29
7.4.40.0100.01316.43
7.4.00.0140.00315.22
7.3.330.0000.00513.23
7.3.320.0000.00813.19
7.3.310.0050.00516.44
7.3.300.0050.00216.24
7.3.290.0070.00016.18
7.3.280.0070.00716.29
7.3.260.0110.01316.54
7.3.240.0100.00716.52
7.3.230.0060.01016.29
7.3.210.0090.00916.21
7.3.200.0160.00016.77
7.3.190.0110.00516.60
7.3.180.0150.00416.18
7.3.170.0030.01316.27
7.3.160.0110.00916.56
7.2.330.0030.01316.54
7.2.320.0130.00716.49
7.2.310.0100.00616.59
7.2.300.0040.01316.54
7.2.290.0150.00616.53
7.2.110.0440.00614.72
7.2.100.0470.01114.64
7.2.90.0390.00714.65
7.2.80.0410.00614.75
7.2.70.0850.00314.92
7.2.60.0560.00814.94
7.2.50.0630.00915.13
7.2.40.0490.00615.01
7.2.30.0490.00514.90
7.2.20.0500.00714.81
7.2.10.0510.00514.83
7.2.00.0560.00214.84
7.1.230.0330.00813.89
7.1.220.0380.00613.71
7.1.210.0390.00714.02
7.1.200.0460.00313.80
7.1.190.0810.00713.76
7.1.180.0610.00713.90
7.1.170.0480.00713.96
7.1.160.0600.01113.78
7.1.150.0480.00713.93
7.1.140.0440.01113.81
7.1.130.0460.00714.03
7.1.120.0510.00413.82
7.1.110.0430.00814.01
7.1.100.0480.00714.11
7.1.90.0460.00513.89
7.1.80.0400.01113.91
7.1.70.0440.00813.99
7.1.60.0640.00832.17
7.1.50.0760.01032.06
7.1.40.0960.00632.03
7.1.30.0910.01631.87
7.1.20.0990.01031.99
7.1.10.0600.00713.83
7.1.00.0740.00614.05
5.6.380.0060.00914.29

preferences:
44.04 ms | 401 KiB | 5 Q