3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myString=<<<TEXT Found some changes in D:\EER Data\project\myfile.csv TEXT; $var1=trim(preg_replace("~[^a-z\d.:'\\\-]~i", ' ', $myString)); echo "$var1\n"; echo json_encode($var1); // it's a good idea to keep the escaping \ while in json.

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.4.130.0050.00917.96
8.4.120.0150.00524.13
8.4.110.0110.00622.52
8.4.100.0160.00717.96
8.4.90.0160.00520.75
8.4.80.0030.00518.87
8.4.70.0170.00618.29
8.4.60.0110.01018.80
8.4.50.0100.00719.82
8.4.40.0130.00719.61
8.4.30.0090.00617.76
8.4.20.0120.00919.66
8.4.10.0100.00017.93
8.3.250.0060.00218.70
8.3.240.0150.00417.11
8.3.230.0160.00318.76
8.3.220.0110.00718.89
8.3.210.0110.00816.62
8.3.200.0050.00416.59
8.3.190.0110.00816.53
8.3.180.0100.01016.73
8.3.170.0090.00916.57
8.3.160.0130.00618.58
8.3.150.0130.00617.05
8.3.140.0050.00317.16
8.3.130.0070.00418.49
8.3.120.0160.00320.61
8.3.110.0060.00620.94
8.3.100.0070.01324.06
8.3.90.0090.00026.77
8.3.80.0090.00019.36
8.3.70.0120.00616.63
8.3.60.0130.01016.75
8.3.50.0100.00717.35
8.3.40.0100.00719.05
8.3.30.0070.00718.96
8.3.20.0050.00321.85
8.3.10.0090.00023.83
8.3.00.0050.00319.80
8.2.290.0060.00820.48
8.2.280.0120.00818.44
8.2.270.0150.00316.71
8.2.260.0060.01218.91
8.2.250.0050.00518.48
8.2.240.0070.01317.17
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0000.00918.88
8.2.190.0000.01518.53
8.2.180.0040.01418.54
8.2.170.0090.00622.96
8.2.160.0100.00321.06
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00020.56
8.2.120.0040.00426.35
8.2.110.0080.01520.22
8.2.100.0040.00719.69
8.2.90.0030.00617.97
8.2.80.0000.00820.51
8.2.70.0040.00417.93
8.2.60.0040.00417.91
8.2.50.0000.00818.10
8.2.40.0030.00522.13
8.2.30.0040.00419.20
8.2.20.0000.00918.16
8.2.10.0050.00318.16
8.2.00.0050.00318.14
8.1.330.0110.00821.91
8.1.320.0090.01118.09
8.1.310.0070.00016.46
8.1.300.0110.00418.43
8.1.290.0060.00330.84
8.1.280.0160.00325.92
8.1.270.0070.00022.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00723.98
8.1.230.0060.00620.86
8.1.220.0000.00817.74
8.1.210.0040.00418.79
8.1.200.0090.00017.47
8.1.190.0000.00817.52
8.1.180.0030.00318.10
8.1.170.0040.00418.64
8.1.160.0030.00318.89
8.1.150.0000.00720.33
8.1.140.0040.00417.60
8.1.130.0030.00319.04
8.1.120.0000.00717.62
8.1.110.0080.00017.54
8.1.100.0040.00417.56
8.1.90.0040.00417.52
8.1.80.0040.00417.43
8.1.70.0030.00317.53
8.1.60.0050.00517.56
8.1.50.0070.00017.62
8.1.40.0080.00017.66
8.1.30.0080.00017.70
8.1.20.0050.00217.67
8.1.10.0060.00317.56
8.1.00.0080.00017.54
8.0.300.0040.00420.09
8.0.290.0000.00716.88
8.0.280.0040.00418.38
8.0.270.0040.00416.91
8.0.260.0070.00016.98
8.0.250.0040.00417.08
8.0.240.0030.00317.13
8.0.230.0030.00517.00
8.0.220.0030.00317.12
8.0.210.0050.00317.04
8.0.200.0000.00717.12
8.0.190.0050.00217.14
8.0.180.0050.00317.09
8.0.170.0090.00016.92
8.0.160.0040.00417.06
8.0.150.0100.00017.05
8.0.140.0000.00717.04
8.0.130.0060.00013.50
8.0.120.0050.00217.13
8.0.110.0040.00416.97
8.0.100.0030.00517.16
8.0.90.0000.00716.95
8.0.80.0190.00617.08
8.0.70.0040.00416.95
8.0.60.0030.00517.05
8.0.50.0050.00317.11
8.0.30.0110.00817.24
8.0.20.0120.00717.42
8.0.10.0040.00417.12
8.0.00.0080.01016.87
7.4.330.0050.00015.55
7.4.320.0060.00016.63
7.4.300.0060.00016.60
7.4.290.0040.00416.71
7.4.280.0030.00616.54
7.4.270.0030.00316.80
7.4.260.0050.00316.76
7.4.250.0000.00716.55
7.4.240.0070.00016.76
7.4.230.0030.00316.57
7.4.220.0000.00816.64
7.4.210.0110.00416.68
7.4.200.0070.00016.54
7.4.160.0100.00716.72
7.4.150.0130.00717.40
7.4.140.0070.01017.86
7.4.130.0060.01216.65
7.4.120.0110.01016.63
7.4.110.0070.01116.80
7.4.100.0060.01116.53
7.4.90.0120.00616.52
7.4.80.0090.01319.39
7.4.70.0100.00716.52
7.4.60.0030.01916.57
7.4.50.0060.00916.57
7.4.40.0080.00816.60
7.4.00.0060.00915.06
7.3.330.0060.00013.29
7.3.320.0020.00213.30
7.3.310.0040.00416.36
7.3.300.0070.00016.38
7.3.290.0000.00716.34
7.3.280.0100.00616.38
7.3.270.0110.00617.40
7.3.260.0090.01016.60
7.3.240.0090.00816.68
7.3.230.0090.00916.43
7.3.210.0110.00616.47
7.3.200.0100.00716.68
7.3.190.0060.00916.69
7.3.180.0080.00816.50
7.3.170.0030.01216.59
7.3.160.0160.00316.44
7.2.330.0130.00316.94
7.2.320.0120.00916.73
7.2.310.0130.00316.58
7.2.300.0100.00616.75
7.2.290.0030.01716.69
7.2.80.0110.00416.61
7.2.60.0000.01017.06
7.2.20.0140.01017.76
7.2.10.0130.01017.68
7.2.00.0820.01517.71
7.1.200.0080.00415.68
7.1.140.0090.01416.77
7.1.130.0110.01116.99
7.1.120.0130.01217.13
7.1.110.0080.01215.93
7.1.100.0110.00816.31
7.1.90.0090.01116.16
7.1.80.0120.01416.30
7.1.70.0110.01515.43
7.1.60.0420.01133.52
7.1.50.0330.01833.08
7.1.40.0340.01632.95
7.1.30.0300.02132.80
7.1.20.0270.01132.93
7.1.10.0090.00915.17
7.1.00.0080.00815.01

preferences:
28.24 ms | 403 KiB | 5 Q