3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'Size: tiny', 'Size: small', 'Size: big', 'Colour: yellow', 'Colour: black', 'Colour: blue', 'Length: short', 'Length: long' ]; $result = []; foreach ($array as $v) { $result[strtok(':', $v)][] = $v; } var_export(array_values($result));

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.0110.00818.08
8.5.20.0120.00620.17
8.5.10.0110.01016.68
8.5.00.0110.01120.13
8.4.180.0120.01019.80
8.4.170.0160.00620.59
8.4.160.0140.00820.57
8.4.150.0090.00516.84
8.4.140.0160.00517.77
8.4.130.0130.00817.49
8.4.120.0090.00324.16
8.4.110.0060.00220.76
8.4.100.0120.00718.95
8.4.90.0140.00620.43
8.4.80.0090.00418.90
8.4.70.0110.00720.46
8.4.60.0100.01018.70
8.4.50.0070.00418.37
8.4.40.0070.01317.46
8.4.30.0100.01419.37
8.4.20.0070.00719.63
8.4.10.0090.00019.25
8.3.300.0050.00520.79
8.3.290.0050.00520.71
8.3.280.0090.00216.21
8.3.270.0100.01116.68
8.3.260.0090.00916.93
8.3.250.0080.01117.10
8.3.240.0090.01017.18
8.3.230.0110.00716.48
8.3.220.0120.00618.86
8.3.210.0110.00818.43
8.3.200.0030.00616.82
8.3.190.0080.01217.25
8.3.180.0080.01119.04
8.3.170.0120.00617.17
8.3.160.0040.00418.54
8.3.150.0040.00418.44
8.3.140.0060.00318.38
8.3.130.0040.00418.50
8.3.120.0040.00418.29
8.3.110.0000.00818.40
8.3.100.0040.00418.31
8.3.90.0040.00418.61
8.3.80.0050.00318.40
8.3.70.0030.00518.34
8.3.60.0030.00618.34
8.3.50.0110.00018.61
8.3.40.0130.00019.03
8.3.30.0070.00319.28
8.3.20.0050.00519.16
8.3.10.0090.00019.18
8.3.00.0040.00419.43
8.2.300.0110.01020.43
8.2.290.0090.00220.30
8.2.280.0070.00118.55
8.2.270.0100.00018.13
8.2.260.0070.00217.88
8.2.250.0030.00518.41
8.2.240.0000.00818.33
8.2.230.0040.00418.39
8.2.220.0030.00518.51
8.2.210.0050.00318.32
8.2.200.0080.00018.18
8.2.190.0070.00018.28
8.2.180.0030.00518.54
8.2.170.0030.00619.45
8.2.160.0060.00319.46
8.2.150.0080.00019.23
8.2.140.0000.00819.32
8.2.130.0060.00319.39
8.2.120.0040.00419.45
8.2.110.0060.00319.27
8.2.100.0100.00019.46
8.2.90.0070.00319.55
8.2.80.0080.00019.33
8.2.70.0030.00619.38
8.2.60.0030.00619.39
8.2.50.0040.00419.25
8.2.40.0000.00819.31
8.2.30.0050.00319.32
8.2.20.0040.00419.19
8.2.10.0080.00019.33
8.2.00.0030.00519.01
8.1.340.0100.00920.06
8.1.320.0120.00716.25

preferences:
53.5 ms | 856 KiB | 5 Q