3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(2,"a","11",2); $b = array(2,"11","a",2); sort($a); sort($b); var_dump($a, $b);

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.20.0070.01319.57
8.4.10.0160.00319.29
8.3.150.0080.00416.96
8.3.140.0000.00818.31
8.3.130.0050.00316.79
8.3.120.0030.00620.70
8.3.110.0370.00616.25
8.3.100.0420.00716.31
8.3.90.0390.00816.37
8.3.80.0460.00216.49
8.3.70.0380.00916.44
8.3.60.0340.01216.44
8.3.50.0390.00916.31
8.3.40.0320.01117.31
8.3.30.0280.00817.06
8.3.20.0280.00917.13
8.3.10.0310.00817.05
8.3.00.0170.00417.06
8.2.260.0110.00718.19
8.2.250.0060.00616.73
8.2.240.0150.00317.03
8.2.230.0220.00716.36
8.2.220.0260.00316.47
8.2.210.0170.00516.44
8.2.200.0190.00516.31
8.2.190.0220.00816.17
8.2.180.0210.00516.47
8.2.170.0370.00917.50
8.2.160.0310.01117.62
8.2.150.0290.01417.36
8.2.140.0430.00517.31
8.2.130.0390.00717.50
8.2.120.0340.01117.23
8.2.110.0390.00517.49
8.2.100.0340.00917.42
8.2.90.0360.00517.19
8.2.80.0380.00617.00
8.2.70.0360.00717.36
8.2.60.0260.00517.48
8.2.50.0270.00317.29
8.2.40.0240.00617.31
8.2.30.0270.00817.13
8.2.20.0240.00717.23
8.2.10.0340.00217.24
8.2.00.0260.00817.38
8.1.310.0150.00315.92
8.1.300.0140.00020.30
8.1.290.0330.00815.81
8.1.280.0310.01315.99
8.1.270.0250.00916.86
8.1.260.0300.00517.00
8.1.250.0260.01017.11
8.1.240.0210.00717.18
8.1.230.0280.00817.04
8.1.220.0290.01117.00
8.1.210.0310.00716.99
8.1.200.0210.01117.17
8.1.190.0310.00716.99
8.1.180.0300.00917.11
8.1.170.0290.00917.11
8.1.160.0320.00416.99
8.1.150.0260.00917.11
8.1.140.0290.00616.94
8.1.130.0340.00517.17
8.1.120.0330.00716.99
8.1.110.0270.01116.98
8.1.100.0320.01017.22
8.1.90.0360.00517.03
8.1.80.0330.00417.19
8.1.70.0280.00716.93
8.1.60.0330.01117.05
8.1.50.0320.01117.00
8.1.40.0330.00917.05
8.1.30.0330.00917.05
8.1.20.0410.00417.23
8.1.10.0330.00717.13
8.1.00.0240.01517.05
8.0.300.0350.00716.34
8.0.290.0290.01116.63
8.0.280.0320.00716.50
8.0.270.0280.00716.38
8.0.260.0200.00416.63
8.0.250.0160.01116.63
8.0.240.0270.00616.61
8.0.230.0380.00716.46
8.0.220.0350.00916.38
8.0.210.0240.00816.50
8.0.200.0230.00916.63
8.0.190.0250.00716.50
8.0.180.0230.01116.50
8.0.170.0300.00616.61
8.0.160.0270.00916.63
8.0.150.0280.00316.49
8.0.140.0310.00016.63
8.0.130.0240.01416.63
8.0.120.0270.01016.50
8.0.110.0160.00616.22
8.0.100.0360.00016.50
8.0.90.0250.01416.50
8.0.80.0290.01016.25
8.0.70.0280.01116.38
8.0.60.0190.01916.38
8.0.50.0370.00416.25
8.0.30.0320.00916.48
8.0.20.0210.00716.50
8.0.10.0130.00416.38
8.0.00.0170.00016.75
7.4.330.0000.01616.25
7.4.320.0230.00016.00
7.4.300.0240.00516.25
7.4.290.0150.00216.25
7.4.280.0120.00416.25
7.4.270.0310.00415.88
7.4.260.0180.00016.25
7.4.250.0150.00216.25
7.4.240.0200.00016.25
7.4.230.0240.00016.25
7.4.220.0260.00916.38
7.4.210.0270.00816.25
7.4.200.0190.01616.13
7.4.190.0210.01316.13
7.4.180.0250.00716.13
7.4.160.0330.00616.13
7.4.150.0190.01516.25
7.4.140.0320.00315.88
7.4.130.0290.00715.99
7.4.120.0420.00415.75
7.4.110.0300.00915.75
7.4.100.0250.00916.13
7.4.90.0300.00616.25
7.4.80.0290.00516.00
7.4.70.0260.00916.13
7.4.60.0300.00715.88
7.4.50.0340.00416.00
7.4.40.0300.00416.13
7.4.30.0250.00715.88
7.4.20.0260.01016.00
7.4.10.0240.01416.00
7.4.00.0280.01015.88
7.3.330.0280.01215.73
7.3.320.0240.01015.86
7.3.310.0250.00915.75
7.3.300.0250.01115.88
7.3.290.0230.01315.63
7.3.280.0260.00815.88
7.3.270.0270.01115.75
7.3.260.0360.00015.84
7.3.250.0230.00615.63
7.3.240.0200.00815.88
7.3.230.0340.00015.88
7.3.220.0250.00915.75
7.3.210.0260.00815.59
7.3.200.0200.01315.75
7.3.190.0300.00615.86
7.3.180.0260.01015.75
7.3.170.0180.02115.38
7.3.160.0320.00416.00
7.3.150.0230.01415.63
7.3.140.0310.00815.75
7.3.130.0460.00315.63
7.3.120.0310.00915.50
7.3.110.0350.00315.75
7.3.100.0240.01015.61
7.3.90.0220.01316.10
7.3.80.0370.00315.63
7.3.70.0280.00316.00
7.3.60.0220.00616.00
7.3.50.0270.00716.00
7.3.40.0170.01315.75
7.3.30.0160.01315.88
7.3.20.0280.00817.64
7.3.10.0340.00317.77
7.3.00.0320.01017.72
7.2.340.0220.01315.88
7.2.330.0250.01115.63
7.2.320.0260.01015.75
7.2.310.0330.00315.75
7.2.300.0320.00415.75
7.2.290.0340.00415.50
7.2.280.0320.01015.75
7.2.270.0240.01215.75
7.2.260.0220.01315.75
7.2.250.0320.00415.63
7.2.240.0280.01215.75
7.2.230.0280.00815.75
7.2.220.0270.01015.88
7.2.210.0290.00615.75
7.2.200.0290.00416.13
7.2.190.0160.01216.00
7.2.180.0320.00315.75
7.2.170.0310.00416.00
7.2.160.0260.01016.11
7.2.150.0320.00817.82
7.2.140.0380.00017.83
7.2.130.0310.01018.25
7.2.120.0340.00317.75
7.2.110.0280.01018.08
7.2.100.0270.00718.13
7.2.90.0240.00717.70
7.2.80.0340.00717.95
7.2.70.0250.00017.71
7.2.60.0140.00418.02
7.2.50.0230.00417.55
7.2.40.0130.00718.01
7.2.30.0090.01117.89
7.2.20.0110.00817.90
7.2.10.0130.00417.87
7.2.00.0140.00218.13
7.1.330.0310.00316.89
7.1.320.0260.00417.07
7.1.310.0310.00317.02
7.1.300.0220.01316.63
7.1.290.0350.00016.81
7.1.280.0310.00416.94
7.1.270.0260.00817.11
7.1.260.0300.00416.82
7.1.250.0290.00617.06
7.1.240.0270.00716.81
7.1.230.0260.00917.19
7.1.220.0240.01116.79
7.1.210.0280.00616.86
7.1.200.0280.00716.94
7.1.190.0320.00417.00
7.1.180.0310.00316.76
7.1.170.0320.00317.06
7.1.160.0300.00716.98
7.1.150.0220.00616.86
7.1.140.0220.00616.89
7.1.130.0230.00617.02
7.1.120.0210.01416.94
7.1.110.0370.00316.91
7.1.100.0150.00217.12
7.1.90.0250.00916.99
7.1.80.0280.00616.99
7.1.70.0350.00416.32
7.1.60.0240.01116.87
7.1.50.0290.00616.63
7.1.40.0350.00016.70
7.1.30.0260.01016.87
7.1.20.0200.01216.82
7.1.10.0260.00316.77
7.1.00.0270.00716.74
7.0.330.0240.01016.68
7.0.320.0160.01016.56
7.0.310.0260.00716.73
7.0.300.0260.01016.36
7.0.290.0210.01216.35
7.0.280.0230.00416.48
7.0.270.0260.00716.31
7.0.260.0170.00916.34
7.0.250.0190.00816.87
7.0.240.0180.00516.49
7.0.230.0150.00016.73
7.0.220.0090.00616.75
7.0.210.0290.01116.64
7.0.200.0260.00716.75
7.0.190.0270.00616.47
7.0.180.0280.00616.52
7.0.170.0320.00616.45
7.0.160.0300.00016.49
7.0.150.0190.00816.49
7.0.140.0290.00416.57
7.0.130.0130.00316.74
7.0.120.0080.00816.71
7.0.110.0130.00316.75
7.0.100.0290.00316.84
7.0.90.0230.00916.70
7.0.80.0340.00016.45
7.0.70.0280.00616.75
7.0.60.0250.00816.58
7.0.50.0160.00016.50
7.0.40.0150.00016.75
7.0.30.0330.00016.40
7.0.20.0300.00416.50
7.0.10.0290.00616.63
7.0.00.0300.00316.57
5.6.400.0310.00015.38
5.6.390.0280.00415.25
5.6.380.0280.00315.50
5.6.370.0250.00715.38
5.6.360.0320.00015.38
5.6.350.0220.00715.50
5.6.340.0230.00315.38
5.6.330.0250.00415.13
5.6.320.0240.00815.25
5.6.310.0350.00015.25
5.6.300.0400.00415.38
5.6.290.0200.01115.38
5.6.280.0250.00415.63
5.6.270.0220.00715.13
5.6.260.0240.00615.38
5.6.250.0250.00815.38
5.6.240.0210.00415.13
5.6.230.0210.00415.38
5.6.220.0140.00015.75
5.6.210.0110.00415.63
5.6.200.0100.00515.63
5.6.190.0120.00215.75
5.6.180.0150.00015.75
5.6.170.0070.00715.88
5.6.160.0150.00615.50
5.6.150.0210.01015.75
5.6.140.0180.00915.38
5.6.130.0220.00915.63
5.6.120.0240.00615.25
5.6.110.0160.01615.50
5.6.100.0240.00715.63
5.6.90.0270.00615.50
5.6.80.0260.00415.25
5.6.70.0180.01515.38
5.6.60.0230.01015.38
5.6.50.0300.00315.25
5.6.40.0230.00815.50
5.6.30.0190.00915.38
5.6.20.0190.01215.25
5.6.10.0190.00715.50
5.6.00.0220.00714.88
5.5.380.0200.00715.38
5.5.370.0320.00315.75
5.5.360.0230.00315.13
5.5.350.0260.00015.63
5.5.340.0220.00315.50
5.5.330.0230.00315.38
5.5.320.0200.01115.38
5.5.310.0310.00015.38
5.5.300.0290.00015.13
5.5.290.0190.00715.25
5.5.280.0240.00315.38
5.5.270.0170.00815.25
5.5.260.0220.00415.50
5.5.250.0190.01115.50
5.5.240.0160.01315.50
5.5.230.0170.00815.50
5.5.220.0230.00715.38
5.5.210.0180.00715.63
5.5.200.0270.00515.38
5.5.190.0160.01015.25
5.5.180.0220.00715.25
5.5.170.0260.00415.50
5.5.160.0190.01115.25
5.5.150.0270.00615.50
5.5.140.0250.00415.38
5.5.130.0260.00415.25
5.5.120.0230.00615.13
5.5.110.0240.00715.25
5.5.100.0170.02115.50
5.5.90.0370.00015.63
5.5.80.0220.00915.38
5.5.70.0210.01115.50
5.5.60.0290.00315.50
5.5.50.0280.00315.25
5.5.40.0220.00615.13
5.5.30.0200.00415.63
5.5.20.0200.00415.50
5.5.10.0170.00915.50
5.5.00.0210.01015.25
5.4.450.0200.00314.81
5.4.440.0250.00014.81
5.4.430.0210.00414.81
5.4.420.0180.00614.81
5.4.410.0190.00514.81
5.4.400.0180.00614.81
5.4.390.0170.00714.81
5.4.380.0250.00014.81
5.4.370.0180.01314.81
5.4.360.0230.00014.81
5.4.350.0160.00614.81
5.4.340.0240.00014.81
5.4.330.0130.00414.81
5.4.320.0090.00914.81
5.4.310.0190.00014.81
5.4.300.0130.00014.81
5.4.290.0120.00814.81
5.4.280.0190.00014.81
5.4.270.0110.00014.81
5.4.260.0120.00814.81
5.4.250.0110.00014.81
5.4.240.0160.00314.81
5.4.230.0140.00014.81
5.4.220.0140.00314.81
5.4.210.0110.00814.81
5.4.200.0160.00314.81
5.4.190.0070.00714.81
5.4.180.0050.00514.81
5.4.170.0130.00014.81
5.4.160.0060.00614.81
5.4.150.0140.00014.81
5.4.140.0070.00414.81
5.4.130.0100.00014.81
5.4.120.0050.00514.81
5.4.110.0170.00314.81
5.4.100.0080.00814.81
5.4.90.0140.00314.81
5.4.80.0090.00214.81
5.4.70.0080.00314.81
5.4.60.0050.00514.81
5.4.50.0190.00014.81
5.4.40.0190.00014.81
5.4.30.0150.00814.81
5.4.20.0110.00814.81
5.4.10.0140.00714.81
5.4.00.0170.00614.81
5.3.290.0150.00914.81
5.3.280.0230.00614.81
5.3.270.0160.00414.81
5.3.260.0080.01214.81
5.3.250.0160.00314.81
5.3.240.0150.00314.81
5.3.230.0140.00314.81
5.3.220.0140.00314.81
5.3.210.0190.00014.81
5.3.200.0090.00314.81
5.3.190.0090.00214.81
5.3.180.0200.00714.81
5.3.170.0130.00614.81
5.3.160.0140.00414.81
5.3.150.0120.00014.81
5.3.140.0120.00814.81
5.3.130.0120.00014.81
5.3.120.0160.00414.81
5.3.110.0150.00414.81
5.3.100.0040.00914.81
5.3.90.0160.00314.81
5.3.80.0000.01214.81
5.3.70.0170.00314.81
5.3.60.0160.00014.81
5.3.50.0220.00014.81
5.3.40.0110.00014.81
5.3.30.0040.01714.81
5.3.20.0040.00714.81
5.3.10.0130.01014.81
5.3.00.0120.00014.81
5.2.170.0090.00014.81
5.2.160.0090.00014.81
5.2.150.0110.00514.81
5.2.140.0140.00514.81
5.2.130.0160.00314.81
5.2.120.0090.00014.81
5.2.110.0090.00014.81
5.2.100.0090.00014.81
5.2.90.0140.00614.81
5.2.80.0150.00414.81
5.2.70.0130.00714.81
5.2.60.0140.00314.81
5.2.50.0080.00814.81
5.2.40.0000.00914.81
5.2.30.0040.00414.81
5.2.20.0160.00314.81
5.2.10.0120.00214.81
5.2.00.0040.00414.81
5.1.60.0070.00014.81
5.1.50.0070.00714.81
5.1.40.0140.00014.81
5.1.30.0140.00014.81
5.1.20.0120.00314.81
5.1.10.0100.00314.81
5.1.00.0090.00414.81
5.0.50.0080.00314.81
5.0.40.0120.00014.81
5.0.30.0040.00814.81
5.0.20.0050.00314.81
5.0.10.0070.00014.81
5.0.00.0030.00314.81
4.4.90.0040.00014.81
4.4.80.0000.00414.81
4.4.70.0020.00214.81
4.4.60.0000.00414.81
4.4.50.0040.00414.81
4.4.40.0040.00014.81
4.4.30.0040.00014.81
4.4.20.0060.00014.81
4.4.10.0000.00414.81
4.4.00.0040.00414.81
4.3.110.0080.00014.81
4.3.100.0050.00014.81
4.3.90.0080.00014.81
4.3.80.0060.00014.81
4.3.70.0040.00014.81
4.3.60.0040.00014.81
4.3.50.0040.00414.81
4.3.40.0030.00114.81
4.3.30.0000.00314.81
4.3.20.0030.00014.81
4.3.10.0080.00014.81
4.3.00.0040.00414.81

preferences:
55.3 ms | 403 KiB | 5 Q