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 ) ); print_r($horrible_array_of_stuff); 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.60.0070.00716.75
8.3.50.0110.00922.04
8.3.40.0140.00718.97
8.3.30.0070.00718.67
8.3.20.0030.01020.18
8.3.10.0020.00523.61
8.3.00.0080.00019.75
8.2.180.0150.00416.88
8.2.170.0080.00822.96
8.2.160.0070.00719.37
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00921.04
8.2.120.0040.00426.35
8.2.110.0100.00021.96
8.2.100.0120.00018.05
8.2.90.0050.00319.17
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0040.00422.20
8.2.30.0060.00320.68
8.2.20.0080.00017.76
8.2.10.0080.00017.96
8.2.00.0030.00618.03
8.1.280.0120.00325.92
8.1.270.0150.00320.26
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00623.80
8.1.230.0110.00017.77
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0040.00418.47
8.1.160.0030.00520.78
8.1.150.0040.00418.98
8.1.140.0050.00319.60
8.1.130.0030.00317.69
8.1.120.0070.00017.51
8.1.110.0000.00917.47
8.1.100.0000.00717.46
8.1.90.0000.00817.47
8.1.80.0030.00317.51
8.1.70.0040.00417.50
8.1.60.0040.00417.65
8.1.50.0030.00617.46
8.1.40.0000.00817.45
8.1.30.0030.00617.66
8.1.20.0060.00317.56
8.1.10.0000.00717.50
8.1.00.0040.00417.56
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.50
8.0.270.0050.00217.19
8.0.260.0050.00517.38
8.0.250.0030.00317.00
8.0.240.0030.00316.98
8.0.230.0070.00016.85
8.0.220.0000.00716.82
8.0.210.0050.00316.91
8.0.200.0000.00616.96
8.0.190.0040.00416.89
8.0.180.0070.00016.92
8.0.170.0000.00716.94
8.0.160.0000.00716.79
8.0.150.0070.00016.92
8.0.140.0000.00716.83
8.0.130.0030.00313.30
8.0.120.0030.00516.89
8.0.110.0000.00816.79
8.0.100.0040.00416.97
8.0.90.0070.00016.96
8.0.80.0130.00316.82
8.0.70.0080.00016.81
8.0.60.0040.00416.86
8.0.50.0040.00416.99
8.0.30.0100.01017.29
8.0.20.0130.00617.40
8.0.10.0030.00517.08
8.0.00.0090.01016.70
7.4.330.0030.00316.71
7.4.320.0000.00616.43
7.4.300.0030.00316.46
7.4.290.0060.00416.52
7.4.280.0030.00516.43
7.4.270.0070.00016.57
7.4.260.0000.00716.57
7.4.250.0040.00416.50
7.4.240.0000.00716.56
7.4.230.0000.00716.31
7.4.220.0060.01316.61
7.4.210.0070.00716.58
7.4.200.0000.00716.68
7.4.160.0070.00716.43
7.4.150.0130.00717.40
7.4.140.0100.00917.86
7.4.130.0090.01116.39
7.4.120.0100.00716.39
7.4.110.0070.01016.36
7.4.100.0130.00416.52
7.4.90.0100.00716.54
7.4.80.0120.00619.39
7.4.70.0110.00616.61
7.4.60.0070.01316.43
7.4.50.0060.00916.40
7.4.40.0120.00616.26
7.4.30.0090.00916.77
7.4.00.0070.01015.13
7.3.330.0000.00813.18
7.3.320.0060.00013.16
7.3.310.0030.00316.25
7.3.300.0000.00716.19
7.3.290.0070.00916.29
7.3.280.0100.00716.29
7.3.270.0070.01117.40
7.3.260.0080.00816.57
7.3.250.0100.00916.35
7.3.240.0120.00916.53
7.3.230.0070.01016.39
7.3.210.0130.00316.19
7.3.200.0080.00816.33
7.3.190.0080.01316.59
7.3.180.0130.00616.37
7.3.170.0060.00916.32
7.3.160.0060.01216.24
7.3.10.0120.00316.48
7.3.00.0070.00416.52
7.2.330.0090.00916.86
7.2.320.0070.01116.59
7.2.310.0090.01216.62
7.2.300.0060.01216.49
7.2.290.0120.00816.77
7.2.130.0000.01216.81
7.2.120.0090.00616.91
7.2.110.0110.00716.75
7.2.100.0030.00916.86
7.2.90.0030.00916.77
7.2.80.0090.00316.93
7.2.70.0040.00817.03
7.2.60.0060.00617.06
7.2.50.0000.01217.04
7.2.40.0030.01017.07
7.2.30.0030.00716.76
7.2.20.0030.01216.61
7.2.10.0060.00916.84
7.2.00.0000.01218.08
7.1.250.0090.00015.84
7.1.200.0070.00715.70
7.1.100.0000.01118.13
7.1.70.0060.00917.01
7.1.60.0070.01419.05
7.1.50.0100.00016.94
7.1.00.0000.08022.45
7.0.200.0210.00814.70
7.0.60.0170.07720.09
7.0.50.0000.09017.86
7.0.40.0100.09020.14
7.0.30.0230.07020.10
7.0.20.0230.08320.22
7.0.10.0030.05020.25
7.0.00.0030.05020.12
5.6.280.0070.05321.05
5.6.210.0170.06720.66
5.6.200.0170.07318.13
5.6.190.0000.05720.67
5.6.180.0100.07720.42
5.6.170.0200.05320.54
5.6.160.0000.06320.39
5.6.150.0030.05718.25
5.6.140.0070.06018.28
5.6.130.0030.04018.15
5.6.120.0170.07021.15
5.6.110.0070.04020.99
5.6.100.0070.07720.98
5.6.90.0130.07721.02
5.6.80.0070.07720.52
5.5.350.0170.02720.39
5.5.340.0030.05717.96
5.5.330.0100.08020.19
5.5.320.0100.04720.52
5.5.310.0200.04320.28
5.5.300.0130.07017.98
5.5.290.0030.07718.00
5.5.280.0070.05320.80
5.5.270.0100.04320.62
5.5.260.0100.05720.88
5.5.250.0100.07720.59
5.5.240.0230.07720.27

preferences:
41.62 ms | 401 KiB | 5 Q