3v4l.org

run code in 300+ PHP versions simultaneously
<?php // (1) namespace X; // (2) function f(array $o) { return [&$o['v']]; } $v = ['z', 'a']; $a = ['v' => $v]; $args = f($a); call_user_func_array('sort', $args); // Additionally, if the above 2 lines are replaced by the following // line, the bug never appears. //call_user_func_array('sort', f($a));

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.3.70.0000.01516.46
8.3.60.0220.00018.43
8.3.50.0100.00716.29
8.3.40.0070.01418.63
8.3.30.0140.00018.53
8.3.20.0050.00318.63
8.3.10.0040.00421.73
8.3.00.0000.01821.73
8.2.190.0110.00416.58
8.2.180.0070.00718.01
8.2.170.0030.01422.96
8.2.160.0030.01219.46
8.2.150.0040.00424.18
8.2.140.0170.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00021.04
8.2.110.0030.00622.30
8.2.100.0090.00319.45
8.2.90.0040.00417.75
8.2.80.0040.00418.64
8.2.70.0000.00917.63
8.2.60.0060.00318.34
8.2.50.0000.00918.10
8.2.40.0080.00021.16
8.2.30.0000.00820.68
8.2.20.0070.00018.09
8.2.10.0000.00718.13
8.2.00.0030.00619.37
8.1.280.0090.01325.92
8.1.270.0000.00920.34
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00023.79
8.1.230.0060.00617.77
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.13
8.1.190.0050.00317.34
8.1.180.0000.00818.10
8.1.170.0050.00318.46
8.1.160.0050.00218.94
8.1.150.0060.00318.92
8.1.140.0000.00718.84
8.1.130.0080.00320.14
8.1.120.0040.00417.30
8.1.110.0000.00817.50
8.1.100.0000.00717.45
8.1.90.0070.00017.37
8.1.80.0000.00817.51
8.1.70.0000.00717.32
8.1.60.0040.00417.55
8.1.50.0110.00017.54
8.1.40.0050.00317.54
8.1.30.0000.00717.63
8.1.20.0000.00717.62
8.1.10.0040.00417.49
8.1.00.0000.00717.52
8.0.300.0030.00518.77
8.0.290.0000.00816.63
8.0.280.0000.00718.34
8.0.270.0040.00417.26
8.0.260.0050.00218.37
8.0.250.0030.00316.96
8.0.240.0030.00316.83
8.0.230.0040.00416.93
8.0.220.0070.00016.82
8.0.210.0070.00016.85
8.0.200.0030.00316.96
8.0.190.0040.00416.94
8.0.180.0000.00716.81
8.0.170.0090.00016.88
8.0.160.0040.00416.91
8.0.150.0040.00416.70
8.0.140.0040.00416.89
8.0.130.0000.00513.36
8.0.120.0040.00416.75
8.0.110.0050.00316.94
8.0.100.0060.00316.73
8.0.90.0080.00016.85
8.0.80.0160.00516.82
8.0.70.0000.00717.00
8.0.60.0050.00316.94
8.0.50.0000.00716.80
8.0.30.0090.00517.23
8.0.20.0060.01217.40
8.0.10.0030.00516.85
8.0.00.0080.01016.72
7.4.330.0000.00515.55
7.4.320.0060.00016.48
7.4.300.0000.00616.59
7.4.290.0040.00416.64
7.4.280.0000.00716.64
7.4.270.0000.00716.53
7.4.260.0040.00416.48
7.4.250.0000.00716.37
7.4.240.0030.00316.52
7.4.230.0040.00416.36
7.4.220.0050.00216.63
7.4.210.0060.01016.50
7.4.200.0070.00016.61
7.4.160.0090.00816.56
7.4.140.0100.00817.86
7.4.130.0120.00916.58
7.4.120.0130.00716.59
7.4.110.0170.00616.44
7.4.100.0130.01016.50
7.4.90.0060.01716.51
7.4.80.0140.00619.39
7.4.70.0110.00616.43
7.4.60.0040.01816.49
7.4.50.0050.00516.55
7.4.40.0110.01016.48
7.4.00.0080.00714.87
7.3.330.0000.00513.29
7.3.320.0050.00213.07
7.3.310.0030.00316.32
7.3.300.0030.00316.34
7.3.290.0040.00416.17
7.3.280.0140.00516.25
7.3.260.0150.00916.46
7.3.240.0100.00916.40
7.3.230.0130.00316.36
7.3.210.0160.00716.65
7.3.200.0120.00316.52
7.3.190.0140.00316.37
7.3.180.0150.00616.48
7.3.170.0170.00616.27
7.3.160.0080.00816.55
7.3.120.0040.01314.91
7.3.110.0060.00814.89
7.3.100.0050.01014.89
7.3.90.0050.00914.69
7.3.80.0060.00814.79
7.3.70.0050.00514.80
7.3.60.0040.00914.62
7.3.50.0080.00314.77
7.3.40.0080.00714.77
7.3.30.0060.01014.75
7.3.20.0080.00616.52
7.3.10.0070.00716.53
7.3.00.0090.00716.33
7.2.330.0130.00316.58
7.2.320.0120.00616.76
7.2.310.0120.00616.83
7.2.300.0100.00616.75
7.2.290.0100.01416.49
7.2.250.0100.01015.12
7.2.240.0100.00714.91
7.2.230.0040.01015.07
7.2.220.0030.01015.12
7.2.210.0020.01214.90
7.2.200.0020.01315.13
7.2.190.0050.00814.89
7.2.180.0040.01015.13
7.2.170.0040.01214.95
7.2.160.0080.00515.12
7.2.150.0060.01016.81
7.2.140.0040.00916.89
7.2.130.0050.01016.70
7.2.120.0080.00516.56
7.2.110.0110.00516.63
7.2.100.0170.00816.22
7.2.90.0420.00616.15
7.2.80.0180.01116.13
7.2.70.0160.00916.13
7.2.60.0200.00816.21
7.2.50.0240.01016.35
7.2.40.0190.00816.45
7.2.30.0230.01016.47
7.2.20.0240.00616.28
7.2.10.0190.00716.09
7.2.00.0160.00816.33
7.1.330.0070.00815.84
7.1.320.0060.00715.79
7.1.310.0060.00815.79
7.1.300.0060.00615.76
7.1.290.0020.01215.75
7.1.280.0060.00815.72
7.1.270.0060.00815.62
7.1.260.0060.01015.81
7.1.250.0090.00515.58
7.1.210.0670.00613.87
7.1.200.0580.00713.92
7.1.190.0710.01213.78
7.1.180.0520.00313.86
7.1.170.0650.00713.57
7.1.160.0640.00614.06
7.1.150.0600.00313.85
7.1.140.0470.00413.99
7.1.130.0490.01013.79
7.1.120.0540.00713.67
7.1.110.0530.00314.13
7.1.100.0600.00713.83
7.1.90.0800.01014.09
7.1.80.0660.00714.06
7.1.70.0650.01013.72
7.1.60.1960.01031.71
7.1.50.1100.01031.83
7.1.40.1050.01031.73
7.1.30.1030.01031.61
7.1.20.0980.00331.88
7.1.10.0870.00613.87
7.1.00.0790.00313.89

preferences:
19.92 ms | 401 KiB | 5 Q