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.0090.00618.36
8.3.50.0110.01116.51
8.3.40.0100.01018.59
8.3.30.0110.00718.57
8.3.20.0090.00620.48
8.3.10.0000.00821.92
8.3.00.0000.00823.70
8.2.180.0130.01016.63
8.2.170.0070.01022.96
8.2.160.0070.00720.34
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0170.00719.31
8.2.100.0040.00817.78
8.2.90.0070.00020.45
8.2.80.0050.00317.97
8.2.70.0040.00417.80
8.2.60.0060.00318.16
8.2.50.0040.00418.10
8.2.40.0040.00419.20
8.2.30.0000.00719.06
8.2.20.0040.00418.02
8.2.10.0070.00019.17
8.2.00.0040.00419.29
8.1.280.0090.00925.92
8.1.270.0070.00720.73
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.37
8.1.230.0120.00020.96
8.1.220.0040.00417.74
8.1.210.0040.00418.91
8.1.200.0030.00617.10
8.1.190.0030.00517.11
8.1.180.0040.00418.10
8.1.170.0030.00618.34
8.1.160.0030.00618.85
8.1.150.0040.00418.82
8.1.140.0080.00020.89
8.1.130.0050.00320.07
8.1.120.0030.00517.29
8.1.110.0000.00817.39
8.1.100.0040.00417.41
8.1.90.0030.00517.23
8.1.80.0040.00417.29
8.1.70.0070.00017.38
8.1.60.0040.00417.52
8.1.50.0040.00417.44
8.1.40.0040.00417.45
8.1.30.0080.00017.59
8.1.20.0070.00317.49
8.1.10.0040.00417.40
8.1.00.0030.00517.29
8.0.300.0000.00819.98
8.0.290.0040.00416.75
8.0.280.0030.00318.29
8.0.270.0030.00317.08
8.0.260.0030.00319.87
8.0.250.0030.00716.84
8.0.240.0030.00316.87
8.0.230.0040.00416.96
8.0.220.0040.00416.93
8.0.210.0080.00016.77
8.0.200.0040.00416.88
8.0.190.0040.00316.84
8.0.180.0070.00016.83
8.0.170.0060.00316.86
8.0.160.0070.00016.89
8.0.150.0030.00316.73
8.0.140.0030.00816.67
8.0.130.0030.00313.30
8.0.120.0080.00016.85
8.0.110.0000.00716.86
8.0.100.0050.00316.80
8.0.90.0040.00416.82
8.0.80.0060.00916.76
8.0.70.0030.00516.88
8.0.60.0070.00016.89
8.0.50.0040.00416.75
8.0.30.0110.00817.00
8.0.20.0100.00716.99
8.0.10.0040.00416.95
8.0.00.0090.01016.58
7.4.330.0000.00515.55
7.4.320.0000.00616.42
7.4.300.0000.00716.34
7.4.290.0070.00016.50
7.4.280.0030.00316.41
7.4.270.0070.00316.46
7.4.260.0000.00513.22
7.4.250.0030.00316.25
7.4.240.0040.00416.47
7.4.230.0000.00716.34
7.4.220.0040.00416.46
7.4.210.0060.00916.46
7.4.200.0070.00016.41
7.4.130.0090.00816.23
7.4.120.0030.01316.51
7.4.110.0070.01016.48
7.4.100.0070.01116.50
7.4.90.0070.01016.46
7.4.80.0150.00319.39
7.4.70.0110.00716.60
7.4.60.0080.00816.50
7.4.50.0070.01016.50
7.4.40.0070.01416.57
7.4.00.0110.00014.57
7.3.330.0030.00316.14
7.3.320.0000.00612.89
7.3.310.0000.00716.14
7.3.300.0070.00016.08
7.3.290.0050.00216.18
7.3.280.0070.01416.17
7.3.260.0110.01016.27
7.3.240.0110.00616.31
7.3.230.0090.00816.45
7.3.210.0060.01216.18
7.3.200.0060.01216.47
7.3.190.0110.00716.15
7.3.180.0090.01216.16
7.3.170.0060.01416.36
7.3.160.0110.00516.38
7.3.80.0100.00614.50
7.3.70.0080.00314.82
7.3.60.0110.00714.14
7.3.50.0100.00614.66
7.3.40.0100.00314.47
7.3.30.0070.00714.66
7.3.20.0110.00514.67
7.3.10.0070.01014.48
7.3.00.0090.00914.68
7.2.330.0070.01416.27
7.2.320.0060.01216.30
7.2.310.0060.01316.25
7.2.300.0000.01716.29
7.2.290.0090.00616.64
7.2.210.0090.00315.04
7.2.200.0070.01314.81
7.2.190.0140.00014.92
7.2.180.0100.01014.96
7.2.170.0080.00414.89
7.2.160.0030.01015.05
7.2.150.0100.00715.05
7.2.140.0100.01014.82
7.2.130.0190.00314.79
7.2.120.0150.00514.78
7.2.110.0080.00814.70
7.2.100.0160.00314.75
7.2.90.0120.00615.00
7.2.80.0160.00715.09
7.2.70.0450.00615.05
7.2.60.0160.00614.84
7.2.50.0160.00415.00
7.2.40.0130.00614.96
7.2.30.0080.00514.67
7.2.20.0100.01014.83
7.2.10.0200.00714.40
7.2.00.0110.00815.00
7.1.310.0070.00713.84
7.1.300.0070.00713.79
7.1.290.0040.01313.75
7.1.280.0070.01013.81
7.1.270.0100.00313.89
7.1.260.0090.00913.86
7.1.250.0190.00013.77

preferences:
71.19 ms | 401 KiB | 5 Q