3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "hello113 guys115 this is for test&ing101!"; echo preg_replace('/[^\w\s]/', '', $var);

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.20.0150.00617.83
8.4.10.0150.00619.53
8.3.150.0190.00016.66
8.3.140.0000.00817.23
8.3.130.0040.00418.59
8.3.120.0060.00318.74
8.3.110.0090.00020.94
8.3.100.0070.00424.06
8.3.90.0030.00618.41
8.3.80.0030.01017.97
8.3.70.0180.00318.55
8.3.60.0180.00416.38
8.3.50.0120.00524.49
8.3.40.0140.00718.84
8.3.30.0090.00619.02
8.3.20.0070.00021.91
8.3.10.0040.00422.10
8.3.00.0080.00023.65
8.2.270.0060.01217.11
8.2.260.0000.00818.79
8.2.250.0100.01016.54
8.2.240.0090.00019.04
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00318.48
8.2.190.0070.00716.88
8.2.180.0140.00716.63
8.2.170.0000.01522.96
8.2.160.0000.01419.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.18
8.2.110.0000.01122.07
8.2.100.0040.00717.91
8.2.90.0000.00818.03
8.2.80.0040.00418.92
8.2.70.0030.00617.75
8.2.60.0050.00317.50
8.2.50.0040.00418.05
8.2.40.0110.00018.09
8.2.30.0080.00018.20
8.2.20.0030.00618.14
8.2.10.0000.00719.24
8.2.00.0000.00719.39
8.1.310.0120.00818.45
8.1.300.0040.00417.95
8.1.290.0050.00518.88
8.1.280.0030.01325.92
8.1.270.0040.00422.03
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.87
8.1.230.0100.00322.82
8.1.220.0040.00717.74
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0050.00317.62
8.1.160.0000.00718.76
8.1.150.0040.00418.80
8.1.140.0050.00318.91
8.1.130.0070.00020.03
8.1.120.0040.00417.52
8.1.110.0070.00017.56
8.1.100.0000.00717.50
8.1.90.0000.00717.52
8.1.80.0030.00517.42
8.1.70.0000.00717.55
8.1.60.0000.00817.68
8.1.50.0000.00817.65
8.1.40.0070.00017.49
8.1.30.0000.00817.70
8.1.20.0040.00417.76
8.1.10.0030.00517.65
8.1.00.0080.00017.67
8.0.300.0000.00820.09
8.0.290.0030.00516.75
8.0.280.0030.00318.52
8.0.270.0070.00018.07
8.0.260.0030.00621.79
8.0.250.0050.00316.98
8.0.240.0000.00817.11
8.0.230.0000.00717.06
8.0.220.0070.00016.94
8.0.210.0040.00416.83
8.0.200.0030.00317.04
8.0.190.0050.00316.93
8.0.180.0060.00316.90
8.0.170.0030.00917.02
8.0.160.0000.00816.96
8.0.150.0070.00016.91
8.0.140.0050.00216.94
8.0.130.0000.00513.42
8.0.120.0040.00416.98
8.0.110.0000.00717.09
8.0.100.0000.00817.00
8.0.90.0030.00616.88
8.0.80.0110.01016.96
8.0.70.0000.00716.93
8.0.60.0000.00716.81
8.0.50.0050.00316.87
8.0.30.0110.00517.12
8.0.20.0080.01117.16
8.0.10.0070.00017.10
8.0.00.0100.00717.05
7.4.330.0000.00415.55
7.4.320.0070.00016.80
7.4.300.0060.00016.61
7.4.290.0000.00716.66
7.4.280.0030.00516.63
7.4.270.0030.00316.76
7.4.260.0030.00313.54
7.4.250.0000.00716.48
7.4.240.0000.00716.71
7.4.230.0030.00316.87
7.4.220.0050.00216.60
7.4.210.0110.00716.78
7.4.200.0070.00016.74
7.4.130.0120.00816.54
7.4.120.0130.00916.70
7.4.110.0070.01116.63
7.4.100.0100.00716.71
7.4.90.0070.01016.57
7.4.80.0090.00919.39
7.4.70.0070.01016.54
7.4.60.0120.00916.49
7.4.50.0000.01416.68
7.4.40.0140.00716.60
7.4.30.0160.00816.55
7.4.20.0180.00416.41
7.4.10.0170.01016.51
7.4.00.0040.01616.52
7.3.330.0020.00516.31
7.3.320.0000.00613.22
7.3.310.0000.00716.22
7.3.300.0020.00516.25
7.3.290.0060.01016.28
7.3.260.0070.01016.36
7.3.240.0100.00616.37
7.3.230.0040.01316.40
7.3.210.0070.01116.41
7.3.200.0040.01516.61
7.3.190.0140.00716.36
7.3.180.0190.00316.27
7.3.170.0090.00816.34
7.3.160.0140.01516.36
7.3.150.0090.02116.51
7.3.140.0160.00816.18
7.3.130.0120.01216.42
7.3.120.0140.01116.32
7.3.110.0100.00916.33
7.3.100.0220.00716.21
7.3.90.0170.01116.37
7.3.80.0120.00916.26
7.3.70.0200.01216.34
7.3.60.0190.00816.45
7.3.50.0220.00516.43
7.3.40.0090.01416.38
7.3.30.0190.00416.38
7.3.20.0140.00816.48
7.3.10.0000.02316.32
7.3.00.0160.00416.41
7.2.330.0130.01016.75
7.2.320.0100.00616.59
7.2.310.0100.00716.66
7.2.300.0100.00716.51
7.2.290.0120.01016.59
7.2.280.0170.00816.68
7.2.270.0060.01216.79
7.2.260.0120.01216.48
7.2.250.0090.01416.53
7.2.240.0080.01716.72
7.2.230.0180.00916.57
7.2.220.0110.01116.54
7.2.210.0190.00616.61
7.2.200.0180.01216.40
7.2.190.0150.01216.53
7.2.180.0140.00816.59
7.2.170.0270.00316.59
7.2.160.0110.01116.52
7.2.150.0090.01416.60
7.2.140.0120.01216.81
7.2.130.0230.00016.57
7.2.120.0110.01516.77
7.2.110.0250.00316.50
7.2.100.0160.00916.59
7.2.90.0120.01516.73
7.2.80.0120.01216.44
7.2.70.0180.00516.59
7.2.60.0120.01516.57
7.2.50.0090.01516.38
7.2.40.0170.00716.49
7.2.30.0230.00616.56
7.2.20.0180.00816.41
7.2.10.0090.01316.45
7.2.00.0220.00716.58

preferences:
27.49 ms | 403 KiB | 5 Q