3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public $prop; } $foo = new MyClass(); $foo->prop = 'test1'; $bar = $foo; $bam = new MyClass(); $bam->prop = 'test2'; $ham= new MyClass(); $ham->prop = 'test1'; $test = array($foo, $bar, $bam, $ham); 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.0100.01016.63
8.3.50.0040.01218.13
8.3.40.0070.00718.79
8.3.30.0150.00719.00
8.3.20.0070.01120.10
8.3.10.0030.00621.65
8.3.00.0040.00419.51
8.2.180.0070.01018.16
8.2.170.0150.00722.96
8.2.160.0150.00022.15
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0060.00319.36
8.2.110.0080.00320.87
8.2.100.0080.00417.63
8.2.90.0000.00919.27
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0080.00018.05
8.2.50.0040.00418.07
8.2.40.0040.00419.88
8.2.30.0040.00418.11
8.2.20.0000.00817.65
8.2.10.0050.00318.11
8.2.00.0050.00317.68
8.1.280.0110.00425.92
8.1.270.0040.00418.91
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0170.00323.92
8.1.230.0070.00419.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0100.00017.36
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0040.00418.50
8.1.160.0040.00421.96
8.1.150.0050.00218.88
8.1.140.0020.00517.48
8.1.130.0000.00717.80
8.1.120.0000.00717.42
8.1.110.0050.00317.43
8.1.100.0040.00417.32
8.1.90.0070.00017.35
8.1.80.0000.00717.36
8.1.70.0000.00717.42
8.1.60.0030.00617.62
8.1.50.0040.00417.40
8.1.40.0040.00417.54
8.1.30.0000.00817.62
8.1.20.0050.00217.62
8.1.10.0040.00417.60
8.1.00.0000.00817.42
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0040.00418.31
8.0.270.0030.00317.18
8.0.260.0030.00317.29
8.0.250.0070.00016.96
8.0.240.0040.00416.96
8.0.230.0030.00316.95
8.0.220.0000.00816.79
8.0.210.0040.00416.77
8.0.200.0080.00016.90
8.0.190.0000.00716.85
8.0.180.0040.00416.86
8.0.170.0040.00416.78
8.0.160.0040.00416.82
8.0.150.0000.00716.79
8.0.140.0070.00016.85
8.0.130.0070.00013.22
8.0.120.0040.00416.81
8.0.110.0000.00716.86
8.0.100.0000.00816.82
8.0.90.0000.00716.68
8.0.80.0160.00316.89
8.0.70.0040.00416.73
8.0.60.0030.00316.82
8.0.50.0040.00416.85
8.0.30.0070.01417.23
8.0.20.0090.00917.40
8.0.10.0030.00516.98
8.0.00.0040.01416.83
7.4.330.0050.00015.05
7.4.320.0030.00316.62
7.4.300.0040.00416.41
7.4.290.0100.00016.50
7.4.280.0000.00716.43
7.4.270.0030.00316.45
7.4.260.0000.00716.47
7.4.250.0070.00016.43
7.4.240.0050.00216.48
7.4.230.0030.00316.39
7.4.220.0110.00616.38
7.4.210.0060.01016.45
7.4.200.0030.00316.48
7.4.160.0060.00916.43
7.4.150.0150.01417.40
7.4.140.0080.01117.86
7.4.130.0100.00916.44
7.4.120.0100.00616.55
7.4.110.0090.00916.29
7.4.100.0100.00716.41
7.4.90.0110.00716.56
7.4.80.0100.01019.39
7.4.70.0070.01016.57
7.4.60.0080.00816.64
7.4.50.0000.00816.62
7.4.40.0030.01316.48
7.4.30.0180.00416.41
7.4.00.0070.01014.83
7.3.330.0050.00013.32
7.3.320.0110.00313.34
7.3.310.0070.00016.20
7.3.300.0070.00016.27
7.3.290.0070.00016.31
7.3.280.0120.00516.38
7.3.270.0060.01117.40
7.3.260.0100.00916.36
7.3.250.0080.01216.22
7.3.240.0030.01316.29
7.3.230.0060.01216.39
7.3.210.0130.00316.27
7.3.200.0070.01119.39
7.3.190.0100.01016.21
7.3.180.0100.00716.21
7.3.170.0150.00616.41
7.3.160.0120.00616.40
7.3.120.0060.01214.85
7.3.110.0080.00814.80
7.3.100.0060.01214.55
7.3.90.0100.00714.75
7.3.80.0070.01014.76
7.3.70.0000.01114.73
7.3.60.0040.01414.59
7.3.50.0030.01014.83
7.3.40.0060.00614.81
7.3.30.0000.01014.76
7.3.20.0090.00616.66
7.3.10.0050.00716.74
7.3.00.0090.00516.52
7.2.330.0120.00616.68
7.2.320.0080.00816.58
7.2.310.0040.01516.78
7.2.300.0080.00816.25
7.2.290.0100.00716.70
7.2.250.0040.01515.20
7.2.240.0030.01714.95
7.2.230.0130.00314.91
7.2.220.0000.01014.97
7.2.210.0120.00614.63
7.2.200.0070.00315.18
7.2.190.0040.01414.93
7.2.180.0030.01014.96
7.2.170.0040.01214.99
7.2.130.0070.00716.62
7.2.120.0080.00516.67
7.2.110.0110.00916.47
7.2.100.0070.00916.90
7.2.90.0080.00816.85
7.2.80.0070.00616.88
7.2.70.0150.00216.77
7.2.60.0080.01016.73
7.2.50.0090.00816.74
7.2.40.0120.00416.70
7.2.30.0050.00716.66
7.2.20.0130.00116.86
7.2.10.0040.01116.96
7.2.00.0060.00817.68
7.1.330.0060.00916.02
7.1.320.0040.00715.80
7.1.310.0070.01015.73
7.1.300.0040.01115.88
7.1.290.0070.00715.81
7.1.280.0000.01315.79
7.1.270.0030.00815.78
7.1.260.0040.00415.87
7.1.250.0140.00315.54
7.1.100.0000.01118.00
7.1.70.0020.00516.80
7.1.60.0070.01719.50
7.1.50.0070.01016.95
7.1.00.0030.07722.24
7.0.200.0180.00816.78
7.0.140.0000.06722.11
7.0.60.0170.05719.79
7.0.50.0000.07317.86
7.0.40.0030.04720.11
7.0.30.0430.05720.24
7.0.20.0200.08320.15
7.0.10.0200.07720.05
7.0.00.0200.07020.23
5.6.280.0100.06020.89
5.6.210.0130.08020.69
5.6.200.0070.08718.16
5.6.190.0170.07720.54
5.6.180.0270.06320.57
5.6.170.0300.07320.55
5.6.160.0130.04320.44
5.6.150.0030.04718.14
5.6.140.0100.05318.11
5.6.130.0070.08318.18
5.6.120.0070.06321.14
5.6.110.0070.08720.99
5.6.100.0100.08020.98
5.6.90.0070.04020.95
5.6.80.0070.06720.38
5.6.70.4070.03320.41
5.5.350.0300.07320.43
5.5.340.0100.05318.01
5.5.330.0130.08020.45
5.5.320.0230.04720.31
5.5.310.0300.07720.23
5.5.300.0070.06718.03
5.5.290.0000.04317.98
5.5.280.0070.07720.80
5.5.270.0030.04720.87
5.5.260.0070.05320.64
5.5.250.0070.06020.46
5.5.240.3830.03320.35
5.4.450.0330.07019.52
5.4.440.0270.04719.30
5.4.430.0200.06319.48
5.4.420.0270.08019.26
5.4.410.0230.06319.34
5.4.400.0230.03719.16
5.4.390.0270.05319.05
5.4.380.0300.04719.13
5.4.370.0270.03719.00
5.4.360.0230.03719.23
5.4.350.0230.04019.09
5.4.340.0300.03319.16
5.4.320.0300.04719.24
5.4.310.0230.07018.98
5.4.300.0270.06018.95
5.4.290.0400.04719.09
5.4.280.0400.06719.21
5.4.270.0330.05719.31
5.4.260.0270.07319.13
5.4.250.0370.06019.13
5.4.240.0300.07318.86
5.4.230.0230.05719.21
5.4.220.0300.04019.14
5.4.210.0370.04319.05
5.4.200.0370.06019.23
5.4.190.0300.07318.86
5.4.180.0330.06719.05
5.4.170.0200.05019.13
5.4.160.0300.07018.85
5.4.150.0300.05019.31
5.4.140.0270.05316.50
5.4.130.0330.05316.50
5.4.120.0300.07016.32
5.4.110.0230.07716.28
5.4.100.0330.07016.19
5.4.90.0270.03716.21
5.4.80.0300.03316.57
5.4.70.0230.05016.53
5.4.60.0300.07016.49
5.4.50.0300.04016.43
5.4.40.0400.04316.54
5.4.30.0400.05716.48
5.4.20.0230.04716.51
5.4.10.0200.04316.47
5.4.00.0230.04315.80
5.3.290.0270.07014.63
5.3.280.0300.07014.49
5.3.270.0300.05314.57
5.3.260.0230.07014.59
5.3.250.0270.05314.65
5.3.240.0230.04714.65
5.3.230.0200.05714.59
5.3.220.0270.05714.78
5.3.210.0300.06014.57
5.3.200.0370.06314.46
5.3.190.0270.05714.56
5.3.180.0230.07314.65
5.3.170.0300.07314.60
5.3.160.0400.05714.71
5.3.150.0230.06314.48
5.3.140.0270.04314.57
5.3.130.0270.04314.57
5.3.120.0330.06714.54
5.3.110.0330.06014.51
5.3.100.0270.07014.25
5.3.90.0270.06014.13
5.3.80.0270.07314.06
5.3.70.0300.07013.99
5.3.60.0300.04014.00
5.3.50.0270.07013.88
5.3.40.0270.07013.85
5.3.30.0230.04314.00
5.3.20.0300.06713.70
5.3.10.0330.06013.57
5.3.00.0330.03013.54
5.2.170.0230.04712.05
5.2.160.0300.05312.05
5.2.150.0270.05312.05
5.2.140.0270.05712.05
5.2.130.0270.04012.05
5.2.120.0200.06312.05
5.2.110.0300.04012.05
5.2.100.0170.04012.05
5.2.90.0200.03312.05
5.2.80.0200.04312.05
5.2.70.0330.04312.05
5.2.60.0200.05712.05
5.2.50.0300.05712.05
5.2.40.0170.05312.05
5.2.30.0230.04712.05
5.2.20.0230.05312.05
5.2.10.0170.03712.05
5.2.00.0170.06012.05
5.1.60.0170.04312.05
5.1.50.0170.02312.05
5.1.40.0270.04712.05
5.1.30.0230.03012.05
5.1.20.0200.03012.05
5.1.10.0170.05712.05
5.1.00.0230.03012.05
5.0.50.0100.01712.05
5.0.40.0100.01712.05
5.0.30.0130.02312.05
5.0.20.0070.02012.05
5.0.10.0030.02312.05
5.0.00.0100.02712.05
4.4.90.0130.02312.05
4.4.80.0130.01712.05
4.4.70.0170.01312.05
4.4.60.0100.02312.05
4.4.50.0070.02312.05
4.4.40.0070.03712.05
4.4.30.0130.03012.05
4.4.20.0100.03712.05
4.4.10.0070.02012.05
4.4.00.0070.02712.05
4.3.110.0100.01312.05
4.3.100.0030.02012.05
4.3.90.0030.01712.05
4.3.80.0070.02312.05
4.3.70.0030.02012.05
4.3.60.0030.01712.05
4.3.50.0000.02012.05
4.3.40.0030.02312.05
4.3.30.0030.01712.05
4.3.20.0030.01712.05
4.3.10.0030.01312.05
4.3.00.0070.01012.05

preferences:
59.07 ms | 400 KiB | 5 Q