3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'one "two" (three) -four-'; echo preg_replace('/\w+\K/', '*', $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.5.00.0100.01220.34
8.4.150.0020.00114.05
8.4.140.0100.01117.77
8.4.130.0030.00717.80
8.4.120.0090.00920.52
8.4.110.0090.01118.20
8.4.100.0060.00918.86
8.4.90.0030.00520.52
8.4.80.0130.00720.45
8.4.70.0080.00118.14
8.4.60.0110.00918.92
8.4.50.0130.00918.66
8.4.40.0080.01218.70
8.4.30.0090.00922.34
8.4.20.0040.00818.04
8.4.10.0000.00919.55
8.3.280.0140.00918.53
8.3.270.0110.01216.92
8.3.260.0120.00716.86
8.3.250.0050.00318.80
8.3.240.0100.00717.04
8.3.230.0130.00616.75
8.3.220.0040.00418.84
8.3.210.0040.00316.53
8.3.200.0040.00516.54
8.3.190.0100.00717.04
8.3.180.0110.00816.68
8.3.170.0070.01120.71
8.3.160.0110.00717.22
8.3.150.0110.00720.55
8.3.140.0090.00316.85
8.3.130.0090.00018.60
8.3.120.0070.00318.82
8.3.110.0060.00920.94
8.3.100.0100.00024.06
8.3.90.0100.00026.77
8.3.80.0040.00418.43
8.3.70.0100.01016.63
8.3.60.0140.01018.43
8.3.50.0200.00316.71
8.3.40.0070.00722.08
8.3.30.0100.00321.92
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0130.00520.26
8.2.280.0040.00418.46
8.2.270.0150.00317.12
8.2.260.0140.00318.56
8.2.250.0040.00418.57
8.2.240.0100.00017.05
8.2.230.0040.00422.58
8.2.220.0070.01337.54
8.2.210.0050.00326.77
8.2.200.0040.00418.41
8.2.190.0070.01118.66
8.2.180.0130.00925.92
8.2.170.0090.00619.07
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0000.00720.01
8.2.110.0160.00722.12
8.2.100.0120.01221.10
8.2.90.0180.00719.01
8.2.80.0130.00618.70
8.2.70.0230.00018.89
8.2.60.0220.01118.77
8.2.50.0130.00718.80
8.2.40.0210.00318.88
8.2.30.0120.00318.95
8.2.20.0090.00618.96
8.2.10.0200.01618.88
8.2.00.0280.00719.08
8.1.330.0110.00821.73
8.1.320.0130.00618.11
8.1.310.0090.00016.54
8.1.300.0040.00418.30
8.1.290.0000.00918.88
8.1.280.0060.00925.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00618.62
8.1.230.0150.00318.69
8.1.220.0100.00718.66
8.1.210.0160.00019.84
8.1.200.0120.00618.57
8.1.190.0040.01118.42
8.1.180.0270.00318.56
8.1.170.0280.00618.58
8.1.160.0080.00818.62
8.1.150.0090.00920.28
8.1.140.0160.00318.48
8.1.130.0160.00018.67
8.1.120.0140.00018.54
8.1.110.0100.00618.72
8.1.100.0130.00318.59
8.1.90.0080.00818.69
8.1.80.0120.00318.67
8.1.70.0110.00318.75
8.1.60.0110.00718.71
8.1.50.0140.00518.63
8.1.40.0000.01518.87
8.1.30.0070.00719.07
8.1.20.0200.00618.60
8.1.10.0120.00318.82
8.1.00.0150.00518.66
8.0.300.0210.00418.01
8.0.290.0120.00618.10
8.0.280.0260.00718.07
8.0.270.0130.00317.99
8.0.260.0150.00817.78
8.0.250.0130.00318.04
8.0.240.0190.00318.04
8.0.230.0070.00718.26
8.0.220.0160.00717.94
8.0.210.0120.00417.94
8.0.200.0170.01417.86
8.0.190.0130.00418.01
8.0.180.0160.00018.04
8.0.170.0140.00018.06
8.0.160.0130.00718.01
8.0.150.0130.00417.95
8.0.140.0120.00817.93
8.0.130.0070.00718.04
8.0.120.0130.00518.05
8.0.110.0050.01118.20
8.0.100.0350.00717.94
8.0.90.0140.00517.83
8.0.80.0160.00317.95
8.0.70.0130.00317.88
8.0.60.0150.00018.05
8.0.50.0130.00318.05
8.0.30.0100.00318.00
8.0.20.0140.00317.92
8.0.10.0260.00317.98

preferences:
87.69 ms | 403 KiB | 5 Q