3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expression = 'here we got a number 23 % and so on'; echo preg_replace( '/\d+\s?%/', '<b>$0</b>', $expression );

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.30.0090.00721.43
8.5.20.0130.00620.34
8.5.10.0120.00716.82
8.5.00.0110.01220.29
8.4.180.0160.00719.91
8.4.170.0130.01023.79
8.4.160.0130.00821.45
8.4.150.0070.00516.92
8.4.140.0160.00717.79
8.4.130.0110.01019.43
8.4.120.0080.01224.34
8.4.110.0050.00418.73
8.4.100.0080.01218.73
8.4.90.0100.00920.74
8.4.80.0060.00218.86
8.4.70.0050.00418.97
8.4.60.0130.00718.69
8.4.50.0110.00920.49
8.4.40.0080.01117.84
8.4.30.0200.00020.65
8.4.20.0140.00721.56
8.4.10.0130.00719.41
8.3.300.0120.00822.62
8.3.290.0130.00920.93
8.3.280.0110.00918.36
8.3.270.0110.00816.55
8.3.260.0100.01016.43
8.3.250.0080.01116.93
8.3.240.0100.00917.22
8.3.230.0160.00716.27
8.3.220.0100.00818.94
8.3.210.0100.00818.97
8.3.200.0040.00516.57
8.3.190.0090.00817.02
8.3.180.0130.00518.90
8.3.170.0070.01122.62
8.3.160.0040.00418.80
8.3.150.0110.00717.22
8.3.140.0080.00017.29
8.3.130.0030.00518.35
8.3.120.0090.00020.61
8.3.110.0090.00018.38
8.3.100.0440.00337.54
8.3.90.0370.01237.54
8.3.80.0430.00637.54
8.3.70.0430.00737.54
8.3.60.0330.01737.54
8.3.50.0380.00637.54
8.3.40.0340.01137.54
8.3.30.0350.00437.54
8.3.20.0400.00037.54
8.3.10.0230.01437.54
8.3.00.0300.00337.54
8.2.300.0100.00922.11
8.2.290.0130.00520.53
8.2.280.0080.00620.11
8.2.270.0080.01116.79
8.2.260.0070.00716.89
8.2.250.0130.00717.10
8.2.240.0060.00317.48
8.2.230.0070.00320.94
8.2.220.0300.00337.54
8.2.210.0300.00337.54
8.2.200.0360.00637.54
8.2.190.0260.01537.54
8.2.180.0300.00737.54
8.2.170.0210.00037.54
8.2.160.0190.00037.54
8.2.150.0410.00337.54
8.2.140.0380.00637.54
8.2.130.0130.00337.54
8.2.120.0350.01037.54
8.2.110.0380.00337.54
8.2.100.0350.01037.54
8.2.90.0510.00637.54
8.2.80.0310.00837.54
8.2.70.0440.00037.54
8.2.60.0390.00337.54
8.2.50.0330.01037.54
8.2.40.0310.00637.54
8.2.30.0290.01537.54
8.2.20.0350.00837.54
8.2.10.0330.00437.54
8.2.00.0300.00637.54
8.1.340.0110.00817.66
8.1.330.0060.00322.07
8.1.320.0120.00716.39
8.1.310.0160.00318.29
8.1.300.0040.00416.26
8.1.290.0360.00737.54
8.1.280.0370.00737.54
8.1.270.0290.01037.54
8.1.260.0330.00637.54
8.1.250.0200.01037.54
8.1.240.0270.01037.54
8.1.230.0260.00737.54
8.1.220.0290.00937.54
8.1.210.0330.00837.54
8.1.200.0280.00737.54
8.1.190.0180.00737.54
8.1.180.0180.00037.54
8.1.170.0140.00637.54
8.1.160.0110.00737.54
8.1.150.0140.00437.54
8.1.140.0120.00637.54
8.1.130.0330.00637.54
8.1.120.0330.01437.54
8.1.110.0370.00637.54
8.1.100.0320.00337.54
8.1.90.0170.00437.54
8.1.80.0150.00737.54
8.1.70.0200.00337.54
8.1.60.0110.01137.54
8.1.50.0180.00637.54
8.1.40.0190.00437.54
8.1.30.0190.00437.54
8.1.20.0140.00637.54
8.1.10.0190.00037.54
8.1.00.0190.00037.54

preferences:
47.81 ms | 982 KiB | 5 Q