3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $dt; function __construct($dt) { $this->dt = $dt; } } $foo = new Foo(new DateTime); $std = new stdClass; $arr = [$foo, $foo, $std, $std, $std]; var_dump(array_unique($arr, SORT_REGULAR));

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.0150.00418.55
8.3.50.0110.00416.59
8.3.40.0120.00319.00
8.3.30.0110.00419.02
8.3.20.0060.00321.77
8.3.10.0040.00423.57
8.3.00.0040.00423.45
8.2.180.0150.00618.38
8.2.170.0110.00722.96
8.2.160.0070.00720.39
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00220.97
8.2.120.0110.00026.35
8.2.110.0030.00720.94
8.2.100.0100.00017.84
8.2.90.0000.01018.16
8.2.80.0080.00017.97
8.2.70.0040.00417.88
8.2.60.0030.00618.03
8.2.50.0040.00418.07
8.2.40.0040.00418.35
8.2.30.0040.00418.17
8.2.20.0030.00618.05
8.2.10.0040.00418.05
8.2.00.0000.00718.04
8.1.280.0150.00025.92
8.1.270.0070.00022.25
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0150.00321.32
8.1.230.0000.01220.97
8.1.220.0040.00417.76
8.1.210.0040.00418.91
8.1.200.0060.00317.50
8.1.190.0030.00517.48
8.1.180.0040.00418.10
8.1.170.0080.00018.77
8.1.160.0040.00418.95
8.1.150.0040.00420.32
8.1.140.0070.00017.62
8.1.130.0040.00417.55
8.1.120.0000.00717.68
8.1.110.0040.00717.52
8.1.100.0000.00917.64
8.1.90.0000.00917.66
8.1.80.0000.00717.54
8.1.70.0080.00017.55
8.1.60.0100.00017.70
8.1.50.0040.00417.68
8.1.40.0000.00717.57
8.1.30.0090.00017.73
8.1.20.0040.00417.76
8.1.10.0000.00817.71
8.1.00.0040.00417.71
8.0.300.0000.00819.86
8.0.290.0070.00016.75
8.0.280.0000.00718.40
8.0.270.0070.00017.33
8.0.260.0070.00017.02
8.0.250.0030.00317.14
8.0.240.0070.00317.19
8.0.230.0030.00317.13
8.0.220.0070.00017.08
8.0.210.0070.00017.09
8.0.200.0000.00717.14
8.0.190.0080.00017.18
8.0.180.0000.00717.05
8.0.170.0040.00417.13
8.0.160.0030.00617.06
8.0.150.0000.00716.91
8.0.140.0000.00716.95
8.0.130.0030.00313.43
8.0.120.0040.00417.05
8.0.110.0040.00417.13
8.0.100.0000.00716.94
8.0.90.0000.00816.96
8.0.80.0100.00517.12
8.0.70.0030.00617.08
8.0.60.0050.00217.14
8.0.50.0040.00416.94
8.0.30.0090.00917.19
8.0.20.0060.01317.51
8.0.10.0000.00717.10
8.0.00.0090.00916.78
7.4.330.0000.00615.55
7.4.320.0030.00316.79
7.4.300.0000.00616.57
7.4.290.0080.00316.63
7.4.280.0050.00316.75
7.4.270.0060.00016.70
7.4.260.0050.00316.73
7.4.250.0000.00716.67
7.4.240.0050.00316.57
7.4.230.0070.00016.49
7.4.220.0070.00016.64
7.4.210.0080.00916.66
7.4.200.0070.00016.76
7.4.160.0050.01016.63
7.4.140.0130.00717.86
7.4.130.0120.00916.90
7.4.120.0100.00916.65
7.4.110.0030.01316.66
7.4.100.0030.01816.66
7.4.90.0030.01316.77
7.4.80.0210.00419.39
7.4.70.0150.00316.71
7.4.60.0130.00716.75
7.4.50.0120.00316.45
7.4.40.0040.01216.65
7.4.00.0060.00915.03
7.3.330.0000.00813.39
7.3.320.0060.00013.43
7.3.310.0030.00316.27
7.3.300.0000.00716.39
7.3.290.0120.00316.36
7.3.280.0070.00716.42
7.3.260.0140.00816.44
7.3.250.0090.00916.48
7.3.240.0110.00616.46
7.3.230.0000.01716.79
7.3.210.0110.00716.47
7.3.200.0080.00816.75
7.3.190.0110.00416.61
7.3.180.0130.00316.54
7.3.170.0090.01016.36
7.3.160.0090.00616.38
7.3.120.0040.01114.89
7.3.110.0080.00814.85
7.3.100.0060.00914.96
7.3.90.0070.00715.04
7.3.80.0060.00914.87
7.3.70.0030.01014.73
7.3.60.0130.00314.98
7.3.50.0030.01214.65
7.3.40.0030.01014.95
7.3.30.0120.00314.80
7.3.20.0080.00416.58
7.3.10.0030.01416.60
7.3.00.0000.01716.50
7.2.330.0120.00916.87
7.2.320.0060.01216.94
7.2.310.0140.00416.97
7.2.300.0130.00416.67
7.2.290.0130.01016.49
7.2.250.0130.00315.26
7.2.240.0070.01015.18
7.2.230.0070.01015.08
7.2.220.0070.01015.40
7.2.210.0070.01114.98
7.2.200.0090.00615.05
7.2.190.0030.00814.91
7.2.180.0060.01215.08
7.2.170.0070.01014.97
7.2.60.0130.00316.80
7.2.30.0220.01317.99
7.2.20.0180.01217.96
7.2.10.0240.00717.88
7.2.00.0230.01018.12
7.1.330.0060.00916.13
7.1.320.0070.00716.06
7.1.310.0030.01015.60
7.1.300.0070.00715.79
7.1.290.0040.01115.95
7.1.280.0130.00315.80
7.1.270.0030.00615.92
7.1.260.0100.00315.85
7.1.200.0000.01515.86
7.1.150.0130.01116.63
7.1.140.0180.01516.59
7.1.130.0180.01116.80
7.1.120.0140.01116.83
7.1.110.0170.01115.91
7.1.100.0150.00816.14
7.1.90.0230.01316.59
7.1.80.0120.01316.33
7.1.70.0130.01215.06
7.1.60.0590.01333.18
7.1.50.0410.01633.03
7.1.40.0350.01732.52
7.1.30.0350.02032.78
7.1.20.0300.01732.89
7.1.10.0150.01114.93
7.1.00.0130.01614.88

preferences:
65.4 ms | 401 KiB | 5 Q