3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<< 'TXT' {ff0000}red tex {00ff00}green text TXT; echo preg_replace('~{([a-fA-F0-9]+)}((?>[^{]*{?(?!(?1)}))*)~', '<span style="color: #$1">$2</span>', $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.5.10.0040.00516.95
8.5.00.0130.01019.97
8.4.150.0030.00014.05
8.4.140.0140.00717.78
8.4.130.0160.00518.25
8.4.120.0120.00720.67
8.4.110.0130.00818.61
8.4.100.0120.00917.90
8.4.90.0150.00722.52
8.4.80.0060.00418.15
8.4.70.0130.00718.20
8.4.60.0060.00319.00
8.4.50.0060.00518.94
8.4.40.0180.00317.78
8.4.30.0080.00017.95
8.4.20.0040.00719.80
8.4.10.0120.00917.88
8.3.280.0140.00620.38
8.3.270.0110.00916.43
8.3.260.0120.00816.66
8.3.250.0100.00918.71
8.3.240.0150.00516.63
8.3.230.0110.00916.67
8.3.220.0030.00518.93
8.3.210.0130.00616.43
8.3.200.0100.01016.65
8.3.190.0050.00318.93
8.3.180.0100.00918.41
8.3.170.0150.00417.08
8.3.160.0170.00319.91
8.3.150.0140.00716.69
8.3.140.0040.00417.24
8.3.130.0110.00418.28
8.3.120.0050.00320.48
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0150.00326.77
8.3.80.0070.00318.56
8.3.70.0160.00318.30
8.3.60.0110.01118.68
8.3.50.0110.00616.55
8.3.40.0110.00418.80
8.3.30.0070.00719.02
8.3.20.0040.00420.04
8.3.10.0080.00023.52
8.3.00.0080.00019.79
8.2.290.0120.00720.62
8.2.280.0110.00418.48
8.2.270.0070.00717.22
8.2.260.0070.01116.60
8.2.250.0000.01018.63
8.2.240.0060.00317.32
8.2.230.0100.00022.58
8.2.220.0030.00637.54
8.2.210.0100.01026.77
8.2.200.0030.00616.88
8.2.190.0070.01016.58
8.2.180.0120.00316.58
8.2.170.0110.00422.96
8.2.160.0140.00020.47
8.2.150.0120.00624.18
8.2.140.0030.00624.66
8.2.130.0000.00720.54
8.2.120.0040.00426.35
8.2.110.0060.00320.93
8.2.100.0080.00418.03
8.2.90.0050.00317.88
8.2.80.0060.00318.91
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0100.00018.22
8.2.30.0040.00417.96
8.2.20.0060.00318.10
8.2.10.0040.00418.13
8.2.00.0080.00018.03
8.1.330.0110.00821.57
8.1.320.0140.00715.99
8.1.310.0040.01518.48
8.1.300.0040.00420.39
8.1.290.0050.00530.84
8.1.280.0060.01325.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00617.48
8.1.230.0040.00817.76
8.1.220.0040.00417.76
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0000.00917.22
8.1.180.0060.00318.10
8.1.170.0090.00018.77
8.1.160.0040.00418.80
8.1.150.0040.00420.35
8.1.140.0040.00417.55
8.1.130.0000.00919.05
8.1.120.0040.00417.50
8.1.110.0070.00017.61
8.1.100.0040.00317.48
8.1.90.0040.00417.56
8.1.80.0040.00417.51
8.1.70.0070.00017.42
8.1.60.0030.00617.65
8.1.50.0030.00717.62
8.1.40.0000.00717.59
8.1.30.0090.00317.59
8.1.20.0080.00417.81
8.1.10.0050.00317.70
8.1.00.0030.00517.50
8.0.300.0080.00019.15
8.0.290.0030.00616.88
8.0.280.0080.00018.46
8.0.270.0020.00417.28
8.0.260.0000.00716.98
8.0.250.0030.00517.11
8.0.240.0070.00017.07
8.0.230.0000.00717.15
8.0.220.0000.00717.02
8.0.210.0000.00917.12
8.0.200.0080.00016.96
8.0.190.0020.00517.10
8.0.180.0070.00017.10
8.0.170.0050.00517.08
8.0.160.0040.00417.11
8.0.150.0000.00816.94
8.0.140.0000.00716.87
8.0.130.0000.00613.51
8.0.120.0080.00315.23
8.0.110.0060.00515.31
8.0.100.0050.00515.16
8.0.90.0070.00415.27
8.0.80.0100.00415.23
8.0.70.0060.00415.16
8.0.60.0050.00515.24
8.0.50.0060.00415.18
8.0.30.0090.00816.49
8.0.20.0060.01216.80
8.0.10.0080.00915.90
8.0.00.0120.00516.29
7.4.330.0060.00015.55
7.4.320.0000.00616.80
7.4.300.0000.00616.76
7.4.290.0030.00316.80
7.4.280.0080.00016.66
7.4.270.0070.00016.77
7.4.260.0000.00816.70
7.4.250.0110.00015.02
7.4.240.0070.00515.10
7.4.230.0080.00615.04
7.4.220.0090.00215.12
7.4.210.0080.01015.72
7.4.200.0040.00515.06
7.4.190.0080.00513.39
7.4.180.0090.00313.49
7.4.160.0090.00616.10
7.4.150.0060.00915.83
7.4.140.0120.00616.82
7.4.130.0110.00715.83
7.4.120.0080.00816.17
7.4.110.0080.00815.83
7.4.100.0100.00915.77
7.4.90.0080.01115.77
7.4.80.0100.00816.49
7.4.70.0100.00915.85
7.4.60.0100.00815.80
7.4.50.0070.01015.77
7.4.40.0080.00815.77
7.4.30.0100.00615.75
7.4.20.0120.00515.80
7.4.10.0080.00915.76
7.4.00.0080.00915.74
7.3.330.0000.00513.27
7.3.320.0060.00413.23
7.3.310.0090.00214.76
7.3.300.0070.00314.74
7.3.290.0040.00614.77
7.3.280.0090.00715.30
7.3.270.0140.00115.68
7.3.260.0100.00915.91
7.3.250.0070.01015.31
7.3.240.0090.00816.02
7.3.230.0070.00915.69
7.3.220.0070.01115.35
7.3.210.0120.00615.68
7.3.200.0070.01015.55
7.3.190.0090.00615.62
7.3.180.0090.00715.62
7.3.170.0080.00815.56
7.3.160.0060.01015.55
7.3.150.0070.00915.63
7.3.140.0070.00915.59
7.3.130.0080.00815.47
7.3.120.0080.00815.58
7.3.110.0060.01215.56
7.3.100.0080.00715.54
7.3.90.0080.00815.78
7.3.80.0090.00615.61
7.3.70.0110.00415.64
7.3.60.0100.00715.67
7.3.50.0070.00815.64
7.3.40.0080.00815.66
7.3.30.0090.00915.69
7.3.20.0100.00815.67
7.3.10.0100.00715.94
7.3.00.0100.00815.90
7.2.340.0160.00415.42
7.2.330.0120.01015.79
7.2.320.0110.00915.83
7.2.310.0130.00915.75
7.2.300.0130.00615.60
7.2.290.0130.00715.61
7.2.280.0130.00715.74
7.2.270.0120.00615.67
7.2.260.0110.00815.76
7.2.250.0150.00515.70
7.2.240.0080.01115.74
7.2.230.0080.01215.74
7.2.220.0130.00615.71
7.2.210.0110.00715.75
7.2.200.0110.01015.73
7.2.190.0080.01015.68
7.2.180.0110.00715.68
7.2.170.0100.01115.82
7.2.160.0090.01215.69
7.2.150.0100.01215.80
7.2.140.0110.00915.87
7.2.130.0110.00816.23
7.2.120.0140.00916.21
7.2.110.0080.01016.19
7.2.100.0110.00616.16
7.2.90.0110.00716.19
7.2.80.0110.00916.18
7.2.70.0110.00816.16
7.2.60.0090.00716.21
7.2.50.0100.00916.23
7.2.40.0090.00816.14
7.2.30.0150.00816.24
7.2.20.0090.00916.48
7.2.10.0090.01016.42
7.2.00.0130.00916.43
7.1.330.0130.00814.86
7.1.320.0160.00614.87
7.1.310.0150.00914.96
7.1.300.0110.00714.86
7.1.290.0160.01014.77
7.1.280.0160.00514.76
7.1.270.0130.00714.81
7.1.260.0110.00914.74
7.1.250.0130.00815.08
7.1.240.0140.00514.66
7.1.230.0140.00714.64
7.1.220.0290.00514.76
7.1.210.0110.00814.72
7.1.200.0150.00714.98
7.1.190.0130.00614.68
7.1.180.0090.01014.60
7.1.170.0170.00414.73
7.1.160.0110.01014.67
7.1.150.0190.00614.75
7.1.140.0150.00815.22
7.1.130.0120.00915.15
7.1.120.0160.01115.17
7.1.110.0130.00915.18
7.1.100.0150.00715.15
7.1.90.0130.00915.19
7.1.80.0130.00715.14
7.1.70.0150.00714.93
7.1.60.0170.00918.59
7.1.50.0150.00918.51
7.1.40.0120.01118.49
7.1.30.0210.00918.72
7.1.20.0160.00918.74
7.1.10.0150.00715.25
7.1.00.0120.00915.10
7.0.330.0130.00814.88
7.0.320.0120.00814.99
7.0.310.0100.01015.04
7.0.300.0120.00915.04
7.0.290.0120.00714.91
7.0.280.0150.00515.11
7.0.270.0110.01115.03
7.0.260.0110.00915.02
7.0.250.0200.00815.10
7.0.240.0170.00615.15
7.0.230.0160.00515.12
7.0.220.0140.00715.05
7.0.210.0110.01015.07
7.0.200.0230.01115.03
7.0.190.0130.00715.06
7.0.180.0160.00515.05
7.0.170.0160.00815.05
7.0.160.0220.00715.05
7.0.150.0190.00314.98
7.0.140.0220.00514.96
7.0.130.0150.00814.97
7.0.120.0140.00915.07
7.0.110.0150.00915.00
7.0.100.0140.01114.92
7.0.90.0150.00614.85
7.0.80.0130.00814.95
7.0.70.0140.00614.85
7.0.60.0170.00514.85
7.0.50.0140.00814.89
7.0.40.0240.01214.89
7.0.30.0170.00714.95
7.0.20.0130.01314.86
7.0.10.0160.00714.97
7.0.00.0170.00614.89
5.6.400.0170.00915.13
5.6.390.0130.00914.94
5.6.380.0120.01114.99
5.6.370.0120.01015.06
5.6.360.0110.00914.91
5.6.350.0130.00915.04
5.6.340.0130.01015.11
5.6.330.0140.01015.05
5.6.320.0170.00715.08
5.6.310.0120.01015.05
5.6.300.0130.01114.97
5.6.290.0170.00915.03
5.6.280.0150.01015.09
5.6.270.0160.00914.96
5.6.260.0160.00814.89
5.6.250.0150.00614.95
5.6.240.0120.01314.98
5.6.230.0150.00815.10
5.6.220.0170.00614.93
5.6.210.0120.01015.02
5.6.200.0130.00915.03
5.6.190.0170.00815.09
5.6.180.0160.00915.06
5.6.170.0130.00815.02
5.6.160.0160.01415.00
5.6.150.0170.00915.14
5.6.140.0140.01215.08
5.6.130.0160.00915.05
5.6.120.0140.01214.96
5.6.110.0140.01214.99
5.6.100.0150.01014.99
5.6.90.0160.01014.93
5.6.80.0190.00714.89
5.6.70.0100.01415.01
5.6.60.0160.00714.97
5.6.50.0130.01314.98
5.6.40.0160.00814.90
5.6.30.0140.01014.92
5.6.20.0130.01214.88
5.6.10.0180.00814.90
5.6.00.0140.01114.91

preferences:
178.46 ms | 403 KiB | 5 Q