3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "1234 123423-34 This is a test"; echo preg_replace('/^[^A-Za-z]+/', '', $test);

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.10.0130.00719.54
8.3.140.0040.00417.16
8.3.130.0040.00418.46
8.3.120.0080.00820.80
8.3.110.0030.00620.94
8.3.100.0110.00024.06
8.3.90.0040.00426.77
8.3.80.0070.00716.75
8.3.70.0110.00716.88
8.3.60.0120.00618.56
8.3.50.0100.00922.05
8.3.40.0110.00318.92
8.3.30.0090.00618.84
8.3.20.0040.00422.13
8.3.10.0040.00420.29
8.3.00.0040.00421.71
8.2.260.0130.00716.67
8.2.250.0110.00716.68
8.2.240.0000.00818.89
8.2.230.0060.00322.58
8.2.220.0100.00037.54
8.2.210.0070.00726.77
8.2.200.0030.00616.63
8.2.190.0140.00716.63
8.2.180.0160.00918.43
8.2.170.0100.00322.96
8.2.160.0100.00322.38
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.66
8.2.110.0090.00020.35
8.2.100.0060.00617.68
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0060.00319.21
8.2.40.0040.00420.42
8.2.30.0000.00720.44
8.2.20.0040.00418.14
8.2.10.0000.00818.01
8.2.00.0040.00418.08
8.1.310.0100.00718.30
8.1.300.0060.00316.50
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00022.12
8.1.230.0040.00822.68
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0040.00418.53
8.1.160.0000.00818.84
8.1.150.0040.00422.07
8.1.140.0040.00419.49
8.1.130.0000.00720.87
8.1.120.0040.00417.57
8.1.110.0060.00617.57
8.1.100.0050.00217.52
8.1.90.0050.00217.44
8.1.80.0060.00317.55
8.1.70.0030.00317.51
8.1.60.0080.00017.65
8.1.50.0000.00817.55
8.1.40.0000.00817.64
8.1.30.0030.00517.66
8.1.20.0050.00317.71
8.1.10.0050.00217.70
8.1.00.0050.00317.55
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0000.00718.46
8.0.270.0000.00717.00
8.0.260.0030.00317.32
8.0.250.0000.00717.14
8.0.240.0070.00017.05
8.0.230.0000.00716.90
8.0.220.0040.00416.99
8.0.210.0050.00216.93
8.0.200.0030.00316.94
8.0.190.0070.00017.11
8.0.180.0040.00416.98
8.0.170.0080.00016.89
8.0.160.0030.00316.98
8.0.150.0060.00316.90
8.0.140.0000.00816.95
8.0.130.0000.00513.29
8.0.120.0040.00416.91
8.0.110.0040.00416.91
8.0.100.0000.00717.01
8.0.90.0040.00416.82
8.0.80.0030.01216.93
8.0.70.0000.00716.83
8.0.60.0030.00516.97
8.0.50.0040.00416.86
8.0.30.0090.00917.12
8.0.20.0150.01017.31
8.0.10.0150.00617.08
8.0.00.0180.00916.94
7.4.330.0030.00315.55
7.4.320.0030.00316.76
7.4.300.0030.00316.67
7.4.290.0080.00016.63
7.4.280.0030.00516.63
7.4.270.0000.00716.71
7.4.260.0040.00416.73
7.4.250.0040.00216.75
7.4.240.0080.00016.64
7.4.230.0070.00016.63
7.4.220.0160.00916.73
7.4.210.0080.01216.73
7.4.200.0000.00716.83
7.4.160.0070.00916.79
7.4.150.0140.01017.09
7.4.140.0120.00817.58
7.4.130.0090.01016.61
7.4.120.0110.01116.60
7.4.110.0080.01516.70
7.4.100.0110.00816.58
7.4.90.0110.00716.59
7.4.80.0080.01117.28
7.4.70.0100.00816.56
7.4.60.0110.01116.68
7.4.50.0110.01016.47
7.4.40.0140.00716.35
7.4.30.0120.00616.56
7.4.20.0110.00616.58
7.4.10.0100.00816.56
7.4.00.0090.00616.21
7.3.330.0060.00013.20
7.3.320.0050.00013.15
7.3.310.0000.00716.25
7.3.300.0070.00016.31
7.3.290.0030.00316.33
7.3.280.0080.00916.31
7.3.270.0150.00616.85
7.3.260.0120.00816.30
7.3.250.0140.00416.41
7.3.240.0090.01216.33
7.3.230.0080.01216.39
7.3.220.0120.00616.37
7.3.210.0140.00516.30
7.3.200.0070.01016.35
7.3.190.0080.01216.28
7.3.180.0150.00816.29
7.3.170.0120.00816.33
7.3.160.0080.01116.31
7.3.150.0090.01016.33
7.3.140.0080.01116.40
7.3.130.0080.00916.38
7.3.120.0080.00916.40
7.3.110.0050.01116.25
7.3.100.0170.00416.44
7.3.90.0120.00916.47
7.3.80.0140.00916.43
7.3.70.0140.01016.38
7.3.60.0170.00816.43
7.3.50.0120.00916.43
7.3.40.0130.00916.40
7.3.30.0120.01016.45
7.3.20.0150.00916.44
7.3.10.0890.00915.98
7.3.00.0860.00816.38
7.2.340.0240.01416.50
7.2.330.0150.01016.60
7.2.320.0160.00916.56
7.2.310.0150.01316.58
7.2.300.0140.01216.50
7.2.290.0150.00816.60
7.2.280.0180.01016.52
7.2.270.0160.01016.61
7.2.260.0160.01016.59
7.2.250.0160.00916.57
7.2.240.0190.00616.62
7.2.230.0140.00916.52
7.2.220.0140.00916.47
7.2.210.0140.01016.53
7.2.200.0170.00816.50
7.2.190.0190.00416.46
7.2.180.0100.01016.54
7.2.170.0120.01016.49
7.2.160.0080.01416.53
7.2.150.0200.00516.54
7.2.140.0180.01016.66
7.2.130.0900.01016.76
7.2.120.1060.00816.61
7.2.110.0830.01016.18
7.2.100.0120.01316.26
7.2.90.0250.01216.18
7.2.80.0660.01016.21
7.2.70.0530.01316.09
7.2.60.0510.00816.39
7.2.50.0550.00916.12
7.2.40.0750.01016.20
7.2.30.0770.01016.29
7.2.20.0830.01116.15
7.2.10.0700.00716.22
7.2.00.0540.00916.27
7.1.330.0180.01215.63
7.1.320.0110.01015.57
7.1.310.0190.00915.47
7.1.300.0240.00315.45
7.1.290.0140.01115.52
7.1.280.0190.00915.54
7.1.270.0210.01015.52
7.1.260.0190.01316.17
7.1.250.1090.00715.53
7.1.240.0910.00914.94
7.1.230.0790.01015.08
7.1.220.0810.00915.13
7.1.210.0230.00815.08
7.1.200.0700.01415.20
7.1.190.0590.00715.13
7.1.180.0650.00715.10
7.1.170.0490.00715.09
7.1.160.0880.00715.00
7.1.150.0930.01315.09
7.1.140.0630.01115.11
7.1.130.0460.00615.12
7.1.120.0530.00815.52
7.1.110.0260.01015.44
7.1.100.0480.00815.40
7.1.90.0450.00815.37
7.1.80.0380.00915.46
7.1.70.0440.00915.54
7.1.60.0390.00818.50
7.1.50.0280.01018.41
7.1.40.0260.01118.35
7.1.30.0390.01318.40
7.1.20.0310.01018.40
7.1.10.0250.01115.43
7.1.00.0200.01015.46
7.0.330.0950.00715.31
7.0.320.0930.00714.74
7.0.310.0660.00914.85
7.0.300.0560.01114.93
7.0.290.0640.01014.78
7.0.280.0590.00714.77
7.0.270.0540.01014.76
7.0.260.0560.00814.88
7.0.250.0520.00815.21
7.0.240.0370.00515.23
7.0.230.0550.00615.06
7.0.220.0450.00714.95
7.0.210.0510.00714.83
7.0.200.0450.00815.27
7.0.190.0300.00715.24
7.0.180.0320.00915.07
7.0.170.0280.01115.14
7.0.160.0960.00615.00
7.0.150.0250.00914.99
7.0.140.0210.00615.13
7.0.130.0230.00815.17
7.0.120.0230.01015.19
7.0.110.0310.00715.08
7.0.100.0290.00915.13
7.0.90.0240.01015.15
7.0.80.0410.00915.13
7.0.70.0370.01115.00
7.0.60.0230.00915.02
7.0.50.0240.01115.13
7.0.40.0280.00714.82
7.0.30.0260.01214.85
7.0.20.0290.00814.81
7.0.10.0270.00814.79
7.0.00.0340.01014.71
5.6.400.0200.01015.86
5.6.390.0190.00915.96
5.6.380.0240.00715.60
5.6.370.0220.01315.88
5.6.360.0190.01015.85
5.6.350.0140.01415.96
5.6.340.0170.01215.77
5.6.330.0210.00815.87
5.6.320.0240.00615.78
5.6.310.0150.01215.85
5.6.300.0210.00815.85
5.6.290.0190.01115.89
5.6.280.0180.01415.96
5.6.270.0220.00715.85
5.6.260.0240.01215.74
5.6.250.0180.00815.84
5.6.240.0160.01215.81
5.6.230.0210.00715.77
5.6.220.0200.01115.88
5.6.210.0180.00915.93
5.6.200.0200.00915.83
5.6.190.0200.01015.97
5.6.180.0230.00915.90
5.6.170.0120.01515.81
5.6.160.0200.00915.86
5.6.150.0190.01115.89
5.6.140.0200.00815.90
5.6.130.0150.01315.86
5.6.120.0200.00815.89
5.6.110.0190.01115.87
5.6.100.0160.01215.79
5.6.90.0220.01115.82
5.6.80.0250.00715.82
5.6.70.0200.01115.79
5.6.60.0200.01115.80
5.6.50.0220.00815.72
5.6.40.0260.00915.86
5.6.30.0210.00715.77
5.6.20.0180.01215.78
5.6.10.0160.01115.83
5.6.00.0220.00615.82
5.5.380.0190.01315.80
5.5.370.0190.00915.83
5.5.360.0210.00615.85
5.5.350.0230.00715.64
5.5.340.0250.00815.71
5.5.330.0240.00615.75
5.5.320.0170.01015.77
5.5.310.0200.00915.74
5.5.300.0210.00915.76
5.5.290.0190.00915.82
5.5.280.0180.01115.75
5.5.270.0160.01215.71
5.5.260.0200.00815.70
5.5.250.0200.01115.81
5.5.240.0240.00815.75
5.5.230.0210.00915.81
5.5.220.0180.01015.71
5.5.210.0150.01415.76
5.5.200.0170.01215.54
5.5.190.0150.01415.68
5.5.180.0190.00915.74
5.5.170.0150.01215.69
5.5.160.0200.01015.69
5.5.150.0230.00615.62
5.5.140.0240.00815.67
5.5.130.0220.01015.52
5.5.120.0180.01215.70
5.5.110.0190.01215.70
5.5.100.0210.00815.74
5.5.90.0200.00915.75
5.5.80.0180.01115.81
5.5.70.0220.00915.79
5.5.60.0130.01615.66
5.5.50.0200.00815.68
5.5.40.0210.01115.78
5.5.30.0210.00815.78
5.5.20.0200.00915.68
5.5.10.0130.01615.70
5.5.00.0210.00615.62
5.4.450.0180.00313.31
5.4.440.0120.01113.37
5.4.430.0130.00813.33
5.4.420.0140.00613.38
5.4.410.0150.00813.38
5.4.400.0160.00613.34
5.4.390.0190.00513.31
5.4.380.0160.00513.32
5.4.370.0150.00813.36
5.4.360.0170.00513.38
5.4.350.0180.00513.34
5.4.340.0170.00513.38
5.4.330.0150.00813.33
5.4.320.0210.00413.33
5.4.310.0180.00513.32
5.4.300.0160.00713.33
5.4.290.0170.00713.36
5.4.280.0150.01013.38
5.4.270.0170.00613.37
5.4.260.0150.00913.33
5.4.250.0120.01213.33
5.4.240.0180.00613.31
5.4.230.0140.00813.19
5.4.220.0160.00613.29
5.4.210.0120.01213.31
5.4.200.0140.00913.24
5.4.190.0150.01213.22
5.4.180.0140.00913.24
5.4.170.0110.01113.29
5.4.160.0150.00813.27
5.4.150.0120.00813.34
5.4.140.0170.00913.40
5.4.130.0130.00913.34
5.4.120.0140.01013.33
5.4.110.0150.00713.33
5.4.100.0160.00713.36
5.4.90.0130.00913.32
5.4.80.0180.00513.32
5.4.70.0120.01013.38
5.4.60.0150.00713.36
5.4.50.0190.00313.33
5.4.40.0140.01113.30
5.4.30.0160.00913.35
5.4.20.0170.00913.36
5.4.10.0200.00513.30
5.4.00.0130.01013.26
5.3.290.0160.00813.68
5.3.280.0150.00913.55
5.3.270.0160.00813.63
5.3.260.0180.00613.61
5.3.250.0140.01013.62
5.3.240.0140.00913.55
5.3.230.0150.01013.62
5.3.220.0150.01113.54
5.3.210.0150.00813.51
5.3.200.0170.00613.55
5.3.190.0150.00913.62
5.3.180.0160.00813.58
5.3.170.0140.00913.60
5.3.160.0150.00813.67
5.3.150.0180.00913.66
5.3.140.0180.00713.63
5.3.130.0180.01013.59
5.3.120.0220.00713.64
5.3.110.0160.01313.68
5.3.100.0150.00913.61
5.3.90.0120.01313.66
5.3.80.0170.00813.50
5.3.70.0150.01013.50
5.3.60.0190.00613.57
5.3.50.0130.00913.46
5.3.40.0100.01113.51
5.3.30.0170.00613.57
5.3.20.0170.00613.52
5.3.10.0150.00613.56
5.3.00.0140.00813.37
5.2.170.0130.00712.91
5.2.160.0120.00712.92
5.2.150.0130.00812.96
5.2.140.0170.00412.88
5.2.130.0100.01012.89
5.2.120.0080.01112.93
5.2.110.0110.00812.99
5.2.100.0100.00812.98
5.2.90.0120.00712.89
5.2.80.0090.01012.78
5.2.70.0120.00812.84
5.2.60.0100.00912.78
5.2.50.0110.00912.78
5.2.40.0120.00812.83
5.2.30.0090.00912.80
5.2.20.0080.00912.76
5.2.10.0110.00812.74
5.2.00.0130.00612.74
5.1.60.0090.00712.59
5.1.50.0080.00712.59
5.1.40.0100.00712.59
5.1.30.0090.00812.59
5.1.20.0090.00812.59
5.1.10.0110.00512.59
5.1.00.0130.00612.59
5.0.50.0090.00612.59
5.0.40.0070.00612.59
5.0.30.0060.00812.59
5.0.20.0100.00312.59
5.0.10.0080.00612.59
5.0.00.0090.00612.59
4.4.90.0060.00312.59
4.4.80.0040.00512.59
4.4.70.0050.00312.59
4.4.60.0060.00212.59
4.4.50.0030.00612.59
4.4.40.0040.00512.59
4.4.30.0090.00212.59
4.4.20.0080.00312.59
4.4.10.0050.00412.59
4.4.00.0060.00312.59
4.3.110.0070.00212.59
4.3.100.0040.00412.59
4.3.90.0060.00312.59
4.3.80.0090.00112.59
4.3.70.0030.00612.59
4.3.60.0040.00512.59
4.3.50.0080.00312.59
4.3.40.0090.00112.59
4.3.30.0040.00412.59
4.3.20.0020.00712.59
4.3.10.0060.00212.59
4.3.00.0070.00212.59

preferences:
79.8 ms | 403 KiB | 5 Q