3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public $sname; public $fname; public $age; public function __construct($a,$b,$c) { $this->sname = $a; $this->fname = $b; $this->age = $c; return $this; } } $horrible_array_of_stuff = array( new Person("Owen", "Dyckhoff", 27), new Person("Joe", "Bloggs", 36 ) ); usort( $horrible_array_of_stuff, function( $left, $right ) { return [$left->sname, $left->fname, $left->age] <=> [$right->sname, $right->fname, $right->age]; } ); print_r($horrible_array_of_stuff);

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.40.0140.00018.71
8.3.30.0110.00418.68
8.3.20.0070.00720.04
8.3.10.0050.00323.51
8.3.00.0030.00519.79
8.2.170.0140.00322.96
8.2.160.0120.00319.55
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0050.00521.03
8.2.120.0060.00326.35
8.2.110.0060.00319.31
8.2.100.0060.00618.04
8.2.90.0040.00419.32
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0050.00217.93
8.2.50.0040.00418.07
8.2.40.0080.00022.38
8.2.30.0040.00420.64
8.2.20.0000.00717.71
8.2.10.0040.00418.00
8.2.00.0040.00418.12
8.1.270.0100.01020.32
8.1.260.0060.00328.09
8.1.250.0050.00328.09
8.1.240.0140.00023.92
8.1.230.0030.00817.60
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0000.00817.25
8.1.180.0030.00618.10
8.1.170.0080.00018.50
8.1.160.0000.00720.78
8.1.150.0000.00718.97
8.1.140.0040.00419.53
8.1.130.0030.00317.66
8.1.120.0040.00417.39
8.1.110.0040.00717.38
8.1.100.0070.00017.37
8.1.90.0000.00717.50
8.1.80.0040.00417.48
8.1.70.0000.00717.51
8.1.60.0000.00717.50
8.1.50.0030.00617.57
8.1.40.0030.00517.45
8.1.30.0080.00017.58
8.1.20.0030.00617.65
8.1.10.0040.00417.58
8.1.00.0000.00817.53
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.50
8.0.270.0040.00417.19
8.0.260.0040.00417.34
8.0.250.0000.00716.87
8.0.240.0030.00316.98
8.0.230.0030.00516.91
8.0.220.0000.00816.90
8.0.210.0050.00316.80
8.0.200.0030.00316.96
8.0.190.0050.00316.96
8.0.180.0050.00216.98
8.0.170.0060.00316.80
8.0.160.0000.00716.80
8.0.150.0040.00416.82
8.0.140.0040.00416.92
8.0.130.0000.00513.39
8.0.120.0050.00316.90
8.0.110.0040.00416.73
8.0.100.0070.00016.91
8.0.90.0030.00516.82
8.0.80.0070.01316.89
8.0.70.0050.00316.75
8.0.60.0070.00016.69
8.0.50.0070.00016.95
8.0.30.0100.00917.13
8.0.20.0110.00817.40
8.0.10.0000.00716.90
8.0.00.0090.01016.86
7.4.330.0000.00516.79
7.4.320.0000.00716.62
7.4.300.0030.00316.63
7.4.290.0030.00616.54
7.4.280.0000.00716.55
7.4.270.0000.00716.55
7.4.260.0000.00716.62
7.4.250.0000.00716.46
7.4.240.0030.00416.54
7.4.230.0030.00316.73
7.4.220.0090.00916.43
7.4.210.0090.00616.63
7.4.200.0030.00316.57
7.4.160.0040.01116.57
7.4.150.0060.01317.40
7.4.140.0090.00917.86
7.4.130.0060.01116.61
7.4.120.0120.00616.51
7.4.110.0080.01116.51
7.4.100.0070.01016.64
7.4.90.0140.00316.60
7.4.80.0090.00919.39
7.4.70.0110.01116.58
7.4.60.0040.01116.41
7.4.50.0140.00016.66
7.4.40.0050.01416.31
7.4.30.0090.01316.38
7.4.00.0070.01114.79
7.3.330.0050.00213.40
7.3.320.0000.00613.29
7.3.310.0000.00716.36
7.3.300.0030.00316.21
7.3.290.0070.00916.29
7.3.280.0110.00416.30
7.3.270.0130.00317.40
7.3.260.0100.00716.60
7.3.250.0140.00416.61
7.3.240.0110.00716.40
7.3.230.0100.00716.39
7.3.210.0100.00616.60
7.3.200.0080.00916.21
7.3.190.0190.00316.41
7.3.180.0120.00316.46
7.3.170.0070.01016.58
7.3.160.0090.00916.30
7.2.330.0090.00916.50
7.2.320.0070.01016.36
7.2.310.0130.01016.76
7.2.300.0040.01416.82
7.2.290.0000.01716.77
7.2.60.0140.00016.68
7.2.00.0060.00319.48
7.1.200.0030.01015.79
7.1.100.0060.00618.22
7.1.70.0040.00417.09
7.1.60.0100.01319.05
7.1.50.0100.00717.02
7.1.00.0030.07322.43
7.0.200.0370.00714.45
7.0.60.0170.07720.10
7.0.50.0100.06717.86
7.0.40.0030.05020.11
7.0.30.0330.04720.08
7.0.20.0370.07320.22
7.0.10.0170.06720.16
7.0.00.0030.04020.21
5.6.280.0000.07021.08
5.6.210.0030.04720.50
5.6.200.0100.08018.15
5.6.190.0030.05720.55
5.6.180.0170.06720.63
5.6.170.0230.08020.39
5.6.160.0070.05020.50
5.6.150.0070.07718.18
5.6.140.0100.07718.16
5.6.130.0030.04318.18
5.6.120.0030.06021.13
5.6.110.0100.03721.05
5.6.100.0100.08021.04
5.6.90.0170.07320.97
5.6.80.0130.07720.49
5.5.350.0130.03320.40
5.5.340.0070.07717.99
5.5.330.0070.07020.47
5.5.320.0170.04020.31
5.5.310.0400.06320.32
5.5.300.0100.07717.95
5.5.290.0030.05318.05
5.5.280.0070.08720.99
5.5.270.0070.08720.96
5.5.260.0170.03720.77
5.5.250.0170.07020.70
5.5.240.0100.06720.27

preferences:
50.22 ms | 400 KiB | 5 Q