3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_replace( '/^(\s+)?$/', 'empty', ' x ' );

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.0150.00616.75
8.3.50.0100.00718.11
8.3.40.0060.00918.82
8.3.30.0110.00418.62
8.3.20.0040.00418.86
8.3.10.0000.00821.81
8.3.00.0080.00017.80
8.2.180.0090.00918.61
8.2.170.0070.00722.96
8.2.160.0150.00018.73
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00319.76
8.2.120.0040.00426.35
8.2.110.0070.00421.04
8.2.100.0040.00717.91
8.2.90.0090.00018.16
8.2.80.0000.00917.97
8.2.70.0080.00017.80
8.2.60.0000.00817.80
8.2.50.0060.00318.10
8.2.40.0040.00419.11
8.2.30.0040.00419.29
8.2.20.0000.00717.95
8.2.10.0070.00017.94
8.2.00.0000.00719.29
8.1.280.0110.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00019.24
8.1.230.0080.00320.82
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.36
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0040.00418.69
8.1.160.0000.00718.82
8.1.150.0000.00818.77
8.1.140.0070.00017.76
8.1.130.0000.00618.96
8.1.120.0030.00517.49
8.1.110.0000.00717.36
8.1.100.0000.00717.48
8.1.90.0040.00417.48
8.1.80.0070.00417.50
8.1.70.0030.00317.44
8.1.60.0000.01217.49
8.1.50.0000.00817.49
8.1.40.0000.00817.50
8.1.30.0060.00317.68
8.1.20.0040.00417.56
8.1.10.0000.00717.50
8.1.00.0000.00717.44
8.0.300.0000.00719.77
8.0.290.0020.00516.75
8.0.280.0030.00318.43
8.0.270.0030.00317.07
8.0.260.0000.00617.19
8.0.250.0070.00016.97
8.0.240.0040.00416.86
8.0.230.0030.00516.88
8.0.220.0040.00416.90
8.0.210.0040.00416.80
8.0.200.0000.00716.93
8.0.190.0040.00416.98
8.0.180.0000.00716.95
8.0.170.0040.00416.97
8.0.160.0070.00016.98
8.0.150.0000.00716.86
8.0.140.0000.00716.91
8.0.130.0000.00513.34
8.0.120.0000.00716.76
8.0.110.0060.00316.89
8.0.100.0030.00516.71
8.0.90.0030.00316.80
8.0.80.0110.00416.84
8.0.70.0040.00416.74
8.0.60.0030.00616.70
8.0.50.0000.00716.77
8.0.30.0080.01217.04
8.0.20.0120.00717.40
8.0.10.0000.00717.06
8.0.00.0130.00516.85
7.4.330.0000.00615.55
7.4.320.0030.00316.69
7.4.300.0050.00216.65
7.4.290.0030.00316.57
7.4.280.0050.00316.71
7.4.270.0030.00316.58
7.4.260.0050.00316.55
7.4.250.0030.00316.64
7.4.240.0030.00616.51
7.4.230.0050.00216.51
7.4.220.0030.00416.55
7.4.210.0070.00716.61
7.4.200.0030.00316.74
7.4.160.0130.00516.46
7.4.140.0100.00917.86
7.4.130.0060.01916.59
7.4.120.0110.00916.51
7.4.110.0130.00616.41
7.4.100.0110.00616.41
7.4.90.0180.00016.55
7.4.80.0040.01819.39
7.4.70.0160.00016.67
7.4.60.0060.00916.47
7.4.50.0030.01316.35
7.4.40.0100.00616.42
7.4.00.0060.00614.84
7.3.330.0020.00213.07
7.3.320.0060.00013.11
7.3.310.0050.00316.27
7.3.300.0030.00316.32
7.3.290.0040.00416.26
7.3.280.0050.01216.31
7.3.260.0090.00816.38
7.3.240.0090.00916.31
7.3.230.0090.01216.36
7.3.210.0080.01516.32
7.3.200.0100.00716.59
7.3.190.0030.01816.27
7.3.180.0040.01216.33
7.3.170.0130.00316.20
7.3.160.0100.01016.30
7.2.330.0090.00916.56
7.2.320.0060.01116.73
7.2.310.0090.00816.47
7.2.300.0030.01416.72
7.2.290.0150.00616.43
7.2.60.0120.00316.68
7.2.40.1180.01118.14
7.2.30.1360.00617.91
7.2.20.1460.01117.90
7.2.10.1200.01018.04
7.2.00.1160.01018.00
7.1.200.0060.00615.47
7.1.160.1290.01116.91
7.1.150.1070.00716.79
7.1.140.1010.00917.06
7.1.130.1400.00717.02
7.1.120.1170.00917.06
7.1.110.1180.00816.07
7.1.100.1280.00916.38
7.1.90.1690.00516.28
7.1.80.1620.00716.22
7.1.70.1470.00715.11
7.1.60.1620.00933.23
7.1.50.2040.00732.95
7.1.40.2130.01332.63
7.1.30.2610.01232.68
7.1.20.1860.01032.88
7.1.10.1640.00914.82
7.1.00.1180.00814.86

preferences:
59.93 ms | 400 KiB | 5 Q