3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inventory = [ ['type' => 'fruit', 'price' => 3.50], ['type' => 'milk', 'price' => 2.90], ['type' => 'pork', 'price' => 5.43], ]; usort( $inventory, fn(array $a, array $b): int => $b['price'] <=> $a['price'] ); print_r($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.120.0070.01420.65
8.3.110.0100.00316.62
8.3.100.0040.00416.64
8.3.90.0150.00416.63
8.3.80.0050.00516.13
8.3.70.0170.00316.58
8.3.60.0070.01418.43
8.3.50.0060.00919.94
8.3.40.0090.00620.26
8.3.30.0090.00618.97
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.25
8.2.240.0090.00919.00
8.2.230.0130.00720.94
8.2.220.0050.00524.06
8.2.210.0000.00826.77
8.2.200.0030.00616.60
8.2.190.0160.00316.58
8.2.180.0180.00425.92
8.2.170.0090.00618.80
8.2.160.0150.00622.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0040.00426.25
8.2.120.0020.00623.64
8.2.110.0030.00623.31
8.2.100.0120.00022.07
8.2.90.0050.00322.10
8.2.80.0010.00722.16
8.2.70.0090.00619.58
8.2.60.0120.00318.52
8.2.50.0120.00518.53
8.2.40.0100.00518.81
8.2.30.0080.00618.54
8.2.20.0090.00518.89
8.2.10.0090.00618.50
8.2.00.0100.00518.69
8.1.300.0000.00719.95
8.1.290.0090.00330.84
8.1.280.0090.00625.92
8.1.270.0000.00823.99
8.1.260.0030.00526.35
8.1.250.0090.00026.35
8.1.240.0020.00724.44
8.1.230.0060.00423.63
8.1.220.0060.00322.04
8.1.210.0020.00623.57
8.1.200.0050.00819.42
8.1.190.0070.00518.53
8.1.180.0100.00518.27
8.1.170.0110.00418.31
8.1.160.0110.00418.37
8.1.150.0120.00418.58
8.1.140.0070.00818.26
8.1.130.0090.00718.14
8.1.120.0110.00418.17
8.1.110.0090.00518.38
8.1.100.0090.00518.13
8.1.90.0120.00218.16
8.1.80.0080.00618.16
8.1.70.0110.00318.20
8.1.60.0100.00618.26
8.1.50.0100.00618.15
8.1.40.0110.00518.20
8.1.30.0110.00518.20
8.1.20.0120.00518.22
8.1.10.0100.00618.15
8.1.00.0130.00518.07
8.0.300.0020.00623.20
8.0.290.0070.00419.03
8.0.280.0080.00717.94
8.0.270.0100.00518.18
8.0.260.0090.00617.73
8.0.250.0080.00617.74
8.0.240.0110.00417.75
8.0.230.0080.00517.73
8.0.220.0100.00417.75
8.0.210.0100.00417.73
8.0.200.0080.00617.73
8.0.190.0100.00417.76
8.0.180.0110.00317.66
8.0.170.0080.00617.66
8.0.160.0080.00617.76
8.0.150.0100.00517.75
8.0.140.0100.00617.65
8.0.130.0090.00617.66
8.0.120.0100.00617.65
8.0.110.0090.00517.64
8.0.100.0100.00517.67
8.0.90.0110.00517.63
8.0.80.0120.00417.66
8.0.70.0100.00517.73
8.0.60.0100.00417.77
8.0.50.0110.00417.76
8.0.30.0070.00817.77
8.0.20.0100.00517.95
8.0.10.0110.00317.72
7.4.330.0090.00217.59
7.4.320.0130.00317.68
7.4.300.0130.00417.69
7.4.290.0090.00517.40
7.4.280.0130.00517.59
7.4.270.0120.00617.57
7.4.260.0130.00417.58
7.4.250.0110.00617.56
7.4.240.0130.00417.58
7.4.230.0110.00617.57
7.4.220.0100.00517.56
7.4.210.0090.00617.58
7.4.200.0120.00417.57
7.4.190.0120.00417.59
7.4.180.0110.00417.56
7.4.160.0130.00317.58
7.4.150.0130.00317.57
7.4.140.0120.00417.56
7.4.130.0110.00517.57
7.4.120.0100.00617.54
7.4.110.0120.00517.54
7.4.100.0110.00517.56
7.4.90.0100.00617.58
7.4.80.0120.00317.54
7.4.70.0110.00417.55
7.4.60.0110.00517.56
7.4.50.0120.00317.53
7.4.40.0100.00417.55
7.4.30.0110.00417.53
7.4.20.0100.00517.54
7.4.10.0100.00417.54
7.4.00.0110.00417.54

preferences:
29.67 ms | 403 KiB | 5 Q