3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "this is a test (asdfasdfasdf)"; $asdf = preg_replace("/\s*\(.*\)\s*$/", "", $test); var_dump($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.3.60.0110.00418.31
8.3.50.0130.00316.48
8.3.40.0100.01018.97
8.3.30.0030.01518.65
8.3.20.0060.00920.63
8.3.10.0030.00621.92
8.3.00.0040.00423.53
8.2.180.0040.01118.41
8.2.170.0040.01122.96
8.2.160.0030.01020.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.01426.16
8.2.120.0050.00326.16
8.2.110.0030.00619.30
8.2.100.0040.00717.91
8.2.90.0080.00020.35
8.2.80.0080.00017.97
8.2.70.0030.00617.80
8.2.60.0000.00817.95
8.2.50.0000.00818.10
8.2.40.0000.00819.11
8.2.30.0000.00719.24
8.2.20.0030.00617.99
8.2.10.0050.00219.31
8.2.00.0040.00419.23
8.1.280.0140.00325.92
8.1.270.0000.00820.69
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.47
8.1.230.0070.00420.88
8.1.220.0050.00317.76
8.1.210.0000.00918.91
8.1.200.0050.00517.35
8.1.190.0030.00517.23
8.1.180.0090.00018.10
8.1.170.0000.00818.66
8.1.160.0000.01018.82
8.1.150.0070.00018.84
8.1.140.0040.00420.78
8.1.130.0040.00420.16
8.1.120.0040.00417.55
8.1.110.0030.00517.41
8.1.100.0090.00017.44
8.1.90.0000.00717.54
8.1.80.0050.00217.51
8.1.70.0070.00017.52
8.1.60.0000.00817.66
8.1.50.0060.00317.54
8.1.40.0040.00417.50
8.1.30.0040.00417.76
8.1.20.0000.01017.73
8.1.10.0030.00617.49
8.1.00.0000.00817.55
8.0.300.0000.00719.98
8.0.290.0050.00316.88
8.0.280.0030.00318.41
8.0.270.0030.00317.29
8.0.260.0030.00320.01
8.0.250.0100.00016.92
8.0.240.0030.00317.02
8.0.230.0040.00417.02
8.0.220.0000.00716.95
8.0.210.0070.00016.85
8.0.200.0000.00617.02
8.0.190.0000.00717.03
8.0.180.0040.00417.02
8.0.170.0050.00516.93
8.0.160.0030.00317.00
8.0.150.0000.00716.79
8.0.140.0060.00316.83
8.0.130.0050.00013.38
8.0.120.0040.00416.89
8.0.110.0000.00716.90
8.0.100.0000.00716.92
8.0.90.0050.00316.77
8.0.80.0060.01517.01
8.0.70.0000.00816.85
8.0.60.0040.00417.01
8.0.50.0040.00416.88
8.0.30.0080.00916.91
8.0.20.0110.00717.41
8.0.10.0040.00417.14
8.0.00.0120.00916.91
7.4.330.0030.00315.55
7.4.320.0030.00316.66
7.4.300.0030.00316.65
7.4.290.0030.00516.71
7.4.280.0050.00316.57
7.4.270.0050.00516.61
7.4.260.0030.00313.40
7.4.250.0070.00016.71
7.4.240.0040.00316.66
7.4.230.0070.00016.85
7.4.220.0070.00016.68
7.4.210.0070.00816.69
7.4.200.0000.00716.46
7.4.130.0090.00916.47
7.4.120.0110.00616.43
7.4.110.0100.00716.51
7.4.100.0040.01716.53
7.4.90.0090.00916.71
7.4.80.0040.01419.39
7.4.70.0070.01016.77
7.4.60.0100.00616.57
7.4.50.0090.00616.58
7.4.40.0090.00916.51
7.4.00.0050.00814.73
7.3.330.0070.00016.15
7.3.320.0030.00313.11
7.3.310.0080.00016.48
7.3.300.0000.00716.25
7.3.290.0030.00316.11
7.3.280.0070.01116.26
7.3.260.0090.01016.56
7.3.240.0120.00616.35
7.3.230.0080.01516.63
7.3.210.0070.01016.17
7.3.200.0030.01316.37
7.3.190.0000.01716.51
7.3.180.0060.01016.70
7.3.170.0120.00316.43
7.3.160.0110.00516.70
7.3.80.0100.00014.46
7.3.70.0050.00514.57
7.3.60.0080.00814.74
7.3.50.0070.00714.37
7.3.40.0090.00314.85
7.3.30.0120.00314.91
7.3.20.0140.00714.80
7.3.10.0090.00614.95
7.3.00.0150.00414.61
7.2.330.0030.01416.41
7.2.320.0080.00816.49
7.2.310.0180.00016.75
7.2.300.0070.01016.76
7.2.290.0060.01016.75
7.2.210.0040.00714.89
7.2.200.0110.00015.24
7.2.190.0080.00314.69
7.2.180.0030.00815.10
7.2.170.0100.00715.10
7.2.160.0090.00615.09
7.2.150.0100.01015.04
7.2.140.0140.00315.32
7.2.130.0120.00615.11
7.2.120.0080.00815.18
7.2.110.0140.00714.89
7.2.100.0120.00615.11
7.2.90.0100.00315.14
7.2.80.0070.01015.13
7.2.70.0070.00715.14
7.2.60.0090.00915.05
7.2.50.0070.01115.20
7.2.40.0140.01015.27
7.2.30.0120.00615.00
7.2.20.0150.00415.17
7.2.10.0090.00914.57
7.2.00.0150.00615.19
7.1.310.0130.00014.28
7.1.300.0510.01014.05
7.1.290.0030.01013.92
7.1.280.0100.01014.15
7.1.270.0110.01114.21
7.1.260.0080.00513.64
7.1.250.0060.00613.91

preferences:
93.28 ms | 401 KiB | 5 Q