3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SIZES', array_flip(['XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL'])); $array = ["GL001_XXL", "GL001_L", "GL001_XXS", "GL001_S"]; array_multisort( array_map(fn($v) => SIZES[substr($v, 6)], $array), $array ); var_export($array);

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.0080.01120.59
8.4.110.0110.00918.77
8.4.100.0120.00817.63
8.4.90.0130.00820.38
8.4.80.0040.00420.57
8.4.70.0070.01318.93
8.4.60.0150.00422.13
8.4.50.0070.00219.29
8.4.40.0100.00717.81
8.4.30.0100.01020.73
8.4.20.0160.00319.01
8.4.10.0150.00519.18
8.3.250.0080.01018.67
8.3.240.0140.00516.42
8.3.230.0140.00616.38
8.3.220.0110.00718.76
8.3.210.0110.00716.81
8.3.200.0040.00516.41
8.3.190.0120.00616.83
8.3.180.0060.00216.57
8.3.170.0140.00419.15
8.3.160.0100.00718.43
8.3.150.0090.00619.13
8.3.140.0050.00518.63
8.3.130.0100.00318.37
8.3.120.0110.00118.65
8.3.110.0090.00818.76
8.3.100.0070.00820.24
8.3.90.0130.00121.63
8.3.80.0090.00617.05
8.3.70.0100.00916.53
8.3.60.0080.01117.22
8.3.50.0140.00517.39
8.3.40.0110.00818.90
8.3.30.0150.00319.48
8.3.20.0190.00320.57
8.3.10.0160.00321.07
8.3.00.0120.00322.72
8.2.290.0100.00817.08
8.2.280.0050.00318.29
8.2.270.0090.00916.94
8.2.260.0090.00419.97
8.2.250.0170.00417.41
8.2.240.0110.00816.95
8.2.230.0190.00519.55
8.2.220.0200.00526.95
8.2.210.0120.01021.61
8.2.200.0110.00317.36
8.2.190.0120.00517.40
8.2.180.0140.00616.29
8.2.170.0110.00718.46
8.2.160.0250.00520.33
8.2.150.0130.00721.60
8.2.140.0210.01021.05
8.2.130.0230.00421.84
8.2.120.0170.00718.53
8.2.110.0200.00818.94
8.2.100.0290.00718.20
8.2.90.0290.00918.28
8.2.80.0170.01318.02
8.2.70.0230.00818.09
8.2.60.0300.01117.99
8.2.50.0300.00918.08
8.2.40.0290.00218.10
8.2.30.0160.01218.16
8.2.20.0210.00718.17
8.2.10.0160.00418.30
8.2.00.0310.00518.21
8.1.330.0100.00916.14
8.1.320.0130.00716.22
8.1.310.0300.00916.06
8.1.300.0220.00717.17
8.1.290.0180.00323.26
8.1.280.0150.00220.95
8.1.270.0070.00720.48
8.1.260.0140.00021.81
8.1.250.0100.00322.65
8.1.240.0190.00717.80
8.1.230.0170.00818.03
8.1.220.0200.00517.80
8.1.210.0180.00318.60
8.1.200.0140.00317.89
8.1.190.0140.00317.76
8.1.180.0270.00717.95
8.1.170.0230.00817.85
8.1.160.0240.01017.86
8.1.150.0230.00618.72
8.1.140.0230.00217.79
8.1.130.0210.01017.92
8.1.120.0250.00317.89
8.1.110.0170.00617.97
8.1.100.0200.00617.82
8.1.90.0130.01317.91
8.1.80.0220.00217.96
8.1.70.0140.00918.11
8.1.60.0190.00618.01
8.1.50.0190.01017.83
8.1.40.0170.00718.17
8.1.30.0130.00718.13
8.1.20.0250.00617.99
8.1.10.0260.00618.08
8.1.00.0220.00218.00
8.0.300.0200.00017.24
8.0.290.0110.00517.20
8.0.280.0190.00317.12
8.0.270.0130.00417.20
8.0.260.0150.00317.15
8.0.250.0150.00817.32
8.0.240.0150.00517.27
8.0.230.0100.00517.52
8.0.220.0040.01317.23
8.0.210.0170.00217.15
8.0.200.0240.00317.22
8.0.190.0140.01017.20
8.0.180.0240.00817.23
8.0.170.0190.00717.24
8.0.160.0230.00217.33
8.0.150.0110.01117.18
8.0.140.0190.00817.19
8.0.130.0150.00717.27
8.0.120.0210.00017.24
8.0.110.0180.00817.19
8.0.100.0150.00717.14
8.0.90.0130.00917.11
8.0.80.0160.00217.15
8.0.70.0150.00317.09
8.0.60.0250.00617.16
8.0.50.0240.00916.96
8.0.30.0170.00717.22
8.0.20.0130.00717.34
8.0.10.0280.00618.13

preferences:
32.3 ms | 403 KiB | 5 Q