3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text='this PART should be CONVERTED to uppercase [This PART should not BE changed] this part should also be CONVERTED to uppercase [THIS part should also not be CHANGED] etc..'; $text = preg_replace_callback( "/(\[(.*?)\])(*SKIP)(*FAIL)|./is", function($m) { return strtoupper($m[0]); }, $text); $text = str_replace(array('[', ']'), '', $text); echo $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.30.0130.00419.27
8.5.20.0090.00919.52
8.5.10.0090.00916.85
8.5.00.0120.00920.15
8.4.180.0120.01019.83
8.4.170.0100.01420.25
8.4.160.0220.00623.79
8.4.150.0080.00416.93
8.4.140.0120.00917.78
8.4.130.0110.00918.82
8.4.120.0110.00924.11
8.4.110.0070.00518.80
8.4.100.0110.00918.86
8.4.90.0040.00522.58
8.4.80.0140.00718.69
8.4.70.0030.00519.09
8.4.60.0130.00618.73
8.4.50.0140.00618.84
8.4.40.0040.00419.82
8.4.30.0070.01318.02
8.4.20.0160.00619.80
8.4.10.0110.00019.58
8.3.300.0090.01320.75
8.3.290.0100.01020.83
8.3.280.0150.00618.70
8.3.270.0120.00716.71
8.3.260.0120.00816.85
8.3.250.0120.00718.95
8.3.240.0090.01017.03
8.3.230.0080.00416.76
8.3.220.0030.00519.01
8.3.210.0080.01118.60
8.3.200.0060.00416.84
8.3.190.0100.01117.17
8.3.180.0110.00718.94
8.3.170.0150.00318.95
8.3.160.0140.00417.04
8.3.150.0110.00717.04
8.3.140.0040.00416.45
8.3.130.0090.00018.54
8.3.120.0070.00020.65
8.3.110.0060.00320.94
8.3.100.0000.00816.66
8.3.90.0070.01126.77
8.3.80.0050.00518.43
8.3.70.0220.00018.45
8.3.60.0140.00318.20
8.3.50.0090.00717.54
8.3.40.0120.00619.04
8.3.30.0040.01118.81
8.3.20.0080.00020.20
8.3.10.0040.00423.70
8.3.00.0040.00423.48
8.2.300.0130.00722.13
8.2.290.0100.00920.54
8.2.280.0140.00518.60
8.2.270.0040.01417.33
8.2.260.0140.00016.56
8.2.250.0050.00318.62
8.2.240.0060.00317.23
8.2.230.0040.01122.58
8.2.220.0030.00624.06
8.2.210.0080.01126.77
8.2.200.0060.00316.75
8.2.190.0070.00716.63
8.2.180.0090.00616.50
8.2.170.0120.00322.96
8.2.160.0180.00320.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00021.16
8.2.110.0090.00021.20
8.2.100.0060.00617.97
8.2.90.0000.00919.26
8.2.80.0050.00317.97
8.2.70.0050.00317.88
8.2.60.0050.00318.05
8.2.50.0000.00818.10
8.2.40.0030.00620.41
8.2.30.0030.00621.00
8.2.20.0040.00418.16
8.2.10.0040.00418.11
8.2.00.0000.00718.16
8.1.340.0120.00917.81
8.1.330.0080.01022.14
8.1.320.0050.00318.01
8.1.310.0070.01016.82
8.1.300.0080.00818.38
8.1.290.0060.00330.84
8.1.280.0080.00825.92
8.1.270.0040.00423.92
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00321.32
8.1.230.0060.00617.76
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0040.00418.79
8.1.150.0050.00320.70
8.1.140.0040.00417.79
8.1.130.0070.00018.82
8.1.120.0000.00717.66
8.1.110.0080.00017.70
8.1.100.0000.00717.52
8.1.90.0000.00817.54
8.1.80.0050.00217.52
8.1.70.0070.00017.59
8.1.60.0000.00817.63
8.1.50.0020.00517.63
8.1.40.0060.00317.71
8.1.30.0000.00817.77
8.1.20.0040.00417.75
8.1.10.0000.00817.65
8.1.00.0000.00817.55
8.0.300.0000.01018.77
8.0.290.0080.00016.75
8.0.280.0070.00018.55
8.0.270.0030.00317.29
8.0.260.0080.00017.00
8.0.250.0050.00217.11
8.0.240.0030.00617.10
8.0.230.0000.00717.05
8.0.220.0040.00416.86
8.0.210.0040.00416.91
8.0.200.0060.00017.06
8.0.190.0000.00817.07
8.0.180.0040.00417.07
8.0.170.0040.00417.08
8.0.160.0030.00517.11
8.0.150.0050.00316.88
8.0.140.0040.00417.00
8.0.130.0030.00313.52
8.0.120.0020.00517.02
8.0.110.0030.00516.93
8.0.100.0080.00016.94
8.0.90.0050.00316.93
8.0.80.0000.01417.00
8.0.70.0050.00216.91
8.0.60.0040.00417.02
8.0.50.0070.00017.04
8.0.30.0090.00917.33
8.0.20.0120.01017.41
8.0.10.0090.00017.15
8.0.00.0090.00916.88
7.4.330.0030.00316.82
7.4.320.0070.00016.74
7.4.300.0070.00016.72
7.4.290.0050.00216.67
7.4.280.0050.00316.62
7.4.270.0040.00416.87
7.4.260.0080.00316.73
7.4.250.0000.00716.80
7.4.240.0040.00416.82
7.4.230.0040.00416.80
7.4.220.0060.01316.70
7.4.210.0090.00816.85
7.4.200.0050.00216.51
7.4.160.0090.00916.81
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0120.01216.89
7.4.120.0100.01016.78
7.4.110.0130.00316.77
7.4.100.0070.01016.61
7.4.90.0040.01416.46
7.4.80.0140.00319.39
7.4.70.0090.00916.80
7.4.60.0090.00616.56
7.4.50.0070.01116.64
7.4.40.0090.00916.66
7.4.30.0130.00316.75
7.4.00.0000.01215.19
7.3.330.0050.00013.36
7.3.320.0000.00513.45
7.3.310.0030.00316.38
7.3.300.0040.00416.51
7.3.290.0030.00416.37
7.3.280.0090.00716.46
7.3.270.0110.00717.40
7.3.260.0090.00816.57
7.3.250.0090.01116.64
7.3.240.0060.01616.51
7.3.230.0130.00316.59
7.3.210.0120.00416.69
7.3.200.0090.00616.69
7.3.190.0100.00716.66
7.3.180.0100.01016.64
7.3.170.0120.00316.52
7.3.160.0120.00316.62
7.2.330.0120.00916.75
7.2.320.0080.00816.77
7.2.310.0060.01216.61
7.2.300.0100.00716.94
7.2.290.0090.00916.79
7.2.60.0090.00917.08
7.2.50.0150.00316.91
7.1.200.0110.00015.92
7.1.110.0110.00718.27
7.1.100.0100.00618.47
7.1.90.0100.01018.67
7.1.80.0000.01318.31
7.1.70.0060.01217.05
7.1.60.0250.01335.36
7.1.50.0310.00635.14
7.1.40.0160.02234.63
7.1.30.0200.01734.48
7.1.20.0220.01635.00
7.1.10.0090.01016.77
7.1.00.0060.01316.96
7.0.250.0040.01518.02
7.0.240.0040.01218.16
7.0.230.0030.01718.16
7.0.220.0090.00617.96
7.0.210.0000.01916.86
7.0.200.0060.01416.93
7.0.190.0060.01317.03
7.0.180.0060.01316.61
7.0.170.0030.01616.57
7.0.160.0090.01116.46
7.0.150.0070.01116.48
7.0.140.0090.00916.52
7.0.130.0080.00816.91
7.0.120.0060.00916.69
7.0.110.0000.01716.48
7.0.100.0000.01416.72
7.0.90.0030.01016.80
7.0.80.0060.00616.80
7.0.70.0030.01716.45
7.0.60.0100.01016.53
7.0.50.0030.01616.82
7.0.40.0000.01416.86
7.0.30.0130.00616.47
7.0.20.0100.00716.70
7.0.10.0120.00616.43
7.0.00.0030.01016.80

preferences:
55.6 ms | 1514 KiB | 5 Q