3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public $prop; public $hello; } $foo = new MyClass(); $foo->prop = 'test1'; $foo->hello = 'Hi'; $bar = $foo; $bam = new MyClass(); $bam->prop = 'test1'; $bam->hello = "H4i"; $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.60.0140.00416.50
8.3.50.0070.00718.05
8.3.40.0120.00318.83
8.3.30.0130.00318.92
8.3.20.0070.00020.22
8.3.10.0080.00021.75
8.3.00.0000.00817.68
8.2.180.0120.00616.38
8.2.170.0040.01122.96
8.2.160.0140.00020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.90
8.2.110.0030.00619.27
8.2.100.0040.00817.72
8.2.90.0050.00319.21
8.2.80.0090.00017.97
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0030.00618.34
8.2.30.0070.00018.25
8.2.20.0050.00317.68
8.2.10.0040.00418.05
8.2.00.0000.00717.68
8.1.270.0030.00623.84
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00620.99
8.1.230.0090.00317.52
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00822.05
8.1.150.0050.00218.87
8.1.140.0030.00517.45
8.1.130.0000.00717.73
8.1.120.0000.00717.50
8.1.110.0040.00417.40
8.1.100.0000.00717.44
8.1.90.0030.00317.42
8.1.80.0000.00717.34
8.1.70.0040.00417.33
8.1.60.0030.00617.50
8.1.50.0030.00517.52
8.1.40.0000.00717.56
8.1.30.0050.00317.55
8.1.20.0040.00417.47
8.1.10.0050.00317.46
8.1.00.0070.00017.53
8.0.300.0060.00318.77
8.0.290.0030.00616.75
8.0.280.0000.00718.41
8.0.270.0050.00317.30
8.0.260.0000.00717.30
8.0.250.0000.00716.89
8.0.240.0000.00716.96
8.0.230.0000.00716.92
8.0.220.0030.00316.80
8.0.210.0000.00716.86
8.0.200.0070.00016.81
8.0.190.0030.00316.95
8.0.180.0040.00416.74
8.0.170.0040.00416.89
8.0.160.0030.00416.83
8.0.150.0000.00716.75
8.0.140.0000.00716.76
8.0.130.0030.00313.27
8.0.120.0060.00316.74
8.0.110.0050.00316.93
8.0.100.0040.00416.82
8.0.90.0000.00816.89
8.0.80.0030.01016.93
8.0.70.0000.00816.67
8.0.60.0050.00216.94
8.0.50.0080.00016.76
8.0.30.0140.00516.99
8.0.20.0110.01117.40
8.0.10.0050.00216.98
8.0.00.0070.01116.66
7.4.330.0050.00015.00
7.4.320.0070.00016.51
7.4.300.0050.00216.60
7.4.290.0000.00716.53
7.4.280.0000.00716.46
7.4.270.0000.00716.52
7.4.260.0030.00516.38
7.4.250.0030.00516.57
7.4.240.0030.00516.51
7.4.230.0070.00016.48
7.4.220.0170.00716.46
7.4.210.0090.00616.62
7.4.200.0070.00016.53
7.4.160.0120.00916.37
7.4.150.0090.01217.40
7.4.140.0170.00217.86
7.4.130.0080.00816.37
7.4.120.0060.01216.45
7.4.110.0140.00316.32
7.4.100.0130.00316.56
7.4.90.0060.01016.38
7.4.80.0110.01119.39
7.4.70.0160.00616.57
7.4.60.0130.00316.35
7.4.50.0040.00016.39
7.4.40.0130.01016.53
7.4.30.0030.01416.50
7.4.00.0030.01515.14
7.3.330.0000.00513.19
7.3.320.0050.00013.31
7.3.310.0070.00016.21
7.3.300.0070.00016.31
7.3.290.0070.00716.37
7.3.280.0070.00916.31
7.3.270.0100.00717.40
7.3.260.0180.01716.64
7.3.250.0130.00416.44
7.3.240.0070.01416.63
7.3.230.0140.01016.39
7.3.210.0100.00716.46
7.3.200.0120.00919.39
7.3.190.0120.01116.35
7.3.180.0170.00316.30
7.3.170.0110.00516.65
7.3.160.0080.00816.23
7.3.120.0100.00314.63
7.2.330.0090.01216.66
7.2.320.0130.00616.79
7.2.310.0120.00616.65
7.2.300.0030.01316.51
7.2.290.0060.01216.63
7.1.70.0030.00316.81
7.1.60.0070.01719.70
7.1.50.0070.01117.02
7.1.00.0030.07722.36
7.0.200.0070.00016.82
7.0.140.0030.07322.08
7.0.60.0100.05719.99
7.0.50.0070.08317.73
7.0.40.0130.08320.12
7.0.30.0170.04320.30
7.0.20.0200.07020.21
7.0.10.0170.06320.25
7.0.00.0030.05320.22
5.6.280.0030.07320.90
5.6.210.0130.08020.46
5.6.200.0130.07718.16
5.6.190.0100.05320.42
5.6.180.0170.04320.43
5.6.170.0370.03720.56
5.6.160.0170.08020.55
5.6.150.0000.08318.20
5.6.140.0000.04018.27
5.6.130.0000.05018.18
5.6.120.0070.08021.14
5.6.110.0100.03721.01
5.6.100.0200.07320.98
5.6.90.0100.07320.97
5.6.80.0030.03720.38
5.5.350.0270.07320.39
5.5.340.0100.03018.08
5.5.330.0000.04720.42
5.5.320.0270.04320.28
5.5.310.0200.04320.41
5.5.300.0070.09018.09
5.5.290.0070.04318.08
5.5.280.0100.03720.73
5.5.270.0170.07720.72
5.5.260.0070.08720.96
5.5.250.0070.07320.57
5.5.240.0030.06020.23
5.4.450.0130.05719.17
5.4.440.0170.06019.63
5.4.430.0100.06719.16
5.4.420.0200.06019.69
5.4.410.0100.05319.04
5.4.400.0300.05718.72
5.4.390.0330.06018.50
5.4.380.0000.06018.50
5.4.370.0130.04718.77
5.4.360.0170.04718.78
5.4.350.0080.03812.01
5.4.340.0060.03412.02
5.4.320.0080.03312.50
5.4.310.0080.03712.49
5.4.300.0090.05112.50
5.4.290.0110.04312.49
5.4.280.0080.04312.39
5.4.270.0100.05412.39
5.4.260.0060.04112.39
5.4.250.0080.05212.39
5.4.240.0110.04812.39
5.4.230.0070.04312.38
5.4.220.0100.04112.38
5.4.210.0080.03912.39
5.4.200.0100.05312.38
5.4.190.0090.03512.38
5.4.180.0040.05212.38
5.4.170.0100.03612.39
5.4.160.0060.04312.39
5.4.150.0060.05312.38
5.4.140.0100.05012.07
5.4.130.0090.03612.05
5.4.120.0060.03712.02
5.4.110.0070.05212.00
5.4.100.0090.04712.00
5.4.90.0070.05112.00
5.4.80.0080.05012.01
5.4.70.0050.05612.00
5.4.60.0090.05112.01
5.4.50.0120.04712.00
5.4.40.0150.05411.99
5.4.30.0080.05011.99
5.4.20.0070.05211.99
5.4.10.0090.04811.99
5.4.00.0130.06211.48
5.3.290.0060.03912.80
5.3.280.0130.05212.71
5.3.270.0170.06412.72
5.3.260.0120.04112.72
5.3.250.0150.06512.72
5.3.240.0060.04112.72
5.3.230.0100.03512.71
5.3.220.0100.03412.68
5.3.210.0020.04412.68
5.3.200.0100.03812.68
5.3.190.0100.05112.68
5.3.180.0090.04212.68
5.3.170.0080.04512.67
5.3.160.0090.05112.67
5.3.150.0070.05112.68
5.3.140.0090.05112.66
5.3.130.0140.04812.66
5.3.120.0090.05212.66
5.3.110.0060.05712.65
5.3.100.0080.05212.12
5.3.90.0120.05512.09
5.3.80.0070.05212.09
5.3.70.0120.05212.09
5.3.60.0110.03912.07
5.3.50.0100.04112.02
5.3.40.0060.05712.02
5.3.30.0080.03411.98
5.3.20.0070.04811.76
5.3.10.0070.03511.72
5.3.00.0060.03711.71
5.2.170.0060.0319.21
5.2.160.0060.0439.21
5.2.150.0080.0409.21
5.2.140.0070.0319.21
5.2.130.0030.0339.17
5.2.120.0040.0319.17
5.2.110.0060.0299.18
5.2.100.0030.0319.17
5.2.90.0080.0409.18
5.2.80.0060.0379.17
5.2.70.0030.0339.17
5.2.60.0090.0289.12
5.2.50.0060.0309.09
5.2.40.0050.0319.06
5.2.30.0050.0319.05
5.2.20.0050.0309.03
5.2.10.0050.0298.93
5.2.00.0040.0318.80
5.1.60.0040.0258.08
5.1.50.0050.0258.07
5.1.40.0040.0278.06
5.1.30.0050.0258.41
5.1.20.0030.0298.43
5.1.10.0050.0258.15
5.1.00.0020.0288.16
5.0.50.0050.0196.63
5.0.40.0050.0186.49
5.0.30.0040.0356.30
5.0.20.0060.0176.27
5.0.10.0040.0256.25
5.0.00.0030.0366.25
4.4.90.0050.0144.78
4.4.80.0020.0164.75
4.4.70.0020.0234.76
4.4.60.0030.0214.75
4.4.50.0050.0224.77
4.4.40.0050.0334.71
4.4.30.0030.0244.76
4.4.20.0030.0224.84
4.4.10.0030.0224.85
4.4.00.0040.0324.76
4.3.110.0040.0214.67
4.3.100.0040.0224.66
4.3.90.0060.0214.63
4.3.80.0050.0324.59
4.3.70.0040.0204.63
4.3.60.0070.0354.63
4.3.50.0060.0214.63
4.3.40.0050.0344.54
4.3.30.0050.0213.30
4.3.20.0050.0213.28
4.3.10.0030.0223.24
4.3.00.0030.0277.57

preferences:
54.08 ms | 400 KiB | 5 Q