3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "💩 happens", "I'm getting too old for this 💩", "shiitake", "Mondays are 💩, Tuesdays are 💩, and so on!", "Here is your Finnish itinerary", "Is this chocolate or 💩?" ]; var_export( preg_filter('/💩/u', 'poop', $array, 1, $count) ); echo "\n---\ncount: $count";

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.0120.01019.98
8.4.150.0020.00014.05
8.4.140.0140.00717.66
8.4.130.0110.01017.75
8.4.120.0100.01020.48
8.4.110.0110.00820.48
8.4.100.0110.01118.84
8.4.90.0130.00718.70
8.4.80.0120.00918.77
8.4.70.0110.00918.18
8.4.60.0140.00517.95
8.4.50.0070.00417.93
8.4.40.0150.00618.09
8.4.30.0130.00719.01
8.4.20.0100.01019.96
8.4.10.0000.00819.82
8.3.280.0130.00818.45
8.3.270.0110.00816.79
8.3.260.0130.00716.59
8.3.250.0070.01219.02
8.3.240.0120.00716.78
8.3.230.0120.00816.73
8.3.220.0090.01018.86
8.3.210.0090.00416.69
8.3.200.0130.00816.66
8.3.190.0070.00116.65
8.3.180.0100.00716.54
8.3.170.0070.01120.68
8.3.160.0070.00716.96
8.3.150.0070.01117.09
8.3.140.0090.00916.68
8.3.130.0040.01118.43
8.3.120.0060.00318.86
8.3.110.0040.00416.72
8.3.100.0090.00016.65
8.3.90.0050.00318.18
8.3.80.0090.00018.55
8.3.70.0110.00416.88
8.3.60.0110.00418.53
8.3.50.0110.00418.39
8.3.40.0260.01519.97
8.3.30.0280.00618.94
8.3.20.0130.00721.80
8.3.10.0070.01421.57
8.3.00.0270.00319.09
8.2.290.0080.01020.18
8.2.280.0070.00120.48
8.2.270.0160.00319.24
8.2.260.0060.00318.37
8.2.250.0120.00918.39
8.2.240.0040.00416.83
8.2.230.0060.00320.94
8.2.220.0080.00024.06
8.2.210.0110.00726.77
8.2.200.0000.01218.41
8.2.190.0090.00616.58
8.2.180.0100.01016.63
8.2.170.0340.00919.04
8.2.160.0250.01420.08
8.2.150.0230.00719.15
8.2.140.0070.00720.39
8.2.130.0120.00320.38
8.2.120.0090.00919.35
8.2.110.0070.00719.31
8.2.100.0090.00619.38
8.2.90.0230.00718.90
8.2.80.0180.00019.34
8.2.70.0140.00720.70
8.2.60.0150.01119.14
8.2.50.0160.01018.97
8.2.40.0150.00919.08
8.2.30.0310.00018.72
8.2.20.0200.00318.83
8.2.10.0200.00318.92
8.2.00.0150.00918.78
8.1.330.0140.00523.63
8.1.320.0110.01216.28
8.1.310.0130.00618.26
8.1.300.0160.00716.09
8.1.290.0030.00718.88
8.1.280.0110.00425.92
8.1.270.0000.01522.19
8.1.260.0110.00722.13
8.1.250.0070.00722.21
8.1.240.0160.01018.71
8.1.230.0180.00918.57
8.1.220.0170.00718.73
8.1.210.0210.00318.52
8.1.200.0160.00618.55
8.1.190.0200.01018.48
8.1.180.0240.00718.46
8.1.170.0160.00618.70
8.1.160.0130.01018.52
8.1.150.0140.00718.53
8.1.140.0190.01318.54
8.1.130.0250.00618.65
8.1.120.0130.01018.54
8.1.110.0180.00718.62
8.1.100.0130.00619.86
8.1.90.0150.01518.68
8.1.80.0270.00319.87
8.1.70.0120.00918.41
8.1.60.0300.00318.58
8.1.50.0230.00318.46
8.1.40.0130.01018.66
8.1.30.0150.00918.84
8.1.20.0200.01320.05
8.1.10.0120.00918.71
8.1.00.0040.01218.63

preferences:
34.42 ms | 403 KiB | 5 Q