3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "this is a test (asdfasdfasdf)"; $asdf = preg_replace("/\s*\(.*\)\s*$/", "", $test); var_dump($asdf);

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.0100.00718.55
8.3.50.0120.00316.57
8.3.40.0120.00618.88
8.3.30.0060.01318.67
8.3.20.0160.00022.48
8.3.10.0000.00821.91
8.3.00.0030.00623.65
8.2.180.0140.00716.63
8.2.170.0110.00422.96
8.2.160.0070.00720.45
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0060.00321.03
8.2.100.0080.00417.91
8.2.90.0040.00420.59
8.2.80.0050.00317.97
8.2.70.0000.00817.91
8.2.60.0000.00918.16
8.2.50.0000.00818.10
8.2.40.0050.00319.20
8.2.30.0070.00019.13
8.2.20.0000.00718.00
8.2.10.0040.00419.30
8.2.00.0030.00519.18
8.1.280.0120.00625.92
8.1.270.0030.00520.54
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00023.95
8.1.230.0060.00620.97
8.1.220.0050.00317.74
8.1.210.0000.00818.87
8.1.200.0060.00317.38
8.1.190.0040.00417.35
8.1.180.0030.00619.32
8.1.170.0030.00618.71
8.1.160.0070.00318.95
8.1.150.0040.00418.89
8.1.140.0030.00320.91
8.1.130.0070.00020.14
8.1.120.0020.00517.52
8.1.110.0080.00017.51
8.1.100.0040.00417.51
8.1.90.0020.00517.52
8.1.80.0030.00517.43
8.1.70.0040.00417.57
8.1.60.0040.00417.56
8.1.50.0050.00317.55
8.1.40.0000.00817.59
8.1.30.0030.00517.75
8.1.20.0030.00917.74
8.1.10.0080.00017.61
8.1.00.0040.00417.54
8.0.300.0030.00719.84
8.0.290.0070.00016.63
8.0.280.0000.00718.39
8.0.270.0000.00717.13
8.0.260.0030.00320.07
8.0.250.0030.00717.02
8.0.240.0000.00717.10
8.0.230.0030.00317.04
8.0.220.0000.00716.86
8.0.210.0030.00316.97
8.0.200.0030.00316.89
8.0.190.0000.00716.91
8.0.180.0040.00416.93
8.0.170.0070.00317.00
8.0.160.0030.00316.95
8.0.150.0040.00416.98
8.0.140.0040.00816.95
8.0.130.0000.00513.35
8.0.120.0080.00016.92
8.0.110.0040.00416.80
8.0.100.0040.00417.02
8.0.90.0050.00217.01
8.0.80.0070.01416.90
8.0.70.0080.00016.91
8.0.60.0000.00717.08
8.0.50.0020.00517.00
8.0.30.0070.01016.92
8.0.20.0070.01117.43
8.0.10.0040.00417.11
8.0.00.0090.01216.93
7.4.330.0050.00015.55
7.4.320.0000.00616.66
7.4.300.0030.00316.62
7.4.290.0070.00016.65
7.4.280.0030.00316.76
7.4.270.0000.00916.57
7.4.260.0000.00513.45
7.4.250.0070.00016.75
7.4.240.0040.00316.61
7.4.230.0000.00716.46
7.4.220.0040.00316.67
7.4.210.0040.01216.70
7.4.200.0000.00716.74
7.4.130.0070.01116.49
7.4.120.0090.00916.60
7.4.110.0040.01416.44
7.4.100.0110.00716.53
7.4.90.0070.01016.83
7.4.80.0170.00019.39
7.4.70.0050.01316.58
7.4.60.0090.00616.48
7.4.50.0070.00316.73
7.4.40.0030.01316.59
7.4.00.0000.01415.17
7.3.330.0040.00416.10
7.3.320.0030.00313.01
7.3.310.0040.00416.23
7.3.300.0030.00316.14
7.3.290.0040.00416.27
7.3.280.0060.01016.22
7.3.260.0120.00716.48
7.3.240.0080.01016.36
7.3.230.0070.01016.68
7.3.210.0090.00916.30
7.3.200.0090.00816.31
7.3.190.0100.00716.29
7.3.180.0100.00616.42
7.3.170.0090.00916.73
7.3.160.0110.00516.26
7.3.80.0110.00314.97
7.3.70.0120.00614.82
7.3.60.0040.01314.63
7.3.50.0140.00714.41
7.3.40.0070.01014.69
7.3.30.0120.00414.73
7.3.20.0800.00014.80
7.3.10.0150.00614.75
7.3.00.0080.00814.84
7.2.330.0070.01016.75
7.2.320.0130.00316.75
7.2.310.0080.01216.58
7.2.300.0180.00016.57
7.2.290.0170.00016.48
7.2.210.0060.00914.93
7.2.200.0090.00915.20
7.2.190.0160.00415.05
7.2.180.0060.01615.16
7.2.170.0180.00315.09
7.2.160.0130.00314.62
7.2.150.0140.00715.18
7.2.140.0130.00814.98
7.2.130.0120.00615.26
7.2.120.0060.01215.18
7.2.110.0160.00314.91
7.2.100.0150.00015.23
7.2.90.0130.00615.09
7.2.80.0150.00615.02
7.2.70.0050.01415.16
7.2.60.0090.00914.96
7.2.50.0160.00815.03
7.2.40.0150.00315.05
7.2.30.0120.00515.04
7.2.20.0160.00814.93
7.2.10.0090.00914.75
7.2.00.0170.00415.28
7.1.310.0150.00413.90
7.1.300.0060.01513.93
7.1.290.0130.00313.85
7.1.280.0030.01413.86
7.1.270.0150.00414.00
7.1.260.0170.00013.70
7.1.250.0140.00913.76

preferences:
42.69 ms | 400 KiB | 5 Q