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 ) ){ $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.60.0030.01418.81
8.3.50.0100.00821.27
8.3.40.0070.00718.76
8.3.30.0070.00719.09
8.3.20.0070.00720.34
8.3.10.0040.00421.92
8.3.00.0050.00322.52
8.2.180.0110.01116.50
8.2.170.0040.01122.96
8.2.160.0100.00319.08
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0030.00519.78
8.2.110.0090.00022.11
8.2.100.0100.00417.91
8.2.90.0000.00819.20
8.2.80.0040.00418.05
8.2.70.0030.00617.50
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0080.00018.22
8.2.30.0050.00318.07
8.2.20.0000.00717.72
8.2.10.0050.00217.76
8.2.00.0030.00517.60
8.1.280.0170.00025.92
8.1.270.0040.00420.32
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.86
8.1.230.0110.00019.10
8.1.220.0030.00617.76
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0000.00917.53
8.1.180.0090.00018.82
8.1.170.0060.00318.57
8.1.160.0030.00322.10
8.1.150.0040.00418.61
8.1.140.0030.00617.43
8.1.130.0000.00717.71
8.1.120.0000.00817.38
8.1.110.0070.00017.47
8.1.100.0040.00417.48
8.1.90.0000.00717.43
8.1.80.0050.00217.35
8.1.70.0000.00817.40
8.1.60.0030.00617.61
8.1.50.0040.00417.57
8.1.40.0030.00617.56
8.1.30.0060.00317.64
8.1.20.0030.00617.64
8.1.10.0080.00017.49
8.1.00.0030.00617.37
8.0.300.0070.00018.77
8.0.290.0000.00717.18
8.0.280.0070.00018.33
8.0.270.0000.00717.20
8.0.260.0000.00716.84
8.0.250.0070.00017.00
8.0.240.0030.00516.92
8.0.230.0070.00016.89
8.0.220.0000.00816.93
8.0.210.0030.00316.92
8.0.200.0070.00016.96
8.0.190.0040.00317.04
8.0.180.0000.00717.04
8.0.170.0040.00417.02
8.0.160.0040.00417.05
8.0.150.0030.00516.93
8.0.140.0030.00516.90
8.0.130.0000.00613.38
8.0.120.0020.00516.93
8.0.110.0090.00016.78
8.0.100.0000.00716.91
8.0.90.0000.00716.96
8.0.80.0060.01316.96
8.0.70.0000.00817.05
8.0.60.0080.00017.02
8.0.50.0040.00416.91
8.0.30.0110.00817.25
8.0.20.0140.00317.40
8.0.10.0030.00516.91
8.0.00.0160.00616.84
7.4.330.0020.00215.00
7.4.320.0030.00316.40
7.4.300.0040.00416.55
7.4.290.0110.00016.48
7.4.280.0030.00316.56
7.4.270.0000.00716.57
7.4.260.0000.00716.63
7.4.250.0000.00716.47
7.4.240.0050.00216.50
7.4.230.0030.00316.30
7.4.220.0090.00916.68
7.4.210.0080.00516.49
7.4.200.0000.00816.58
7.4.190.0030.00316.40
7.4.160.0090.00616.78
7.4.150.0120.00617.40
7.4.140.0060.01117.86
7.4.130.0130.00516.57
7.4.120.0140.00816.57
7.4.110.0100.00616.55
7.4.100.0070.01116.36
7.4.90.0090.00916.41
7.4.80.0090.00919.39
7.4.70.0100.01016.58
7.4.60.0080.01216.57
7.4.50.0060.00316.48
7.4.40.0040.01222.77
7.4.30.0060.01516.39
7.4.00.0030.01315.05
7.3.330.0030.00313.29
7.3.320.0000.00513.29
7.3.310.0030.00316.46
7.3.300.0050.00316.42
7.3.290.0120.01116.44
7.3.280.0090.00716.41
7.3.270.0090.00917.40
7.3.260.0140.00316.43
7.3.250.0070.01116.54
7.3.240.0030.01316.48
7.3.230.0140.00716.50
7.3.210.0030.01716.39
7.3.200.0070.01419.39
7.3.190.0110.00516.64
7.3.180.0120.01416.44
7.3.170.0090.00916.37
7.3.160.0060.00916.50
7.3.120.0030.01014.93
7.2.330.0070.01116.79
7.2.320.0070.01416.42
7.2.310.0070.01016.45
7.2.300.0060.01016.43
7.2.290.0090.00616.46
7.1.70.0120.00517.14
7.1.60.0060.01619.82
7.1.50.0080.01116.79
7.1.00.0000.03722.45
7.0.200.0000.00716.85
7.0.140.0030.07321.96
7.0.60.0170.07319.87
7.0.50.0130.07317.84
7.0.40.0070.04020.11
7.0.30.0270.04320.25
7.0.20.0370.04320.06
7.0.10.0200.04720.09
7.0.00.0070.04320.07
5.6.280.0070.07021.07
5.6.210.0070.08720.51
5.6.200.0030.05018.22
5.6.190.0030.04720.57
5.6.180.0470.05320.46
5.6.170.0430.08020.50
5.6.160.0030.09020.37
5.6.150.0100.07718.14
5.6.140.0070.07318.18
5.6.130.0100.04718.14
5.6.120.0030.07321.13
5.6.110.0030.07021.14
5.6.100.0070.08020.89
5.6.90.0100.06320.89
5.6.80.0130.07020.52
5.5.350.0130.06720.40
5.5.340.0130.04318.09
5.5.330.0070.04020.42
5.5.320.0170.05020.32
5.5.310.0100.05020.27
5.5.300.0030.05017.99
5.5.290.0130.08018.03
5.5.280.0030.04320.67
5.5.270.0130.08020.79
5.5.260.0100.08320.80
5.5.250.0070.08720.70
5.5.240.0000.04020.16
5.4.450.0230.05719.36
5.4.440.0600.05319.45
5.4.430.0230.04719.30
5.4.420.1130.04719.46
5.4.410.0570.05019.28
5.4.400.2700.07318.84
5.4.390.1430.06018.70
5.4.380.0300.05318.61
5.4.370.0130.08018.80
5.4.360.0070.05718.70
5.4.350.0100.06318.73
5.4.340.0230.05318.46
5.4.320.0090.03412.51
5.4.310.0070.03612.50
5.4.300.0050.03712.51
5.4.290.0060.03712.50
5.4.280.0060.03612.40
5.4.270.0070.04712.40
5.4.260.0040.04812.40
5.4.250.0070.05718.95
5.4.240.0100.05718.65
5.4.230.0200.07018.99
5.4.220.0100.05318.83
5.4.210.0070.05318.74
5.4.200.0100.05018.65
5.4.190.0030.05718.79
5.4.180.0200.04018.75
5.4.170.0030.05718.91
5.4.160.0100.04718.96
5.4.150.0100.05018.97
5.4.140.0030.05316.41
5.4.130.0000.05316.60
5.4.120.0170.04316.59
5.4.110.0130.04716.60
5.4.100.0070.05016.54
5.4.90.0130.04016.53
5.4.80.0070.05016.52
5.4.70.0170.06316.39
5.4.60.0170.03716.30
5.4.50.0130.04016.52
5.4.40.0100.04716.50
5.4.30.0070.05016.37
5.4.20.0030.05016.49
5.4.10.0070.05716.62
5.4.00.0100.04715.87
5.3.290.0040.04012.80
5.3.280.0130.06014.58
5.3.270.0100.05014.70
5.3.260.0130.04714.70
5.3.250.0200.04014.68
5.3.240.0100.05014.69
5.3.230.0070.05014.43
5.3.220.0030.05314.66
5.3.210.0100.05014.59
5.3.200.0030.07314.70
5.3.190.0070.05014.48
5.3.180.0030.05314.56
5.3.170.0030.05714.63
5.3.160.0100.05014.73
5.3.150.0070.05014.59
5.3.140.0030.05314.56
5.3.130.0030.05314.55
5.3.120.0070.05314.54
5.3.110.0130.07014.77
5.3.100.0100.06014.03
5.3.90.0100.05314.10
5.3.80.0130.05713.94
5.3.70.0100.04714.18
5.3.60.0070.05314.08
5.3.50.0000.05314.16
5.3.40.0070.05313.92
5.3.30.0070.04713.91
5.3.20.0000.05313.76
5.3.10.0100.04713.73
5.3.00.0100.04713.73
5.2.170.0070.03711.36
5.2.160.0030.06011.14
5.2.150.0070.04011.14
5.2.140.0100.03710.96
5.2.130.0130.03010.93
5.2.120.0130.04711.18
5.2.110.0070.03711.10
5.2.100.0070.03711.18
5.2.90.0130.03011.10
5.2.80.0100.03311.18
5.2.70.0000.04711.18
5.2.60.0130.03311.21
5.2.50.0030.04311.02
5.2.40.0170.02710.97
5.2.30.0000.04711.06
5.2.20.0000.04710.96
5.2.10.0000.04310.81
5.2.00.0130.03310.80
5.1.60.0100.03310.07
5.1.50.0000.03710.20
5.1.40.0030.0379.90
5.1.30.0030.03310.33
5.1.20.0130.03710.25
5.1.10.0030.03310.02
5.1.00.0000.03710.22
5.0.50.0030.0408.61
5.0.40.0030.0278.41
5.0.30.0030.0408.23
5.0.20.0000.0338.27
5.0.10.0070.0238.14
5.0.00.0100.0378.21
4.4.90.0070.0177.32
4.4.80.0030.0207.26
4.4.70.0030.0237.15
4.4.60.0000.0237.14
4.4.50.0030.0207.14
4.4.40.0070.0277.14
4.4.30.0000.0237.11
4.4.20.0000.0337.05
4.4.10.0030.0207.05
4.4.00.0030.0437.05
4.3.110.0030.0307.04
4.3.100.0070.0176.99
4.3.90.0070.0176.95
4.3.80.0000.0436.90
4.3.70.0100.0176.87
4.3.60.0030.0206.87
4.3.50.0070.0176.84
4.3.40.0000.0336.84
4.3.30.0000.0206.84
4.3.20.0070.0176.84
4.3.10.0030.0206.84
4.3.00.0070.0207.63

preferences:
46.28 ms | 401 KiB | 5 Q