3v4l.org

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

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.40.0150.00018.75
8.3.30.0070.00719.09
8.3.20.0040.00420.35
8.3.10.0040.00423.51
8.3.00.0030.00620.80
8.2.170.0110.00422.96
8.2.160.0170.00022.31
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0040.00421.04
8.2.110.0110.00020.71
8.2.100.0120.00017.78
8.2.90.0040.00417.60
8.2.80.0040.00418.61
8.2.70.0000.00917.92
8.2.60.0000.00818.22
8.2.50.0080.00018.10
8.2.40.0070.00019.48
8.2.30.0050.00319.16
8.2.20.0080.00017.79
8.2.10.0080.00017.98
8.2.00.0070.00017.50
8.1.270.0070.00018.62
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0100.00021.04
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.11
8.1.190.0000.00817.10
8.1.180.0000.00719.03
8.1.170.0030.00518.59
8.1.160.0050.00219.05
8.1.150.0000.00718.73
8.1.140.0030.00617.37
8.1.130.0040.00417.86
8.1.120.0000.00717.36
8.1.110.0000.00717.45
8.1.100.0070.00017.41
8.1.90.0030.00517.28
8.1.80.0080.00017.45
8.1.70.0000.00717.39
8.1.60.0000.00817.35
8.1.50.0030.00517.48
8.1.40.0000.00817.44
8.1.30.0000.00817.49
8.1.20.0040.00417.52
8.1.10.0040.00417.51
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0060.00316.63
8.0.280.0000.00718.45
8.0.270.0070.00017.13
8.0.260.0000.00617.26
8.0.250.0070.00016.89
8.0.240.0030.00316.95
8.0.230.0000.00716.76
8.0.220.0000.00716.80
8.0.210.0030.00316.84
8.0.200.0000.00616.75
8.0.190.0080.00016.85
8.0.180.0000.00816.91
8.0.170.0070.00016.73
8.0.160.0000.00716.84
8.0.150.0000.00816.78
8.0.140.0000.00716.71
8.0.130.0030.00313.18
8.0.120.0050.00316.74
8.0.110.0000.00816.85
8.0.100.0040.00416.82
8.0.90.0080.00016.95
8.0.80.0030.01516.84
8.0.70.0000.00716.72
8.0.60.0070.00016.73
8.0.50.0000.00816.87
8.0.30.0170.00217.10
8.0.20.0110.01217.40
8.0.10.0000.00716.79
8.0.00.0070.01416.61
7.4.330.0000.00615.03
7.4.320.0000.00616.43
7.4.300.0030.00316.53
7.4.290.0050.00216.42
7.4.280.0000.00716.54
7.4.270.0040.00416.59
7.4.260.0030.00616.51
7.4.250.0030.00316.36
7.4.240.0030.00316.46
7.4.230.0070.00016.61
7.4.220.0030.01816.52
7.4.210.0120.00916.36
7.4.200.0070.00016.42
7.4.160.0080.00816.17
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0140.00816.39
7.4.120.0090.01116.43
7.4.110.0140.00416.47
7.4.100.0110.01116.39
7.4.90.0030.01416.50
7.4.80.0090.00919.39
7.4.70.0100.00716.45
7.4.60.0130.00316.46
7.4.50.0000.00816.55
7.4.40.0120.00616.48
7.4.30.0160.00616.29
7.4.00.0030.01214.95
7.3.330.0050.00012.94
7.3.320.0030.00313.19
7.3.310.0040.00416.02
7.3.300.0000.00616.09
7.3.290.0070.00716.21
7.3.280.0080.00716.29
7.3.270.0140.00417.40
7.3.260.0110.00616.51
7.3.250.0070.01016.21
7.3.240.0110.00616.21
7.3.230.0090.00616.39
7.3.210.0090.00916.20
7.3.200.0030.01419.39
7.3.190.0090.00616.27
7.3.180.0090.00916.36
7.3.170.0090.00916.40
7.3.160.0080.00816.21
7.2.330.0100.00916.61
7.2.320.0140.00716.59
7.2.310.0040.01216.35
7.2.300.0000.01716.34
7.2.290.0150.00616.58
7.2.110.0170.00316.45
7.2.00.0070.01319.09
7.1.100.0070.00718.05
7.1.70.0000.00817.19
7.1.60.0070.01019.22
7.1.50.0120.00916.63
7.1.00.0130.06722.43
7.0.200.0000.00816.61
7.0.140.0100.05021.95
7.0.60.0100.06019.90
7.0.50.0030.08317.82
7.0.40.0000.05720.35
7.0.30.0400.04720.18
7.0.20.0170.04720.09
7.0.10.0100.08320.09
7.0.00.0100.08320.18
5.6.280.0000.07720.81
5.6.210.0170.06720.76
5.6.200.0070.04018.16
5.6.190.0030.05020.60
5.6.180.0230.05320.49
5.6.170.0370.07020.52
5.6.160.0000.04320.41
5.6.150.0130.07318.22
5.6.140.0100.04318.11
5.6.130.0070.08018.14
5.6.120.0100.08320.99
5.6.110.0030.07720.95
5.6.100.0100.03721.11
5.6.90.0100.03721.03
5.6.80.0000.04020.33
5.6.70.0430.06020.36
5.5.350.0030.05020.30
5.5.340.0100.08017.96
5.5.330.0030.07020.21
5.5.320.0430.07020.24
5.5.310.0200.04020.26
5.5.300.0130.05717.91
5.5.290.0030.04717.95
5.5.280.0030.09320.98
5.5.270.0030.08320.64
5.5.260.0130.05720.84
5.5.250.0070.07720.51
5.5.240.0000.08720.15
5.4.450.0630.06719.32
5.4.440.0670.06019.66
5.4.430.0570.05719.37
5.4.420.0800.05719.63
5.4.410.0630.05319.04
5.4.400.0600.05319.12
5.4.390.0800.04019.09
5.4.380.0030.06718.68
5.4.370.0170.05718.48
5.4.360.0100.06018.71
5.4.350.0100.05718.48
5.4.340.0370.03718.68
5.4.320.0170.05318.55
5.4.310.0170.05718.60
5.4.300.0170.07318.47
5.4.290.0170.07018.66
5.4.280.0070.07318.59
5.4.270.0200.06718.55
5.4.260.0230.06018.59
5.4.250.0230.06318.46
5.4.240.0200.06018.65
5.4.230.0170.05318.55
5.4.220.0300.06318.58
5.4.210.0170.06318.45
5.4.200.0200.05016.45
5.4.190.0230.06718.53
5.4.180.0270.06318.66
5.4.170.0270.04718.47
5.4.160.0170.05718.66
5.4.150.0200.05018.53
5.4.140.0070.07016.14
5.4.130.0170.05316.18
5.4.120.0100.05716.22
5.4.110.0270.03716.26
5.4.100.0170.05316.29
5.4.90.0230.04716.23
5.4.80.0200.05316.16
5.4.70.0330.04316.29
5.4.60.0200.05316.04
5.4.50.0200.05316.04
5.4.40.0230.04716.04
5.4.30.0200.06316.29
5.4.20.0170.07316.23
5.4.10.0200.05016.30
5.4.00.0270.05315.54
5.3.290.0200.07314.63
5.3.280.0300.05714.58
5.3.270.0200.05714.71
5.3.260.0130.08314.71
5.3.250.0130.07714.54
5.3.240.0170.07314.59
5.3.230.0070.07314.53
5.3.220.0200.05014.46
5.3.210.0200.05314.56
5.3.200.0100.06014.66
5.3.190.0130.06014.66
5.3.180.0100.06314.66
5.3.170.0070.06014.57
5.3.160.0170.06014.66
5.3.150.0170.05714.57
5.3.140.0100.06714.53
5.3.130.0100.06714.50
5.3.120.0170.05314.63
5.3.110.0200.06714.44
5.3.100.0100.07014.04
5.3.90.0100.06313.95
5.3.80.0070.06314.02
5.3.70.0070.06313.93
5.3.60.0100.06313.95
5.3.50.0070.06313.95
5.3.40.0100.06313.86
5.3.30.0130.05014.00
5.3.20.0230.05013.69
5.3.10.0170.05013.61
5.3.00.0170.04713.61
5.2.170.0130.04311.20
5.2.160.0230.04311.07
5.2.150.0070.05711.13
5.2.140.0100.04311.06
5.2.130.0100.04311.02
5.2.120.0230.04711.09
5.2.110.0030.05311.11
5.2.100.0230.03311.07
5.2.90.0030.05311.11
5.2.80.0000.05711.11
5.2.70.0130.04711.09
5.2.60.0070.05310.99
5.2.50.0130.04311.06
5.2.40.0130.04011.04
5.2.30.0000.05310.94
5.2.20.0170.03710.95
5.2.10.0170.03710.84
5.2.00.0030.05010.70
5.1.60.0130.03310.00
5.1.50.0100.03310.07
5.1.40.0030.0409.96
5.1.30.0130.03310.38
5.1.20.0100.04010.42
5.1.10.0100.03310.20
5.1.00.0130.04310.05
5.0.50.0130.0238.62
5.0.40.0070.0408.48
5.0.30.0100.0438.36
5.0.20.0130.0308.34
5.0.10.0100.0308.20
5.0.00.0030.0478.15
4.4.90.0000.0276.44
4.4.80.0070.0206.44
4.4.70.0070.0206.44
4.4.60.0070.0206.44
4.4.50.0100.0206.44
4.4.40.0000.0406.44
4.4.30.0070.0236.44
4.4.20.0000.0276.44
4.4.10.0070.0276.44
4.4.00.0070.0406.44
4.3.110.0000.0336.44
4.3.100.0100.0236.44
4.3.90.0100.0236.44
4.3.80.0070.0336.44
4.3.70.0100.0176.44
4.3.60.0030.0236.44
4.3.50.0030.0236.44
4.3.40.0070.0406.44
4.3.30.0000.0306.44
4.3.20.0070.0276.44
4.3.10.0000.0336.44
4.3.00.0230.0137.22

preferences:
42.86 ms | 400 KiB | 5 Q