3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "The time is 1020 and the time is 1340 and 1550"; $data = preg_replace('/\b(\d{2})(\d{2})\b/', "$1:$2", $data); echo $data;

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.10.0000.00917.77
8.3.140.0040.00416.70
8.3.130.0080.00018.50
8.3.120.0060.01020.70
8.3.110.0070.00320.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00618.43
8.3.70.0090.00916.63
8.3.60.0110.00418.55
8.3.50.0060.00617.48
8.3.40.0110.00418.96
8.3.30.0120.00319.02
8.3.20.0040.00420.76
8.3.10.0090.00321.91
8.3.00.0050.00320.84
8.2.260.0080.00018.94
8.2.250.0050.00318.50
8.2.240.0040.01119.05
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00618.54
8.2.190.0150.00016.58
8.2.180.0160.00018.66
8.2.170.0040.01118.81
8.2.160.0130.00022.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00818.09
8.2.120.0040.00426.35
8.2.110.0060.00322.20
8.2.100.0110.00417.88
8.2.90.0000.00819.21
8.2.80.0030.00518.04
8.2.70.0030.00617.88
8.2.60.0050.00317.50
8.2.50.0060.00317.75
8.2.40.0000.00819.32
8.2.30.0050.00319.28
8.2.20.0040.00417.96
8.2.10.0070.00019.34
8.2.00.0070.00318.36
8.1.300.0080.01219.60
8.1.290.0080.00030.84
8.1.280.0100.01025.92
8.1.270.0000.00820.38
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00021.00
8.1.230.0070.00417.77
8.1.220.0060.00317.79
8.1.210.0030.00719.26
8.1.200.0060.00317.47
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0040.00418.90
8.1.150.0000.00718.85
8.1.140.0030.00319.02
8.1.130.0000.00620.30
8.1.120.0040.00417.49
8.1.110.0000.00817.43
8.1.100.0080.00017.55
8.1.90.0040.00417.55
8.1.80.0030.00517.57
8.1.70.0000.00717.54
8.1.60.0050.00517.71
8.1.50.0040.00417.57
8.1.40.0000.00817.61
8.1.30.0000.01017.66
8.1.20.0060.00317.77
8.1.10.0000.00817.73
8.1.00.0000.00717.64
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0000.00718.37
8.0.270.0040.00417.29
8.0.260.0030.00318.40
8.0.250.0050.00517.04
8.0.240.0000.00717.00
8.0.230.0030.00316.93
8.0.220.0060.00316.97
8.0.210.0000.00716.92
8.0.200.0000.00716.91
8.0.190.0000.00717.07
8.0.180.0040.00417.02
8.0.170.0030.00516.96
8.0.160.0050.00216.96
8.0.150.0000.00716.90
8.0.140.0000.00716.81
8.0.130.0030.00313.34
8.0.120.0060.00316.80
8.0.110.0040.00416.91
8.0.100.0070.00016.84
8.0.90.0040.00417.04
8.0.80.0090.00617.03
8.0.70.0000.00816.87
8.0.60.0000.00716.81
8.0.50.0070.00016.76
8.0.30.0130.00617.26
8.0.20.0090.01717.07
8.0.10.0000.00717.05
8.0.00.0080.01016.80
7.4.330.0000.00616.80
7.4.320.0030.00316.70
7.4.300.0060.00016.77
7.4.290.0070.00016.59
7.4.280.0040.00416.66
7.4.270.0000.00716.57
7.4.260.0050.00216.64
7.4.250.0040.00416.75
7.4.240.0040.00416.59
7.4.230.0000.00716.47
7.4.220.0040.00416.57
7.4.210.0100.00616.75
7.4.200.0030.00516.85
7.4.160.0110.00716.63
7.4.130.0150.00316.46
7.4.120.0100.00816.57
7.4.110.0070.01816.66
7.4.100.0060.01216.42
7.4.90.0080.01616.61
7.4.80.0030.01319.39
7.4.70.0100.00716.76
7.4.60.0070.01016.57
7.4.50.0070.00316.50
7.4.40.0030.01316.64
7.4.10.0070.01314.95
7.4.00.0050.01114.99
7.3.330.0020.00213.23
7.3.320.0030.00313.29
7.3.310.0000.00716.23
7.3.300.0060.00316.27
7.3.290.0030.00316.36
7.3.280.0060.01016.33
7.3.260.0100.00716.49
7.3.240.0090.00916.66
7.3.230.0120.01216.71
7.3.210.0100.00716.59
7.3.200.0130.00316.59
7.3.190.0100.00616.67
7.3.180.0100.00716.30
7.3.170.0230.00016.52
7.3.160.0150.00616.81
7.3.130.0140.00315.07
7.3.120.0110.00714.98
7.3.110.0060.00915.10
7.3.100.0040.00715.12
7.3.90.0130.00314.79
7.3.80.0030.01014.97
7.3.70.0070.00714.69
7.3.60.0050.00514.77
7.3.50.0070.00314.75
7.3.40.0070.00614.76
7.3.30.0070.00814.84
7.3.20.0120.00116.64
7.3.10.0050.00716.68
7.3.00.0110.00816.66
7.2.330.0030.01416.69
7.2.320.0090.01316.57
7.2.310.0140.00316.70
7.2.300.0110.00616.71
7.2.290.0140.00316.73
7.2.260.0090.00914.96
7.2.250.0120.00615.03
7.2.240.0070.00715.14
7.2.230.0070.00315.05
7.2.220.0100.00315.00
7.2.210.0070.00714.89
7.2.200.0060.00615.18
7.2.190.0110.00414.81
7.2.180.0030.00915.09
7.2.170.0080.00315.15
7.2.160.0090.00315.05
7.2.150.0050.00816.97
7.2.140.0110.00916.97
7.2.130.0070.00516.93
7.2.120.0090.00516.88
7.2.110.0070.00816.99
7.2.100.0050.00817.03
7.2.90.0110.00117.02
7.2.80.0030.01017.09
7.2.70.0080.00916.91
7.2.60.0070.00717.09
7.2.50.0070.00617.04
7.2.40.0050.00717.00
7.2.30.0090.00217.08
7.2.20.0060.00817.15
7.2.10.0030.00917.11
7.2.00.0100.00717.07
7.1.330.0130.00316.03
7.1.320.0110.00415.96
7.1.310.0080.00415.56
7.1.300.0100.00615.73
7.1.290.0070.00416.11
7.1.280.0040.00915.94
7.1.270.0110.00215.78
7.1.260.0110.00415.93
7.1.250.0100.00915.89
7.1.240.0060.00616.04
7.1.230.0060.00915.92
7.1.220.0090.00915.96
7.1.210.0150.00015.95
7.1.200.0030.01415.73
7.1.190.0070.00315.99
7.1.180.0090.00616.12
7.1.170.0030.01216.10
7.1.160.0070.00715.93
7.1.150.0080.00816.11
7.1.140.0060.00615.94
7.1.130.0040.00816.00
7.1.120.0000.01516.09
7.1.110.0150.00016.11
7.1.100.0060.00315.98
7.1.90.0090.00615.98
7.1.80.0060.00316.09
7.1.70.0060.00915.66
7.1.60.0000.01516.10
7.1.50.0080.00316.11
7.1.40.0060.00615.83
7.1.30.0070.00715.84
7.1.20.0070.01016.03
7.1.10.0070.00715.73
7.1.00.0030.01215.97

preferences:
17.74 ms | 403 KiB | 5 Q