3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { protected $prop; } $foo = new MyClass(); $foo->prop = 'test1'; $bar = $foo; $bam = new MyClass(); $bam->prop = 'test2'; $test = array($foo, $bar, $bam); print_r(array_unique($test, 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.40.0040.01218.61
8.3.30.0070.01418.97
8.3.20.0110.00420.27
8.3.10.0000.01420.90
8.3.00.0040.00420.35
8.2.170.0100.00622.96
8.2.160.0100.00320.29
8.2.150.0020.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00421.07
8.2.120.0040.00426.35
8.2.110.0030.00719.14
8.2.100.0090.00317.84
8.2.90.0000.00819.14
8.2.80.0030.00618.04
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0050.00318.10
8.2.40.0040.00420.43
8.2.30.0040.00419.10
8.2.20.0000.00718.06
8.2.10.0060.00317.97
8.2.00.0000.00717.90
8.1.270.0040.00423.77
8.1.260.0040.01526.35
8.1.250.0110.00328.09
8.1.240.0030.00621.24
8.1.230.0070.00319.17
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0030.00617.22
8.1.180.0060.00318.10
8.1.170.0040.00418.52
8.1.160.0000.00718.83
8.1.150.0000.00721.93
8.1.140.0050.00219.45
8.1.130.0040.00418.77
8.1.120.0000.00817.31
8.1.110.0000.00717.39
8.1.100.0040.00417.25
8.1.90.0040.00417.42
8.1.80.0000.00717.41
8.1.70.0000.00717.38
8.1.60.0000.00817.43
8.1.50.0000.00717.56
8.1.40.0030.00617.36
8.1.30.0080.00017.56
8.1.20.0040.00417.63
8.1.10.0040.00417.48
8.1.00.0020.00517.40
8.0.300.0040.00418.77
8.0.290.0090.00016.75
8.0.280.0000.00718.45
8.0.270.0050.00217.26
8.0.260.0000.00818.79
8.0.250.0030.00316.86
8.0.240.0000.00816.98
8.0.230.0000.01116.86
8.0.220.0070.00016.80
8.0.210.0030.00316.82
8.0.200.0030.00316.95
8.0.190.0040.00416.90
8.0.180.0000.00816.95
8.0.170.0030.00616.94
8.0.160.0050.00216.93
8.0.150.0040.00416.84
8.0.140.0000.00816.92
8.0.130.0040.00413.32
8.0.120.0040.00416.88
8.0.110.0080.00016.91
8.0.100.0070.00016.96
8.0.90.0020.00516.90
8.0.80.0070.00716.91
8.0.70.0040.00416.83
8.0.60.0070.00016.86
8.0.50.0030.00516.77
8.0.30.0120.00717.20
8.0.20.0130.00717.40
8.0.10.0080.00016.85
8.0.00.0050.01416.65
7.4.330.0050.00015.55
7.4.320.0030.00316.36
7.4.300.0030.00316.61
7.4.290.0000.00816.64
7.4.280.0040.00416.57
7.4.270.0050.00316.63
7.4.260.0060.00316.62
7.4.250.0000.00716.52
7.4.240.0000.00716.45
7.4.230.0000.00716.72
7.4.220.0090.00816.48
7.4.210.0000.01416.64
7.4.200.0000.00716.59
7.4.160.0100.00616.62
7.4.150.0060.01617.40
7.4.140.0090.01317.86
7.4.130.0100.01016.55
7.4.120.0080.01416.53
7.4.110.0090.00916.47
7.4.100.0110.01116.52
7.4.90.0130.01016.74
7.4.80.0090.01019.39
7.4.70.0060.01016.36
7.4.60.0110.00516.56
7.4.50.0050.00516.38
7.4.40.0070.01316.54
7.4.30.0120.00616.51
7.4.00.0030.01315.06
7.3.330.0050.00013.16
7.3.320.0020.00213.26
7.3.310.0040.00416.20
7.3.300.0040.00416.21
7.3.290.0060.00916.28
7.3.280.0060.01016.27
7.3.270.0130.00617.40
7.3.260.0070.01416.38
7.3.250.0100.00816.40
7.3.240.0100.00716.43
7.3.230.0140.00316.56
7.3.210.0110.00716.43
7.3.200.0100.00616.32
7.3.190.0090.00616.26
7.3.180.0110.00516.36
7.3.170.0130.00616.41
7.3.160.0080.00816.39
7.3.00.0160.00616.57
7.2.330.0120.00616.70
7.2.320.0060.01216.68
7.2.310.0070.01016.63
7.2.300.0070.01016.60
7.2.290.0060.01016.64
7.2.130.0270.00716.71
7.2.120.0090.00916.62
7.2.110.0160.00316.98
7.2.100.0070.00716.97
7.2.90.0060.00916.79
7.2.80.0140.00316.73
7.2.70.0220.00017.00
7.2.60.0020.01016.60
7.2.50.0140.00716.90
7.2.40.0100.01017.04
7.2.30.0120.00316.54
7.2.20.0160.00016.99
7.2.10.0130.00716.92
7.2.00.0150.00417.00
7.1.250.0130.00315.60
7.1.240.0110.00415.84
7.1.230.0090.00615.71
7.1.220.0200.00015.64
7.1.210.0110.00715.75
7.1.200.0080.00315.64
7.1.190.0180.00315.64
7.1.180.0110.00715.64
7.1.170.0100.00715.75
7.1.160.0100.00315.69
7.1.150.0090.00615.84
7.1.140.0030.00615.41
7.1.130.0100.00715.48
7.1.120.0030.01015.72
7.1.110.0160.00615.64
7.1.100.0080.00815.55
7.1.90.0130.00315.54
7.1.80.0110.00516.84
7.1.70.0050.00616.35
7.1.60.0110.01325.39
7.1.50.0130.01024.90
7.1.40.0150.00525.21
7.1.30.0150.00625.00
7.1.20.0150.00525.03
7.1.10.0110.00316.04
7.1.00.0080.01016.15
7.0.330.0150.00815.30
7.0.320.0090.00615.41
7.0.310.0070.00715.45
7.0.300.0070.01015.20
7.0.290.0210.00315.23
7.0.280.0170.00015.28
7.0.270.0040.01115.10
7.0.260.0120.00315.15
7.0.250.0130.00715.16
7.0.240.0170.00315.49
7.0.230.0000.01215.33
7.0.220.0130.00615.28
7.0.210.0170.00715.46
7.0.200.0060.00515.90
7.0.190.0090.00415.90
7.0.180.0060.00715.91
7.0.170.0030.01315.62
7.0.160.0080.00515.79
7.0.150.0050.00915.73
7.0.140.0100.00315.87
7.0.130.0070.00816.01
7.0.120.0050.00515.91
7.0.110.0130.00315.89
7.0.100.0070.00715.88
7.0.90.0140.00315.84
7.0.80.0080.00815.94
7.0.70.0040.01015.78
7.0.60.0030.00915.58
7.0.50.0080.00615.97
7.0.40.0020.01014.97
7.0.30.0090.00414.95
7.0.20.0090.00614.86
7.0.10.0080.00514.84
7.0.00.0050.00914.74
5.6.380.0240.00314.45

preferences:
73.63 ms | 400 KiB | 5 Q