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'; $bak = new MyClass(); $bak->prop = 'test1'; $test = array($foo, $bar, $bam, $bak); //print_r($test); 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.0110.00418.75
8.3.30.0070.00719.13
8.3.20.0080.00020.16
8.3.10.0040.00421.89
8.3.00.0090.00019.43
8.2.170.0070.00722.96
8.2.160.0070.01020.58
8.2.150.0120.00624.18
8.2.140.0080.00024.66
8.2.130.0000.01826.16
8.2.120.0030.00621.16
8.2.110.0090.00020.46
8.2.100.0060.00617.66
8.2.90.0060.00319.23
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0080.00017.93
8.2.50.0100.00018.07
8.2.40.0030.00718.09
8.2.30.0000.00718.11
8.2.20.0000.00717.63
8.2.10.0000.00717.98
8.2.00.0040.00417.79
8.1.270.0080.00023.89
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0120.00017.45
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.13
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0030.00618.50
8.1.160.0080.00021.93
8.1.150.0060.00318.86
8.1.140.0000.00817.38
8.1.130.0080.00017.80
8.1.120.0000.00717.49
8.1.110.0060.00317.47
8.1.100.0030.00317.53
8.1.90.0040.00417.34
8.1.80.0040.00417.41
8.1.70.0070.00017.46
8.1.60.0080.00317.61
8.1.50.0000.00717.49
8.1.40.0000.00717.55
8.1.30.0090.00017.63
8.1.20.0000.00817.63
8.1.10.0000.00717.46
8.1.00.0000.00817.43
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0070.00018.51
8.0.270.0040.00417.26
8.0.260.0000.00617.13
8.0.250.0070.00016.95
8.0.240.0000.00716.95
8.0.230.0000.00817.00
8.0.220.0040.00416.75
8.0.210.0060.00316.91
8.0.200.0060.00016.82
8.0.190.0000.00716.89
8.0.180.0000.00716.91
8.0.170.0040.00416.87
8.0.160.0000.00716.93
8.0.150.0000.00716.73
8.0.140.0050.00216.92
8.0.130.0060.00013.28
8.0.120.0040.00416.81
8.0.110.0030.00516.89
8.0.100.0030.00516.84
8.0.90.0000.00716.69
8.0.80.0050.01616.94
8.0.70.0000.00717.00
8.0.60.0000.00716.76
8.0.50.0000.00716.93
8.0.30.0150.01016.91
8.0.20.0090.01017.40
8.0.10.0040.00417.05
8.0.00.0090.01216.67
7.4.330.0030.00315.03
7.4.320.0000.00616.51
7.4.300.0060.00016.50
7.4.290.0070.00016.50
7.4.280.0040.00416.51
7.4.270.0070.00016.48
7.4.260.0070.00016.52
7.4.250.0000.00716.51
7.4.240.0030.00316.51
7.4.230.0030.00316.70
7.4.220.0120.00616.64
7.4.210.0060.01016.63
7.4.200.0030.00316.25
7.4.160.0110.00516.62
7.4.150.0040.01417.40
7.4.140.0120.00717.86
7.4.130.0110.00516.55
7.4.120.0190.00216.47
7.4.110.0100.00716.48
7.4.100.0120.00916.32
7.4.90.0090.00916.47
7.4.80.0100.00719.39
7.4.70.0040.01216.45
7.4.60.0130.00316.38
7.4.50.0000.00816.40
7.4.40.0120.00416.54
7.4.30.0060.01216.54
7.4.00.0130.00314.87
7.3.330.0000.00513.24
7.3.320.0000.00613.35
7.3.310.0070.00016.38
7.3.300.0030.00316.22
7.3.290.0110.00316.41
7.3.280.0090.01016.37
7.3.270.0050.01417.40
7.3.260.0150.00616.54
7.3.250.0090.01116.58
7.3.240.0030.01316.24
7.3.230.0130.00316.39
7.3.210.0120.00416.30
7.3.200.0120.00619.39
7.3.190.0090.00916.52
7.3.180.0100.01016.55
7.3.170.0130.00316.60
7.3.160.0180.00416.36
7.3.120.0070.01014.57
7.2.330.0060.01616.65
7.2.320.0130.00316.40
7.2.310.0090.00916.32
7.2.300.0040.01816.66
7.2.290.0080.01316.65
7.2.60.0030.01216.80
7.2.00.0090.00919.48
7.1.200.0180.00715.48
7.1.100.0000.01618.09
7.1.70.0090.00917.04
7.1.60.0030.02219.14
7.1.50.0070.01417.00
7.1.00.0000.08022.33
7.0.200.0000.00816.79
7.0.140.0030.07321.96
7.0.60.0130.08019.87
7.0.50.0070.04317.90
7.0.40.0030.06320.05
7.0.30.0530.07020.08
7.0.20.0270.08020.09
7.0.10.0170.06320.10
7.0.00.0100.07720.25
5.6.280.0100.06720.86
5.6.210.0030.09020.48
5.6.200.0000.05018.23
5.6.190.0070.08320.41
5.6.180.0300.07020.78
5.6.170.0230.08020.50
5.6.160.0100.07020.54
5.6.150.0030.06018.27
5.6.140.0000.04718.15
5.6.130.0100.04018.30
5.6.120.0070.08320.89
5.6.110.0070.08720.98
5.6.100.0000.04721.01
5.6.90.0130.05321.07
5.6.80.0070.08320.37
5.5.350.3870.05020.50
5.5.340.0130.07317.98
5.5.330.0100.08020.13
5.5.320.0270.07020.24
5.5.310.0270.05720.30
5.5.300.0130.07717.91
5.5.290.0100.07317.93
5.5.280.0070.09020.80
5.5.270.0100.04320.67
5.5.260.0070.07720.97
5.5.250.0070.06720.68
5.5.240.0370.06320.36
5.4.450.0330.03319.17
5.4.440.0570.04719.55
5.4.430.0270.04319.39
5.4.420.0300.04319.64
5.4.410.0300.04319.14
5.4.400.0230.03719.17
5.4.390.0400.03018.87
5.4.380.0470.04718.75
5.4.370.0400.05018.50
5.4.360.0300.05318.80
5.4.350.0270.05718.63
5.4.340.0400.07018.84
5.4.320.0030.04212.50
5.4.310.0050.03912.49
5.4.300.0060.03612.50
5.4.290.0100.03412.49
5.4.280.0060.03612.39
5.4.270.0080.03812.39
5.4.260.0070.03612.39
5.4.250.0050.03712.39
5.4.240.0080.03912.39
5.4.230.0070.05312.38
5.4.220.0070.03412.38
5.4.210.0030.04112.38
5.4.200.0060.05012.39
5.4.190.0090.03212.38
5.4.180.0060.03612.38
5.4.170.0070.04912.39
5.4.160.0080.04112.38
5.4.150.0040.03712.38
5.4.140.0090.04112.07
5.4.130.0070.03312.06
5.4.120.0080.04212.01
5.4.110.0050.03712.01
5.4.100.0060.04212.00
5.4.90.0050.04812.01
5.4.80.0100.03812.01
5.4.70.0050.03512.00
5.4.60.0080.03812.01
5.4.50.0040.03712.00
5.4.40.0070.04111.99
5.4.30.0070.03511.99
5.4.20.0070.03411.99
5.4.10.0070.03511.99
5.4.00.0010.04011.48
5.3.290.0070.04012.80
5.3.280.0080.03612.71
5.3.270.0040.04112.72
5.3.260.0090.03512.72
5.3.250.0080.03512.72
5.3.240.0070.03712.72
5.3.230.0080.03612.71
5.3.220.0120.03112.68
5.3.210.0070.03812.68
5.3.200.0080.03612.68
5.3.190.0070.03712.67
5.3.180.0070.03512.68
5.3.170.0100.03212.67
5.3.160.0090.03312.67
5.3.150.0070.04712.68
5.3.140.0050.04512.66
5.3.130.0080.03612.66
5.3.120.0080.04212.66
5.3.110.0080.03812.66
5.3.100.0110.03412.12
5.3.90.0080.03512.09
5.3.80.0080.04312.09
5.3.70.0050.04812.09
5.3.60.0080.03412.07
5.3.50.0070.04312.02
5.3.40.0040.03812.02
5.3.30.0080.03311.97
5.3.20.0040.03711.75
5.3.10.0080.04411.72
5.3.00.0070.03511.71
5.2.170.0060.0409.21
5.2.160.0070.0349.21
5.2.150.0030.0329.21
5.2.140.0000.0419.21
5.2.130.0040.0349.17
5.2.120.0060.0279.17
5.2.110.0070.0359.18
5.2.100.0050.0339.18
5.2.90.0060.0309.18
5.2.80.0050.0309.16
5.2.70.0030.0349.17
5.2.60.0080.0329.12
5.2.50.0060.0409.09
5.2.40.0030.0309.06
5.2.30.0050.0299.05
5.2.20.0030.0319.03
5.2.10.0040.0308.94
5.2.00.0030.0308.80
5.1.60.0090.0288.08
5.1.50.0030.0258.07
5.1.40.0090.0228.06
5.1.30.0050.0298.41
5.1.20.0050.0268.43
5.1.10.0050.0258.15
5.1.00.0040.0258.15
5.0.50.0030.0216.63
5.0.40.0040.0196.49
5.0.30.0040.0316.31
5.0.20.0050.0196.27
5.0.10.0030.0206.25
5.0.00.0030.0316.25
4.4.90.0050.0134.78
4.4.80.0070.0114.75
4.4.70.0040.0144.75
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0010.0174.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0030.0244.76
4.3.110.0010.0174.67
4.3.100.0020.0154.67
4.3.90.0000.0174.63
4.3.80.0020.0254.58
4.3.70.0040.0134.63
4.3.60.0030.0144.62
4.3.50.0030.0154.63
4.3.40.0040.0234.54
4.3.30.0030.0153.30
4.3.20.0020.0163.28
4.3.10.0040.0193.24
4.3.00.0070.02012.96

preferences:
43.09 ms | 400 KiB | 5 Q