3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is a placeholder #string and it looks @great right?"; $newstring = preg_replace("/@\w+\s/", "", $string); print $newstring;

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.120.0140.00720.44
8.4.110.0120.00522.49
8.4.100.0110.00918.86
8.4.90.0050.00318.66
8.4.80.0060.00318.80
8.4.70.0130.00817.79
8.4.60.0110.00820.85
8.4.50.0140.00619.68
8.4.40.0070.00417.77
8.4.30.0060.00317.71
8.4.20.0030.00619.64
8.4.10.0030.01319.81
8.3.250.0080.01018.53
8.3.240.0100.00917.17
8.3.230.0070.00316.75
8.3.220.0100.00919.04
8.3.210.0130.00516.73
8.3.200.0070.00216.82
8.3.190.0100.00917.18
8.3.180.0120.00618.35
8.3.170.0060.00320.53
8.3.160.0150.00416.95
8.3.150.0070.00717.25
8.3.140.0070.00717.11
8.3.130.0130.00318.42
8.3.120.0030.00618.84
8.3.110.0030.00616.91
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0040.00718.43
8.3.70.0130.00318.18
8.3.60.0130.00916.50
8.3.50.0100.00517.37
8.3.40.0140.00018.83
8.3.30.0040.01118.97
8.3.20.0000.00720.42
8.3.10.0060.00323.36
8.3.00.0000.00723.61
8.2.290.0140.00820.62
8.2.280.0040.00418.86
8.2.270.0150.00316.98
8.2.260.0040.00418.97
8.2.250.0080.00018.30
8.2.240.0040.00419.25
8.2.230.0030.00620.94
8.2.220.0030.00737.54
8.2.210.0040.00426.77
8.2.200.0060.00318.54
8.2.190.0150.00317.00
8.2.180.0150.00318.41
8.2.170.0120.00622.96
8.2.160.0110.00319.46
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.05
8.2.110.0060.00320.35
8.2.100.0040.00817.97
8.2.90.0090.00419.16
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0030.00718.07
8.2.40.0060.00318.16
8.2.30.0030.00618.01
8.2.20.0000.00717.95
8.2.10.0080.00018.02
8.2.00.0070.00018.08
8.1.330.0150.00421.73
8.1.320.0100.01018.00
8.1.310.0060.00316.47
8.1.300.0000.01117.93
8.1.290.0000.00830.84
8.1.280.0150.00025.92
8.1.270.0000.00923.90
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0070.00323.89
8.1.230.0030.00722.31
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0000.00818.60
8.1.160.0080.00018.71
8.1.150.0040.00420.10
8.1.140.0000.00718.95
8.1.130.0000.00817.53
8.1.120.0030.00317.61
8.1.110.0050.00317.55
8.1.100.0060.00317.63
8.1.90.0080.00017.49
8.1.80.0040.00417.59
8.1.70.0070.00017.54
8.1.60.0050.00317.66
8.1.50.0050.00217.59
8.1.40.0040.00417.60
8.1.30.0040.00417.69
8.1.20.0070.00017.72
8.1.10.0000.00817.57
8.1.00.0050.00317.45
8.0.300.0050.00318.77
8.0.290.0000.00916.75
8.0.280.0000.00718.38
8.0.270.0030.00316.97
8.0.260.0000.00716.92
8.0.250.0000.00716.95
8.0.240.0050.00317.09
8.0.230.0030.00316.94
8.0.220.0030.00316.99
8.0.210.0030.00316.94
8.0.200.0040.00417.02
8.0.190.0000.00816.95
8.0.180.0000.00716.88
8.0.170.0000.00716.97
8.0.160.0000.00716.96
8.0.150.0000.00816.90
8.0.140.0000.00816.95
8.0.130.0000.00513.38
8.0.120.0000.00816.96
8.0.110.0000.00817.02
8.0.100.0030.00616.80
8.0.90.0040.00416.83
8.0.80.0060.01216.94
8.0.70.0040.00417.01
8.0.60.0000.00816.86
8.0.50.0000.00716.79
8.0.30.0090.01017.36
8.0.20.0110.00717.40
8.0.10.0000.00916.98
8.0.00.0090.01216.67
7.4.330.0030.00315.55
7.4.320.0030.00316.60
7.4.300.0040.00416.66
7.4.290.0070.00016.55
7.4.280.0040.00416.55
7.4.270.0110.00316.74
7.4.260.0000.01016.59
7.4.250.0040.00416.61
7.4.240.0000.00916.60
7.4.230.0020.00516.84
7.4.220.0070.01416.73
7.4.210.0080.00816.80
7.4.200.0050.00216.70
7.4.150.0170.00417.40
7.4.140.0130.00717.86
7.4.130.0090.00916.56
7.4.120.0140.00716.59
7.4.110.0070.01016.69
7.4.100.0200.00316.46
7.4.90.0120.00916.63
7.4.80.0100.01019.39
7.4.70.0150.00716.67
7.4.60.0110.00716.59
7.4.50.0040.01116.63
7.4.40.0120.00616.54
7.4.30.0070.01316.48
7.4.10.0060.01015.07
7.4.00.0100.00515.18
7.3.330.0000.00513.14
7.3.320.0060.00013.22
7.3.310.0070.00016.40
7.3.300.0030.00316.42
7.3.290.0080.00916.30
7.3.280.0080.01016.40
7.3.270.0160.00717.40
7.3.260.0130.00416.46
7.3.250.0130.00616.52
7.3.240.0080.01116.41
7.3.230.0090.00616.59
7.3.210.0160.00316.67
7.3.200.0030.01316.41
7.3.190.0090.00816.88
7.3.180.0120.00316.79
7.3.170.0080.00816.63
7.3.160.0060.01216.30
7.3.130.0100.00714.90
7.3.120.0070.01014.69
7.3.110.0030.01214.99
7.3.100.0110.00515.12
7.3.90.0090.00714.69
7.3.80.0040.00815.01
7.3.70.0100.00614.67
7.3.60.0080.00514.77
7.3.50.0100.00515.02
7.3.40.0020.00914.79
7.3.30.0070.00515.00
7.3.20.0030.01216.91
7.3.10.0050.00816.78
7.3.00.0050.00916.73
7.2.330.0140.00316.85
7.2.320.0130.00316.76
7.2.310.0160.00816.66
7.2.300.0160.00316.77
7.2.290.0070.01016.75
7.2.260.0100.01015.03
7.2.250.0160.00315.02
7.2.240.0080.00615.21
7.2.230.0050.01115.09
7.2.220.0110.00415.03
7.2.210.0100.00515.15
7.2.200.0050.00815.13
7.2.190.0050.01015.00
7.2.180.0030.00815.11
7.2.170.0030.01115.00
7.2.160.0060.00815.30
7.2.150.0110.00416.96
7.2.140.0090.00917.18
7.2.130.0020.01116.99
7.2.120.0080.00817.01
7.2.110.0090.00417.02
7.2.100.0030.01217.08
7.2.90.0040.00817.11
7.2.80.0060.00816.97
7.2.70.0050.00817.07
7.2.60.0070.01017.06
7.2.50.0060.00717.01
7.2.40.0030.01016.92
7.2.30.0030.01016.92
7.2.20.0070.01117.00
7.2.10.0050.01017.12
7.2.00.0050.00917.09
7.1.330.0040.01315.98
7.1.320.0090.00715.91
7.1.310.0030.01015.92
7.1.300.0050.00715.85
7.1.290.0030.01015.86
7.1.280.0050.00815.85
7.1.270.0090.00215.78
7.1.260.0050.00815.86
7.1.250.0100.00315.79
7.1.240.0040.01115.64
7.1.230.0030.00916.01
7.1.220.0000.01416.01
7.1.210.0060.00615.98
7.1.200.0080.00515.84
7.1.190.0030.01215.91
7.1.180.0030.01315.81
7.1.170.0070.00715.67
7.1.160.0060.00315.88
7.1.150.0110.00315.75
7.1.140.0030.01015.79
7.1.130.0060.00316.09
7.1.120.0030.00615.84
7.1.110.0590.00516.19
7.1.100.0320.01016.29
7.1.90.0500.00316.28
7.1.80.0590.01016.12
7.1.70.0510.00715.66
7.1.60.0410.00924.77
7.1.50.0420.01024.57
7.1.40.0470.01124.33
7.1.30.0520.01424.40
7.1.20.0370.01224.45
7.1.10.0340.01215.50
7.1.00.0490.00715.61
7.0.330.0000.01415.72
7.0.320.0090.00315.49
7.0.310.0110.00415.68
7.0.300.0060.00715.57
7.0.290.0060.00615.75
7.0.280.0040.00915.62
7.0.270.0090.00315.46
7.0.260.0060.00615.44
7.0.250.0320.00915.92
7.0.240.0310.00715.87
7.0.230.0430.00315.73
7.0.220.0490.00515.84
7.0.210.0390.00315.05
7.0.200.0430.00915.21
7.0.190.0550.00515.29
7.0.180.0390.00515.18
7.0.170.0520.00315.14
7.0.160.0620.01315.16
7.0.150.0290.00715.06
7.0.140.0320.01215.27
7.0.130.0390.00815.21
7.0.120.0490.00315.32
7.0.110.0540.01115.18
7.0.100.0350.00515.16
7.0.90.0350.00715.05
7.0.80.0360.00815.15
7.0.70.0420.00515.00
7.0.60.0530.00814.96
7.0.50.0420.00515.32
7.0.40.0390.00914.13
7.0.30.0400.00514.32
7.0.20.0450.00914.14
7.0.10.0400.01314.07
7.0.00.0400.01314.23
5.6.400.0110.00014.40
5.6.390.0070.00714.38
5.6.380.0060.00314.30
5.6.370.0080.00314.34
5.6.360.0000.01114.24
5.6.350.0040.00814.38
5.6.340.0070.00714.24
5.6.330.0000.01114.19
5.6.320.0070.00714.01
5.6.310.0080.00414.56
5.6.300.0090.00314.40
5.6.290.0040.00714.11
5.6.280.0040.00814.41
5.6.270.0100.00014.70
5.6.260.0030.01114.37
5.6.250.0080.00414.19
5.6.240.0070.00714.24
5.6.230.0030.00714.48
5.6.220.0000.01814.40
5.6.210.0070.01014.28
5.6.200.0060.01014.30
5.6.190.0030.01314.43
5.6.180.0100.00714.30
5.6.170.0070.01013.95
5.6.160.0060.00314.05
5.6.150.0100.00714.46
5.6.140.0100.00314.36
5.6.130.0070.00714.18
5.6.120.0110.00614.18
5.6.110.0060.00614.18
5.6.100.0180.00014.32
5.6.90.0140.00314.16
5.6.80.0000.01314.08
5.6.70.0040.01114.25
5.6.60.0110.00414.35
5.6.50.0100.00314.07
5.6.40.0030.00614.02
5.6.30.0000.01514.61
5.6.20.0080.00814.23
5.6.10.0070.00714.20
5.6.00.0030.00914.29

preferences:
28.71 ms | 403 KiB | 5 Q