3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originaldescription = '::cck::3::/cck:: ::description:: test1 ::/description::'; $description = null; $regex_part1 = '/^::cck.*\n.*description::\n/'; $regex_part2 = '/\n.*\/description::/'; $description = preg_replace($regex_part1,null,$originaldescription); $description = preg_replace($regex_part2,null,$description); echo $description;

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.01416.75
8.3.50.0110.00416.67
8.3.40.0120.00919.09
8.3.30.0040.01218.97
8.3.20.0070.01020.21
8.3.10.0110.00322.09
8.3.00.0030.00623.66
8.2.180.0120.00918.66
8.2.170.0130.00319.07
8.2.160.0080.00822.96
8.2.150.0080.00025.66
8.2.140.0030.00624.66
8.2.130.0050.00226.16
8.2.120.0030.00719.02
8.2.110.0090.00022.44
8.2.100.0110.00418.03
8.2.90.0040.00419.27
8.2.80.0050.00318.03
8.2.70.0000.00817.62
8.2.60.0030.00619.66
8.2.50.0000.00818.22
8.2.40.0080.00022.18
8.2.30.0050.00319.18
8.2.20.0050.00518.34
8.2.10.0080.00018.03
8.2.00.0040.00418.02
8.1.280.0160.00625.92
8.1.270.0050.00322.18
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00321.03
8.1.230.0000.01117.70
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0030.00517.22
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0000.00818.73
8.1.150.0030.00520.11
8.1.140.0070.00017.59
8.1.130.0040.00419.10
8.1.120.0000.00717.46
8.1.110.0040.00417.59
8.1.100.0040.00417.41
8.1.90.0030.00517.45
8.1.80.0070.00017.45
8.1.70.0080.00017.45
8.1.60.0050.00317.71
8.1.50.0060.00317.52
8.1.40.0040.00417.64
8.1.30.0000.00817.80
8.1.20.0000.00817.81
8.1.10.0000.00817.68
8.1.00.0030.00717.58
8.0.300.0040.00418.77
8.0.290.0030.00516.88
8.0.280.0070.00018.52
8.0.270.0000.00717.34
8.0.260.0030.00318.61
8.0.250.0030.00717.18
8.0.240.0040.00417.02
8.0.230.0030.00317.01
8.0.220.0000.00717.06
8.0.210.0050.00216.93
8.0.200.0000.00716.95
8.0.190.0000.00917.05
8.0.180.0000.00717.01
8.0.170.0000.00717.05
8.0.160.0000.00716.86
8.0.150.0070.00016.90
8.0.140.0040.00416.92
8.0.130.0030.00313.41
8.0.120.0040.00417.00
8.0.110.0040.00417.03
8.0.100.0040.00416.86
8.0.90.0050.00216.79
8.0.80.0070.00716.95
8.0.70.0040.00416.76
8.0.60.0040.00416.81
8.0.50.0030.00516.96
8.0.30.0120.00817.20
8.0.20.0110.00817.43
8.0.10.0050.00316.93
8.0.00.0120.01316.69
7.4.330.0000.00615.55
7.4.320.0030.00316.67
7.4.300.0030.00316.64
7.4.290.0100.00016.76
7.4.280.0030.00516.78
7.4.270.0080.00016.77
7.4.260.0040.00416.57
7.4.250.0030.00616.48
7.4.240.0050.00216.66
7.4.230.0030.00316.50
7.4.220.0110.00716.61
7.4.210.0030.01416.63
7.4.200.0000.00716.66
7.4.160.0100.00916.70
7.4.150.0080.00917.40
7.4.140.0120.00617.86
7.4.130.0100.01016.48
7.4.120.0110.00916.66
7.4.110.0090.00916.61
7.4.100.0060.01616.47
7.4.90.0090.00816.77
7.4.80.0030.01319.39
7.4.70.0080.01616.82
7.4.60.0120.00316.53
7.4.50.0000.01416.70
7.4.40.0100.00716.55
7.4.30.0060.01416.52
7.4.00.0070.01115.22
7.3.330.0030.00313.23
7.3.320.0050.00013.09
7.3.310.0000.00716.23
7.3.300.0000.00716.37
7.3.290.0030.01016.36
7.3.280.0090.01016.37
7.3.270.0160.00317.40
7.3.260.0150.00816.43
7.3.250.0090.01116.56
7.3.240.0080.01016.42
7.3.230.0120.00416.73
7.3.210.0030.01316.68
7.3.200.0150.00616.52
7.3.190.0070.01016.53
7.3.180.0120.00916.48
7.3.170.0090.00616.52
7.3.160.0000.01616.66
7.3.120.0000.01414.73
7.3.110.0040.01214.93
7.3.100.0070.00714.77
7.3.90.0030.01315.14
7.3.80.0000.01614.68
7.3.70.0030.01014.72
7.3.60.0070.01014.76
7.3.50.0100.00314.64
7.3.40.0050.00514.91
7.3.30.0040.01214.75
7.3.20.0060.00616.75
7.3.10.0110.00716.66
7.3.00.0040.01116.84
7.2.330.0160.00616.60
7.2.320.0060.01516.84
7.2.310.0100.00716.55
7.2.300.0060.01616.81
7.2.290.0080.01116.81
7.2.240.0070.01014.98
7.2.230.0070.01115.10
7.2.220.0070.00714.85
7.2.210.0030.01015.04
7.2.200.0030.01315.01
7.2.190.0060.00614.75
7.2.180.0060.00314.87
7.2.170.0040.01414.90
7.2.160.0060.00914.71
7.2.150.0070.01017.02
7.2.140.0060.00617.14
7.2.130.0080.00816.98
7.2.120.0070.01016.87
7.2.110.0060.00616.99
7.2.100.0090.00616.88
7.2.90.0110.01116.86
7.2.80.0070.00716.98
7.2.70.0070.01017.04
7.2.60.0080.00617.11
7.2.50.0090.00616.93
7.2.40.0120.00316.89
7.2.30.0070.01016.74
7.2.20.0030.01416.99
7.2.10.0000.01117.04
7.2.00.0000.01217.14
7.1.330.0030.01015.78
7.1.320.0040.01215.67
7.1.310.0070.00715.71
7.1.300.0070.00715.55
7.1.290.0060.01015.75
7.1.280.0040.01215.62
7.1.270.0070.00715.95
7.1.260.0040.01215.99
7.1.250.0030.01015.70
7.1.200.0110.00015.89
7.1.100.0850.00716.40
7.1.90.1010.00516.39
7.1.80.1110.01016.54
7.1.70.1060.00915.46
7.1.60.3290.01233.27
7.1.50.3780.01133.20
7.1.40.2370.00932.84
7.1.30.3960.01532.98
7.1.20.3800.01133.03
7.1.10.2710.01114.97
7.1.00.3480.00815.09
7.0.240.3180.00516.04
7.0.230.0980.00816.19
7.0.220.1380.00815.95
7.0.210.3720.01014.96
7.0.200.3040.00514.89
7.0.190.2170.01115.07
7.0.180.3890.01114.60
7.0.170.3450.00914.50
7.0.160.4230.01214.68
7.0.150.2540.01014.58
7.0.140.3090.00814.71
7.0.130.2430.00614.88
7.0.120.2450.01214.95
7.0.110.3370.00914.85
7.0.100.3120.00914.61
7.0.90.3600.01014.71
7.0.80.3280.00814.74
7.0.70.3320.01014.75
7.0.60.3430.00914.67
7.0.50.3320.00814.68
7.0.40.3170.00714.86
7.0.30.3490.00914.94
7.0.20.3530.00914.78
7.0.10.3490.01014.86
7.0.00.3710.00914.74

preferences:
61.12 ms | 400 KiB | 5 Q