3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'iPhone 7 plus - space grey (New)', 'iPhone6 plus, brand new, (Used)', 'iPhone 5 ( black)', ]; var_export(preg_replace('~ ?[^ [:alnum:]].*~', '', $strings));

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.4.120.0130.00723.86
8.4.110.0140.00622.13
8.4.100.0130.00718.63
8.4.90.0130.00818.83
8.4.80.0050.00420.59
8.4.70.0150.00620.51
8.4.60.0090.00919.06
8.4.50.0170.00420.16
8.4.40.0080.01217.80
8.4.30.0130.00618.92
8.4.20.0130.00719.39
8.4.10.0100.01019.61
8.3.250.0110.00818.80
8.3.240.0100.00717.13
8.3.230.0100.01016.39
8.3.220.0050.00218.64
8.3.210.0100.00916.66
8.3.200.0020.00716.61
8.3.190.0080.00718.77
8.3.180.0110.00917.02
8.3.170.0090.00920.73
8.3.160.0070.01117.11
8.3.150.0110.00717.02
8.3.140.0100.00716.79
8.3.130.0090.00918.48
8.3.120.0040.00420.42
8.3.110.0150.00620.94
8.3.100.0080.00024.06
8.3.90.0130.00026.77
8.3.80.0070.00417.97
8.3.70.0100.01318.41
8.3.60.0060.01218.28
8.3.50.0100.01016.57
8.3.40.0130.01019.92
8.3.30.0130.00720.67
8.3.20.0120.00623.47
8.3.10.0070.01121.95
8.3.00.0110.00818.95
8.2.290.0100.00920.32
8.2.280.0090.01018.71
8.2.270.0100.00718.86
8.2.260.0120.00318.40
8.2.250.0080.00018.73
8.2.240.0070.00317.28
8.2.230.0040.01122.58
8.2.220.0030.00537.54
8.2.210.0080.00026.77
8.2.200.0060.00616.88
8.2.190.0140.00016.63
8.2.180.0150.00616.75
8.2.170.0140.00719.08
8.2.160.0040.01520.28
8.2.150.0090.00618.72
8.2.140.0170.00320.41
8.2.130.0080.00820.48
8.2.120.0120.00319.22
8.2.110.0090.00619.30
8.2.100.0070.00719.27
8.2.90.0190.00318.70
8.2.80.0140.00719.30
8.2.70.0060.00918.71
8.2.60.0140.00719.14
8.2.50.0040.01118.97
8.2.40.0130.00318.97
8.2.30.0070.01418.84
8.2.20.0130.00318.82
8.2.10.0030.01318.87
8.2.00.0120.00918.88
8.1.330.0160.00521.77
8.1.320.0090.00916.16
8.1.310.0030.01618.32
8.1.300.0090.00016.30
8.1.290.0100.00030.84
8.1.280.0110.00725.92
8.1.270.0130.00722.19
8.1.260.0100.01022.00
8.1.250.0070.00722.23
8.1.240.0140.00718.62
8.1.230.0070.01418.64
8.1.220.0170.00318.82
8.1.210.0150.00618.63
8.1.200.0090.00618.68
8.1.190.0170.00318.46
8.1.180.0030.01218.40
8.1.170.0090.00618.61
8.1.160.0070.00718.56
8.1.150.0080.00818.71
8.1.140.0060.00918.60
8.1.130.0110.00418.74
8.1.120.0180.00318.68
8.1.110.0160.00018.54
8.1.100.0130.00719.69
8.1.90.0170.00318.66
8.1.80.0070.01119.69
8.1.70.0090.00618.65
8.1.60.0060.00918.70
8.1.50.0090.00618.75
8.1.40.0120.00318.75
8.1.30.0040.01118.92
8.1.20.0070.00720.05
8.1.10.0120.00318.74
8.1.00.0040.01218.61

preferences:
25.75 ms | 403 KiB | 5 Q