3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inventory = [ ["price" => 3.50, "type" => "fruit"], ["price" => 2.90, "type" => "milk"], ["price" => 3.50, "type" => "veg"], ["price" => 5.43, "type" => "pork"], ["price" => 3.50, "type" => "bread"], ]; rsort($inventory); var_export($inventory);

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.60.0180.00318.28
8.3.50.0110.01116.29
8.3.40.0140.00418.84
8.3.30.0070.00718.43
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0030.01425.92
8.2.170.0080.01218.96
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00326.35
8.2.110.0060.00921.24
8.2.100.0030.01319.02
8.2.90.0060.00918.94
8.2.80.0060.00919.46
8.2.70.0120.00319.28
8.2.60.0110.00419.21
8.2.50.0060.00919.21
8.2.40.0100.00520.70
8.2.30.0080.00619.82
8.2.20.0080.00319.21
8.2.10.0080.00720.64
8.2.00.0060.00819.65
8.1.280.0110.00725.92
8.1.270.0090.00023.91
8.1.260.0060.01328.09
8.1.250.0040.00428.09
8.1.240.0100.00621.93
8.1.230.0110.00521.47
8.1.220.0050.00719.04
8.1.210.0030.00620.18
8.1.200.0060.00318.66
8.1.190.0060.00718.65
8.1.180.0080.00619.16
8.1.170.0100.00319.32
8.1.160.0070.00619.47
8.1.150.0050.00819.61
8.1.140.0050.00419.54
8.1.130.0080.00020.08
8.1.120.0080.00418.77
8.1.110.0060.00418.84
8.1.100.0090.00418.88
8.1.90.0050.00318.82
8.1.80.0050.00318.79
8.1.70.0080.00618.73
8.1.60.0030.00618.95
8.1.50.0040.00618.96
8.1.40.0010.00918.94
8.1.30.0070.00419.06
8.1.20.0060.00219.10
8.1.10.0000.00918.99
8.1.00.0070.00218.77
8.0.300.0050.00419.16
8.0.290.0070.00118.11
8.0.280.0030.00518.86
8.0.270.0040.00418.05
8.0.260.0030.00518.93
8.0.250.0030.00518.32
8.0.240.0060.00218.20
8.0.230.0020.00718.29
8.0.220.0060.00218.19
8.0.210.0060.00218.23
8.0.200.0010.00618.23
8.0.190.0030.00518.32
8.0.180.0020.00618.30
8.0.170.0050.00318.22
8.0.160.0050.00318.27
8.0.150.0020.00718.13
8.0.140.0060.00218.18
8.0.130.0060.00216.39
8.0.120.0040.00318.05
8.0.110.0040.00418.25
8.0.100.0060.00318.25
8.0.90.0040.00518.23
8.0.80.0040.00917.72
8.0.70.0050.00318.24
8.0.60.0030.00518.13
8.0.50.0070.00118.22
8.0.30.0110.00518.22
8.0.20.0080.00518.19
8.0.10.0090.00618.35
8.0.00.0100.00318.61
7.4.330.0050.00115.13
7.4.320.0050.00317.69
7.4.300.0030.00517.87
7.4.290.0050.00317.80
7.4.280.0060.00317.83
7.4.270.0010.00617.76
7.4.260.0040.00316.16
7.4.250.0060.00317.78
7.4.240.0060.00117.42
7.4.230.0000.00917.94
7.4.220.0030.00417.31
7.4.210.0060.00817.17
7.4.200.0030.00517.81
7.4.190.0080.00019.44
7.4.180.0060.00319.39
7.4.160.0060.00718.01
7.4.150.0090.00617.92
7.4.140.0070.00717.82
7.4.130.0050.01017.81
7.4.120.0170.00417.81
7.4.110.0150.00816.76
7.4.100.0190.00616.93
7.4.90.0190.00516.90
7.4.80.0180.00616.78
7.4.70.0190.00516.93
7.4.60.0210.00916.90
7.4.50.0260.01016.73
7.4.40.0260.00816.76
7.4.30.0330.00316.78
7.4.20.0270.00416.76
7.4.10.0220.00716.82
7.4.00.0140.00417.68
7.3.330.0050.00817.59
7.3.320.0100.00314.96
7.3.310.0140.00716.54
7.3.300.0120.00816.55
7.3.290.0150.00716.27
7.3.280.0190.01616.77
7.3.270.0150.00816.69
7.3.260.0170.00816.59
7.3.250.0260.00816.62
7.3.240.0220.01116.49
7.3.230.0220.01116.57
7.3.220.0330.01316.55
7.3.210.0270.00816.59
7.3.200.0240.00716.55
7.3.190.0220.01216.54
7.3.180.0220.00816.59
7.3.170.0180.01216.48
7.3.160.0200.00416.59
7.3.150.0260.00916.50
7.3.140.0180.00716.52
7.3.130.0190.01216.51
7.3.120.0180.01116.40
7.3.110.0190.01016.30
7.3.100.0160.01016.42
7.3.90.0150.00516.71
7.3.80.0150.00316.43
7.3.70.0150.00416.72
7.3.60.0180.00716.69
7.3.50.0190.00816.56
7.3.40.0150.00816.82
7.3.30.0290.00716.63
7.3.20.0200.00717.66
7.3.10.0180.00817.59
7.3.00.0200.00817.70

preferences:
49.73 ms | 400 KiB | 5 Q