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'; $t = new MyClass(); $t->prop = 'test1'; $test = array($foo, $bar, $bam, $t); function filter_them( $obj ) { static $new_arr; if ( ! in_array( $new_arr, $obj->prop ) ){ $new_arr[] = $obj->prop; return true; } } print_r(array_filter($test, 'filter_them'));

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.70.0160.00316.63
8.3.60.0030.01318.81
8.3.50.0110.00621.27
8.3.40.0070.00718.78
8.3.30.0140.00019.23
8.3.20.0040.00420.25
8.3.10.0080.00022.07
8.3.00.0070.00022.45
8.2.190.0170.00016.75
8.2.180.0120.00916.50
8.2.170.0100.01022.96
8.2.160.0100.00319.19
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0090.00926.16
8.2.120.0080.00019.78
8.2.110.0030.00620.43
8.2.100.0000.01019.34
8.2.90.0000.00819.14
8.2.80.0080.00019.34
8.2.70.0050.00317.75
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0060.00318.16
8.2.30.0040.00418.11
8.2.20.0040.00417.59
8.2.10.0040.00417.79
8.2.00.0040.00417.62
8.1.280.0100.00725.92
8.1.270.0080.00020.35
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.82
8.1.230.0090.00319.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00517.38
8.1.190.0060.00317.51
8.1.180.0060.00318.79
8.1.170.0000.00818.65
8.1.160.0000.00722.20
8.1.150.0030.00518.69
8.1.140.0050.00317.42
8.1.130.0030.00517.74
8.1.120.0050.00317.53
8.1.110.0040.00417.39
8.1.100.0060.00317.52
8.1.90.0000.00717.48
8.1.80.0000.00717.37
8.1.70.0000.00717.30
8.1.60.0030.00717.59
8.1.50.0030.00517.55
8.1.40.0040.00417.55
8.1.30.0040.00417.66
8.1.20.0040.00417.56
8.1.10.0040.00417.59
8.1.00.0030.00517.50
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0040.00418.46
8.0.270.0000.00717.25
8.0.260.0030.00316.94
8.0.250.0030.00316.99
8.0.240.0040.00417.04
8.0.230.0050.00217.00
8.0.220.0030.00316.87
8.0.210.0040.00416.95
8.0.200.0000.00816.88
8.0.190.0080.00016.95
8.0.180.0040.00416.95
8.0.170.0000.00717.04
8.0.160.0080.00016.77
8.0.150.0040.00416.81
8.0.140.0070.00016.93
8.0.130.0060.00013.41
8.0.120.0040.00416.92
8.0.110.0000.00816.95
8.0.100.0080.00016.91
8.0.90.0000.00816.95
8.0.80.0140.00717.02
8.0.70.0000.00716.95
8.0.60.0030.00516.90
8.0.50.0000.00716.89
8.0.30.0100.00917.33
8.0.20.0140.00417.40
8.0.10.0000.00717.18
8.0.00.0100.00816.85
7.4.330.0000.00615.00
7.4.320.0030.00316.49
7.4.300.0000.00716.48
7.4.290.0050.00516.54
7.4.280.0000.00716.63
7.4.270.0040.00416.59
7.4.260.0030.00316.58
7.4.250.0040.00416.55
7.4.240.0020.00516.57
7.4.230.0000.00716.66
7.4.220.0160.00916.60
7.4.210.0080.00816.59
7.4.200.0040.00416.24
7.4.190.0000.00716.39
7.4.160.0080.00816.71
7.4.150.0030.01417.40
7.4.140.0090.00817.86
7.4.130.0120.00916.59
7.4.120.0110.00716.53
7.4.110.0140.00616.63
7.4.100.0120.01316.56
7.4.90.0030.01816.44
7.4.80.0120.00619.39
7.4.70.0040.01816.40
7.4.60.0060.01316.51
7.4.50.0000.00816.52
7.4.40.0100.00722.77
7.4.30.0090.00916.64
7.4.00.0070.00714.96
7.3.330.0000.00513.24
7.3.320.0000.00513.35
7.3.310.0000.00716.32
7.3.300.0030.00316.31
7.3.290.0120.00316.44
7.3.280.0090.00816.41
7.3.270.0080.00917.40
7.3.260.0140.01016.31
7.3.250.0170.00316.43
7.3.240.0090.01016.64
7.3.230.0120.00916.39
7.3.210.0130.00316.44
7.3.200.0030.01219.39
7.3.190.0070.01016.47
7.3.180.0070.01016.45
7.3.170.0090.01216.39
7.3.160.0040.01216.58
7.3.120.0070.00714.80
7.2.330.0110.00616.80
7.2.320.0130.00516.81
7.2.310.0080.00816.75
7.2.300.0070.01016.82
7.2.290.0070.01016.74
7.2.60.0070.01017.04
7.2.00.0040.00819.48
7.1.200.0330.00015.52
7.1.100.0090.00618.13
7.1.70.0050.00217.27
7.1.60.0110.01419.82
7.1.50.0060.01216.78
7.1.00.0000.03722.57
7.0.200.0030.00716.68
7.0.140.0030.07322.08
7.0.60.0070.04020.03
7.0.50.0070.04717.84
7.0.40.0070.08720.11
7.0.30.0270.06720.23
7.0.20.0130.05720.16
7.0.10.0300.04320.26
7.0.00.0100.03720.27
5.6.280.0070.07021.10
5.6.210.0030.06320.48
5.6.200.0070.06018.17
5.6.190.0170.08020.55
5.6.180.3730.04320.57
5.6.170.0270.05320.54
5.6.160.0070.03720.50
5.6.150.0070.04018.18
5.6.140.0070.05718.17
5.6.130.0130.06718.19
5.6.120.0130.06320.97
5.6.110.0070.05321.05
5.6.100.0170.04721.14
5.6.90.0070.08320.98
5.6.80.0070.07020.43
5.6.70.0100.03720.43
5.5.350.0270.07720.53
5.5.340.0130.07318.05
5.5.330.0100.04720.43
5.5.320.0300.07020.30
5.5.310.0270.08020.24
5.5.300.0070.07017.98
5.5.290.0100.07317.96
5.5.280.0100.08020.88
5.5.270.0270.06320.93
5.5.260.0230.07020.87
5.5.250.0100.08720.59
5.5.240.0070.07320.13
5.4.450.1970.03319.48
5.4.440.2200.04019.53
5.4.430.1970.04019.45
5.4.420.1030.03319.52
5.4.410.0000.04019.20
5.4.400.0030.04019.10
5.4.390.0030.07019.13
5.4.380.2930.04319.21
5.4.370.1870.04319.17
5.4.360.1870.04019.23
5.4.350.1870.03718.98
5.4.340.2000.04019.08
5.4.320.1970.04019.23
5.4.310.1930.03319.24
5.4.300.1970.04319.21
5.4.290.2230.03319.09
5.4.280.1930.03019.06
5.4.270.0030.04319.06
5.4.260.0070.07019.08
5.4.250.1400.05019.16
5.4.240.2200.04019.07
5.4.230.1970.04319.19
5.4.220.2270.03318.83
5.4.210.2400.03718.99
5.4.200.2130.04019.06
5.4.190.2230.04718.98
5.4.180.2270.04019.30
5.4.170.2070.04318.83
5.4.160.1900.04018.95
5.4.150.0070.03319.07
5.4.140.0100.06716.39
5.4.130.1000.03716.40
5.4.120.2230.04316.70
5.4.110.2230.04016.33
5.4.100.2100.04016.50
5.4.90.2130.03716.61
5.4.80.2200.03716.30
5.4.70.2300.02716.57
5.4.60.2130.04716.52
5.4.50.2000.03716.22
5.4.40.2200.04316.51
5.4.30.1830.03716.53
5.4.20.1870.04016.25
5.4.10.2200.03716.43
5.4.00.1900.03715.94
5.3.290.1970.03714.70
5.3.280.2170.04714.51
5.3.270.2230.04314.58
5.3.260.2200.04314.75
5.3.250.2270.04014.61
5.3.240.2130.04714.52
5.3.230.2030.04014.59
5.3.220.0030.03714.46
5.3.210.0000.04014.68
5.3.200.1070.03714.48
5.3.190.1800.04714.54
5.3.180.2270.04314.65
5.3.170.2330.04014.64
5.3.160.2100.04014.58
5.3.150.2270.04314.53
5.3.140.1930.03714.65
5.3.130.1970.03314.52
5.3.120.2230.04714.55
5.3.110.0470.03014.54
5.3.100.0100.04014.11
5.3.90.0030.03713.95
5.3.80.0270.05714.24
5.3.70.0070.08014.16
5.3.60.0070.03713.93
5.3.50.0100.07313.97
5.3.40.1900.04014.02
5.3.30.1670.04013.84
5.3.20.2000.03713.84
5.3.10.2200.03713.63
5.3.00.1970.04313.64
5.2.170.1700.03011.06
5.2.160.1870.02711.04
5.2.150.1970.03011.06
5.2.140.1970.03311.23
5.2.130.1630.02711.19
5.2.120.0730.03311.08
5.2.110.0030.05011.11
5.2.100.0070.04711.03
5.2.90.0370.03711.33
5.2.80.1730.03311.18
5.2.70.1900.03711.02
5.2.60.1830.03311.03
5.2.50.1930.03310.94
5.2.40.1470.02710.92
5.2.30.1570.03711.05
5.2.20.1330.03010.88
5.2.10.1570.03710.77
5.2.00.1630.02710.62
5.1.60.1470.02710.15
5.1.50.1670.0339.90
5.1.40.1300.02310.21
5.1.30.1330.03010.27
5.1.20.1530.02310.43
5.1.10.1530.03310.05
5.1.00.1470.02710.13
5.0.50.0730.0238.81
5.0.40.0900.0308.81
5.0.30.0700.0308.81
5.0.20.0770.0208.81
5.0.10.0800.0178.81
5.0.00.0800.0238.81
4.4.90.0800.0208.81
4.4.80.0670.0178.81
4.4.70.0670.0138.81
4.4.60.0830.0208.81
4.4.50.0730.0178.81
4.4.40.0770.0238.81
4.4.30.0830.0238.81
4.4.20.0870.0208.81
4.4.10.0830.0278.81
4.4.00.0770.0238.81
4.3.110.0800.0178.81
4.3.100.0900.0138.81
4.3.90.0670.0178.81
4.3.80.0800.0338.81
4.3.70.0700.0138.81
4.3.60.0730.0208.81
4.3.50.0230.0178.81
4.3.40.0000.0278.81
4.3.30.0000.0178.81
4.3.20.0030.0338.81
4.3.10.0000.0208.81
4.3.00.0000.0208.81

preferences:
40.68 ms | 401 KiB | 5 Q