3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strlname = "Jean paul"; $strlname=strtoupper($strlname); $strlname=preg_replace("( +)", " ", str_replace(array("\t", "\r", "\n"), " ", trim($strlname))); $strlname=str_replace(array('&', '~', '#', '{', '(', '[', '|', '`', '_', '\\', '@', ')', ']', '=', '}', '$', '�', '�', '%', '*', ',', '?', ';', '.', ':', '/', '!', '�', '+', '�', ' '), '-', $strlname); $strlname=str_replace('--039-', "'", $strlname); $strlname=str_replace('-"', '"', $strlname); $strlname=trim($strlname); echo $strlname;

Abusive script

This script was stopped while abusing our resources

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)
7.4.10.0210.00716.57
7.4.00.0080.00815.71
7.3.130.0050.01516.12
7.3.120.0170.00516.52
7.3.110.0110.01116.34
7.3.100.0110.01116.05
7.3.90.0030.01716.25
7.3.80.0090.01315.92
7.3.70.0190.00616.00
7.3.60.0040.01616.05
7.3.50.0140.00416.25
7.3.40.0130.00216.16
7.3.30.0270.00316.25
7.3.20.2280.00216.41
7.3.10.0390.01118.30
7.3.00.0110.01118.09
7.2.260.0130.01016.48
7.2.250.0100.01116.59
7.2.240.0100.01016.43
7.2.230.0170.00416.62
7.2.220.0060.01216.43
7.2.210.0070.01316.33
7.2.200.0040.01416.27
7.2.190.0110.00416.62
7.2.180.0040.01416.22
7.2.170.0210.00516.71
7.2.160.0100.01416.56
7.2.150.0130.01518.31
7.2.140.0180.00918.26
7.2.130.0100.01818.49
7.2.120.0120.01318.45
7.2.110.0210.00318.32
7.2.100.0170.01018.38
7.2.90.0130.00611.65
7.2.80.0260.00418.41
7.2.70.0210.01018.43
7.2.60.0230.01018.34
7.2.50.0170.01018.45
7.2.40.0140.01418.51
7.2.30.0100.01518.56
7.2.20.0120.01218.46
7.2.10.0140.00818.52
7.2.00.0140.00618.94
7.1.330.0060.01217.11
7.1.320.0150.00917.47
7.1.310.0170.00917.32
7.1.300.3910.01015.53
7.1.290.2150.00315.43
7.1.280.0280.01015.48
7.1.270.2380.01015.64
7.1.260.0140.01417.40
7.1.250.0190.01117.51
7.1.240.0130.01317.48
7.1.230.0090.01517.32
7.1.220.0180.00717.39
7.1.210.0150.00817.40
7.1.200.0170.00211.65
7.1.190.0150.01017.33
7.1.180.0150.01217.38
7.1.170.0110.01217.29
7.1.160.0190.00817.49
7.1.150.0000.01917.40
7.1.140.0200.00417.39
7.1.130.0260.00317.57
7.1.120.0090.00917.38
7.1.110.0080.01217.60
7.1.100.0090.00617.56
7.1.90.0080.01217.45
7.1.80.0050.01417.50
7.1.70.0110.00617.40
7.1.60.0090.00518.37
7.1.50.0080.00914.36
7.1.40.0170.00011.65
7.1.30.0180.00317.48
7.1.20.0080.01111.65
7.1.10.0140.00717.47
7.1.00.0060.04417.58
7.0.330.0120.01016.93
7.0.320.0200.00717.08
7.0.310.0150.01017.15
7.0.300.0140.01117.08
7.0.290.0130.00917.00
7.0.280.0090.01316.96
7.0.270.0100.00717.11
7.0.260.0060.01417.19
7.0.250.0090.00917.19
7.0.240.0160.00517.08
7.0.230.0080.01517.14
7.0.220.0090.01317.10
7.0.210.0130.00517.17
7.0.200.0080.00817.07
7.0.190.0100.01017.20
7.0.180.0080.01217.03
7.0.170.0120.00817.10
7.0.160.0040.01116.95
7.0.150.0150.00512.79
7.0.140.0090.02019.62
7.0.130.0080.01417.18
7.0.120.0250.00011.65
7.0.110.0150.00917.16
7.0.100.0110.01316.96
7.0.90.0120.00917.01
7.0.80.0130.01317.00
7.0.70.0090.01617.03
7.0.60.0130.03718.61
7.0.50.0110.04417.59
7.0.40.0120.02917.70
7.0.30.0160.02517.59
7.0.20.0230.04217.58
7.0.10.0070.04017.66
7.0.00.0080.04817.59
5.6.400.0130.01615.62
5.6.390.0170.01416.00
5.6.380.0160.00616.03
5.6.370.0100.01416.00
5.6.360.0140.01116.13
5.6.350.0130.00715.95
5.6.340.0170.00715.74
5.6.330.0150.00915.73
5.6.320.0090.01216.02
5.6.310.0090.00915.76
5.6.300.0140.01415.80
5.6.290.0200.00715.59
5.6.280.0130.03818.38
5.6.270.0190.00815.78
5.6.260.0160.00915.95
5.6.250.0080.01715.86
5.6.240.0120.01215.70
5.6.230.0160.00815.80
5.6.220.0130.00915.70
5.6.210.0110.04218.24
5.6.200.0090.04717.01
5.6.190.0130.02318.16
5.6.180.0230.04018.16
5.6.170.0250.04018.11
5.6.160.0140.04018.13
5.6.150.0130.03617.03
5.6.140.0140.04317.00
5.6.130.0140.03916.99
5.6.120.0090.04418.35
5.6.110.0170.04218.36
5.6.100.0110.04118.41
5.6.90.0100.04818.39
5.6.80.0190.03518.06
5.6.70.0070.01415.84
5.6.60.0070.01515.54
5.6.50.0140.00916.07
5.6.40.0110.01415.59
5.6.30.0150.00415.73
5.6.20.0070.01515.77
5.6.10.0090.01215.50
5.6.00.0060.01015.90
5.5.380.0140.01415.87
5.5.370.0160.00515.82
5.5.360.0130.01715.93
5.5.350.0150.02618.08
5.5.340.0080.02516.89
5.5.330.0170.04018.01
5.5.320.0310.04318.05
5.5.310.0240.03817.96
5.5.300.0040.02314.82
5.5.290.0040.04916.87
5.5.280.0120.03018.31
5.5.270.0140.04018.27
5.5.260.0110.03718.39
5.5.250.0080.03918.09
5.5.240.0130.03217.95
5.5.230.0200.00815.70
5.5.220.0120.00815.79
5.5.210.0120.00915.72
5.5.200.0070.01915.64
5.5.190.0190.00615.62
5.5.180.0190.00815.51
5.5.170.0190.00515.82
5.5.160.0120.01015.78
5.5.150.0170.00715.61
5.5.140.0140.00815.80
5.5.130.0100.01015.84
5.5.120.0090.01415.70
5.5.110.0190.00615.82
5.5.100.0130.00915.62
5.5.90.0160.00815.56
5.5.80.0120.01515.70
5.5.70.0240.00015.54
5.5.60.0120.01215.45
5.5.50.0150.01115.72
5.5.40.0160.00815.61
5.5.30.0150.00615.62
5.5.20.0190.00815.60
5.5.10.0100.01315.68
5.5.00.0150.01115.54
5.4.450.0270.03715.97
5.4.440.0490.03716.08
5.4.430.0370.02915.84
5.4.420.0210.03515.97
5.4.410.0390.03616.07
5.4.400.0460.03015.90
5.4.390.0370.03015.66
5.4.380.0140.03115.56
5.4.370.0240.02015.54
5.4.360.0090.03715.57
5.4.350.0150.03215.46
5.4.340.0110.03615.62
5.4.330.0160.00412.42
5.4.320.0120.03215.65
5.4.310.0120.03015.57
5.4.300.0170.02615.68
5.4.290.0140.02915.61
5.4.280.0090.03515.46
5.4.270.0240.01815.54
5.4.260.0130.02815.56
5.4.250.0120.03215.56
5.4.240.0170.03315.63
5.4.230.0200.02015.50
5.4.220.0190.02715.55
5.4.210.0120.03115.67
5.4.200.0100.03214.54
5.4.190.0180.02715.65
5.4.180.0190.02315.46
5.4.170.0150.02915.44
5.4.160.0210.03015.53
5.4.150.0150.03315.44
5.4.140.0100.03014.36
5.4.130.0140.02514.24
5.4.120.0190.02414.41
5.4.110.0120.03014.38
5.4.100.0120.03914.44
5.4.90.0170.02814.26
5.4.80.0100.03614.45
5.4.70.0090.03214.33
5.4.60.0130.02814.37
5.4.50.0060.03114.40
5.4.40.0140.03514.36
5.4.30.0150.02814.24
5.4.20.0130.02814.22
5.4.10.0100.02814.19
5.4.00.0090.03114.14
5.3.290.0130.05714.75
5.3.280.0200.04714.68
5.3.270.0100.06014.51
5.3.260.0170.05014.72
5.3.250.0230.04314.73
5.3.240.0270.04314.53
5.3.230.0100.05714.70
5.3.220.0130.05314.66
5.3.210.0130.05314.50
5.3.200.0170.05014.52
5.3.190.0200.05714.63
5.3.180.0070.06014.67
5.3.170.0170.05014.48
5.3.160.0100.05714.60
5.3.150.0100.05714.49
5.3.140.0230.04314.55
5.3.130.0100.06014.55
5.3.120.0300.04714.64
5.3.110.0100.05714.64
5.3.100.0070.05713.97
5.3.90.0070.05314.03
5.3.80.0170.05013.98
5.3.70.0100.05314.13
5.3.60.0100.05313.91
5.3.50.0100.05313.94
5.3.40.0130.05014.07
5.3.30.0130.04713.87
5.3.20.0170.05013.64
5.3.10.0130.06013.58
5.3.00.0200.04313.65
5.2.170.0130.03711.13
5.2.160.0100.04011.20
5.2.150.0100.04311.19
5.2.140.0100.04311.06
5.2.130.0200.04011.17
5.2.120.0030.04711.11
5.2.110.0100.04311.17
5.2.100.0030.04711.17
5.2.90.0230.03311.27
5.2.80.0100.05011.08
5.2.70.0130.04011.02
5.2.60.0200.04311.04
5.2.50.0170.05710.98
5.2.40.0170.04711.07
5.2.30.0130.03711.04
5.2.20.0070.04311.01
5.2.10.0100.04010.96
5.2.00.0170.03710.84
5.1.60.0100.03310.06
5.1.50.0100.03310.00
5.1.40.0070.03710.11
5.1.30.0100.03710.39
5.1.20.0070.04310.50
5.1.10.0100.03310.11
5.1.00.0100.04310.10
5.0.50.0070.0308.63
5.0.40.0130.0338.45
5.0.30.0030.0578.23
5.0.20.0070.0308.22
5.0.10.0100.0308.31
5.0.00.0070.0438.30
4.4.90.0130.0136.39
4.4.80.0070.0206.39
4.4.70.0070.0206.39
4.4.60.0170.0206.39
4.4.50.0000.0276.39
4.4.40.0100.0306.39
4.4.30.0030.0236.39
4.4.20.0030.0236.39
4.4.10.0070.0236.39
4.4.00.0100.0306.39
4.3.110.0070.0206.39
4.3.100.0030.0236.39
4.3.90.0100.0206.39
4.3.80.0070.0376.39
4.3.70.0000.0336.39
4.3.60.0030.0206.39
4.3.50.0030.0236.39
4.3.40.0100.0376.39
4.3.30.0030.0236.39
4.3.20.0070.0206.39
4.3.10.0030.0236.39
4.3.00.0070.0237.22

preferences:
36.36 ms | 400 KiB | 5 Q