3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = '10001212121212121500'; # you've to make it string then if (preg_match('/1000(.*?)1500/', $number, $match) == 1) { echo $match[1]; } ?>

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.4.120.0040.00420.60
8.4.110.0050.00418.95
8.4.100.0120.01017.69
8.4.90.0120.00718.07
8.4.80.0060.00317.95
8.4.70.0120.00818.09
8.4.60.0080.01219.04
8.4.50.0110.00920.78
8.4.40.0100.01019.87
8.4.30.0040.00417.87
8.4.20.0180.00420.82
8.4.10.0060.00319.98
8.3.250.0110.00818.68
8.3.240.0120.00616.76
8.3.230.0140.00616.65
8.3.220.0080.00917.29
8.3.210.0120.00716.67
8.3.200.0060.00316.82
8.3.190.0140.00517.27
8.3.180.0080.01016.68
8.3.170.0130.00617.31
8.3.160.0050.00318.50
8.3.150.0120.00316.80
8.3.140.0040.00417.17
8.3.130.0040.00418.48
8.3.120.0070.00018.91
8.3.110.0030.00620.94
8.3.100.0100.00024.06
8.3.90.0080.00026.77
8.3.80.0070.00417.97
8.3.70.0100.01016.75
8.3.60.0090.00618.46
8.3.50.0030.01018.43
8.3.40.0150.00018.78
8.3.30.0070.01018.78
8.3.20.0070.00021.77
8.3.10.0100.00020.83
8.3.00.0080.00019.38
8.2.290.0100.00918.86
8.2.280.0110.01320.46
8.2.270.0140.00417.44
8.2.260.0110.00718.43
8.2.250.0080.00016.99
8.2.240.0030.01318.93
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0110.00426.77
8.2.200.0060.00318.54
8.2.190.0090.00616.89
8.2.180.0110.01118.66
8.2.170.0160.00022.96
8.2.160.0110.00422.24
8.2.150.0000.00824.18
8.2.140.0000.00924.66
8.2.130.0070.00320.53
8.2.120.0000.00726.35
8.2.110.0060.00319.45
8.2.100.0100.00317.97
8.2.90.0000.00918.09
8.2.80.0000.00819.14
8.2.70.0000.00918.05
8.2.60.0000.00818.16
8.2.50.0000.00818.10
8.2.40.0080.00019.52
8.2.30.0040.00419.21
8.2.20.0000.00718.15
8.2.10.0000.00719.27
8.2.00.0050.00218.07
8.1.330.0130.00616.63
8.1.320.0100.00916.68
8.1.310.0110.00718.32
8.1.300.0080.00818.28
8.1.290.0060.00330.84
8.1.280.0120.00925.92
8.1.270.0090.00023.91
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.05
8.1.230.0070.00420.87
8.1.220.0030.00617.74
8.1.210.0040.00418.83
8.1.200.0030.00617.47
8.1.190.0080.00017.25
8.1.180.0000.00818.10
8.1.170.0050.00318.84
8.1.160.0060.00318.87
8.1.150.0030.00318.85
8.1.140.0000.00720.29
8.1.130.0000.00717.51
8.1.120.0000.00717.51
8.1.110.0000.00817.67
8.1.100.0000.00717.51
8.1.90.0040.00417.63
8.1.80.0030.00317.46
8.1.70.0030.00717.50
8.1.60.0040.00417.78
8.1.50.0040.00417.66
8.1.40.0040.00417.70
8.1.30.0000.00817.77
8.1.20.0000.00817.81
8.1.10.0070.00017.66
8.1.00.0000.00717.67
8.0.300.0000.00720.14
8.0.290.0040.00416.75
8.0.280.0050.00318.40
8.0.270.0000.00717.28
8.0.260.0000.00716.96
8.0.250.0050.00317.11
8.0.240.0080.00016.98
8.0.230.0050.00316.90
8.0.220.0000.00716.84
8.0.210.0060.00316.88
8.0.200.0080.00017.02
8.0.190.0000.00817.09
8.0.180.0030.00616.95
8.0.170.0040.00416.93
8.0.160.0000.00716.87
8.0.150.0040.00416.96
8.0.140.0080.00016.94
8.0.130.0030.00313.41
8.0.120.0060.00316.93
8.0.110.0000.00717.11
8.0.100.0000.00717.07
8.0.90.0040.00416.91
8.0.80.0030.01316.98
8.0.70.0040.00416.93
8.0.60.0070.00016.98
8.0.50.0030.00516.93
8.0.30.0120.00617.15
8.0.20.0090.00917.27
8.0.10.0040.00417.18
8.0.00.0050.01216.98
7.4.330.0000.00615.55
7.4.320.0070.00016.71
7.4.300.0070.00016.72
7.4.290.0000.00716.81
7.4.280.0050.00316.83
7.4.270.0030.00716.80
7.4.260.0070.00016.71
7.4.250.0000.00816.78
7.4.240.0030.00316.69
7.4.230.0070.00016.64
7.4.220.0040.00416.57
7.4.210.0080.00616.76
7.4.200.0070.00016.60
7.4.160.0090.00916.68
7.4.140.0060.01217.86
7.4.130.0100.00716.67
7.4.120.0120.00616.77
7.4.110.0120.00616.66
7.4.100.0130.00316.71
7.4.90.0030.01416.61
7.4.80.0060.01319.39
7.4.70.0110.00616.81
7.4.60.0100.00716.64
7.4.50.0070.01016.75
7.4.40.0100.00716.68
7.4.00.0110.00715.29
7.3.330.0000.00613.34
7.3.320.0030.00313.34
7.3.310.0070.00016.34
7.3.300.0050.00216.39
7.3.290.0040.00416.40
7.3.280.0130.00516.31
7.3.260.0110.01016.49
7.3.240.0080.01316.52
7.3.230.0070.01016.64
7.3.210.0130.00616.45
7.3.200.0100.00616.47
7.3.190.0100.00716.34
7.3.180.0170.00016.64
7.3.170.0100.01016.61
7.3.160.0070.01016.54
7.3.120.0050.01014.85
7.3.110.0090.00714.94
7.3.100.0100.00515.13
7.3.90.0090.00614.82
7.3.80.0030.01315.12
7.3.70.0100.00314.94
7.3.60.0050.00814.91
7.3.50.0080.00614.75
7.3.40.0060.00414.64
7.3.30.0050.00714.74
7.3.20.0190.00616.16
7.3.10.0140.00816.07
7.3.00.0180.00416.24
7.2.330.0080.00816.79
7.2.320.0090.00916.71
7.2.310.0030.01316.88
7.2.300.0120.00316.84
7.2.290.0070.01316.94
7.2.250.0100.01014.92
7.2.240.0050.01215.13
7.2.230.0020.01515.11
7.2.220.0050.00915.19
7.2.210.0080.01015.17
7.2.200.0080.00615.26
7.2.190.0030.01115.08
7.2.180.0060.00615.19
7.2.170.0050.01015.13
7.2.160.0030.01215.20
7.2.150.0230.00616.02
7.2.140.0240.00616.08
7.2.130.0280.00516.19
7.2.120.0230.01016.19
7.2.110.0340.00716.14
7.2.100.0270.00716.00
7.2.90.0320.00515.89
7.2.80.0260.00816.28
7.2.70.0250.01016.15
7.2.60.0280.00515.99
7.2.50.0290.00716.11
7.2.40.0800.00316.08
7.2.30.0350.00616.33
7.2.20.0410.00516.13
7.2.10.0280.00816.11
7.2.00.0180.01016.21
7.1.330.0020.01215.99
7.1.320.0070.00415.80
7.1.310.0050.01115.95
7.1.300.0030.00915.89
7.1.290.0000.01115.92
7.1.280.0070.01015.98
7.1.270.0030.00915.90
7.1.260.0060.00616.04
7.1.250.0180.01014.97

preferences:
29.33 ms | 403 KiB | 5 Q