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); 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.0040.01518.31
8.3.50.0080.01021.26
8.3.40.0000.01418.67
8.3.30.0090.00618.91
8.3.20.0080.00820.16
8.3.10.0040.00421.84
8.3.00.0080.00022.34
8.2.180.0070.00716.38
8.2.170.0090.00622.96
8.2.160.0140.00019.07
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.01126.16
8.2.120.0040.00419.66
8.2.110.0060.00322.22
8.2.100.0070.00419.34
8.2.90.0000.00719.09
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0060.00317.93
8.2.50.0080.00018.07
8.2.40.0040.00418.34
8.2.30.0050.00218.11
8.2.20.0000.00717.79
8.2.10.0000.00717.67
8.2.00.0040.00417.68
8.1.280.0090.00625.92
8.1.270.0080.00020.31
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0120.00018.92
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.38
8.1.190.0040.00417.51
8.1.180.0040.00418.69
8.1.170.0000.00818.64
8.1.160.0000.00722.11
8.1.150.0040.00418.64
8.1.140.0040.00417.36
8.1.130.0030.00317.69
8.1.120.0030.00317.35
8.1.110.0050.00317.35
8.1.100.0050.00217.48
8.1.90.0040.00417.44
8.1.80.0030.00317.43
8.1.70.0000.00717.43
8.1.60.0040.00417.46
8.1.50.0050.00317.54
8.1.40.0050.00517.38
8.1.30.0000.00817.51
8.1.20.0080.00017.51
8.1.10.0000.00717.45
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0000.00718.55
8.0.270.0000.00717.18
8.0.260.0030.00316.87
8.0.250.0070.00016.99
8.0.240.0040.00416.86
8.0.230.0040.00416.89
8.0.220.0040.00416.83
8.0.210.0000.00716.90
8.0.200.0040.00416.83
8.0.190.0070.00016.91
8.0.180.0040.00416.91
8.0.170.0040.00416.83
8.0.160.0000.00716.79
8.0.150.0000.00716.73
8.0.140.0000.00716.88
8.0.130.0000.00513.27
8.0.120.0080.00016.86
8.0.110.0000.00716.79
8.0.100.0070.00016.99
8.0.90.0000.00717.00
8.0.80.0130.00916.83
8.0.70.0070.00016.76
8.0.60.0000.00916.84
8.0.50.0050.00316.94
8.0.30.0110.00817.07
8.0.20.0150.00517.40
8.0.10.0040.00416.97
8.0.00.0090.00916.69
7.4.330.0020.00215.00
7.4.320.0030.00316.58
7.4.300.0030.00316.50
7.4.290.0040.00416.59
7.4.280.0030.00316.41
7.4.270.0000.00816.61
7.4.260.0070.00316.59
7.4.250.0040.00416.56
7.4.240.0020.00516.42
7.4.230.0030.00316.48
7.4.220.0090.00916.55
7.4.210.0070.00816.59
7.4.200.0070.00016.33
7.4.190.0000.00716.66
7.4.160.0000.01616.29
7.4.150.0130.01317.40
7.4.140.0140.00717.86
7.4.130.0090.00916.48
7.4.120.0090.00916.38
7.4.110.0100.01416.52
7.4.100.0070.01116.42
7.4.90.0070.01716.23
7.4.80.0080.00819.39
7.4.70.0190.00416.48
7.4.60.0040.01316.46
7.4.50.0000.00816.29
7.4.40.0090.00322.77
7.4.30.0150.00916.35
7.4.00.0030.01314.92
7.3.330.0000.00513.22
7.3.320.0020.00213.30
7.3.310.0030.00316.37
7.3.300.0070.00016.23
7.3.290.0090.01016.32
7.3.280.0080.00916.39
7.3.270.0030.01417.40
7.3.260.0060.01116.34
7.3.250.0150.00516.63
7.3.240.0100.00616.36
7.3.230.0130.00916.39
7.3.210.0100.00716.35
7.3.200.0180.00419.39
7.3.190.0130.00316.24
7.3.180.0040.01316.60
7.3.170.0110.00616.68
7.3.160.0090.00616.58
7.3.120.0040.00814.83
7.3.00.0070.00716.64
7.2.330.0100.00716.30
7.2.320.0090.01316.68
7.2.310.0100.01016.66
7.2.300.0030.01316.43
7.2.290.0120.00316.29
7.2.130.0030.00716.79
7.2.120.0050.00616.74
7.2.110.0520.00316.55
7.2.100.0110.00516.75
7.2.90.0090.00716.66
7.2.80.0110.00616.55
7.2.70.0070.00816.99
7.2.60.0090.00516.84
7.2.50.0080.00816.80
7.2.40.0130.00216.72
7.2.30.0120.00616.72
7.2.20.0060.00816.72
7.2.10.0090.00416.75
7.2.00.0040.01017.65
7.1.250.0070.00315.81
7.1.240.0120.00215.74
7.1.230.0090.00415.66
7.1.220.0050.00815.45
7.1.210.0060.00615.65
7.1.200.0090.00415.70
7.1.190.0090.00915.65
7.1.180.0080.00815.57
7.1.170.0090.00515.66
7.1.160.0060.00815.56
7.1.150.0060.00715.87
7.1.140.0100.00315.71
7.1.130.0090.00315.58
7.1.120.0080.00615.67
7.1.110.0100.00615.56
7.1.100.0070.00616.52
7.1.90.0070.00715.76
7.1.80.0090.00715.66
7.1.70.0100.00516.24
7.1.60.0070.00616.16
7.1.50.0110.00616.08
7.1.40.0090.00515.72
7.1.30.0100.00315.45
7.1.20.0100.00315.83
7.1.10.0110.00515.75
7.1.00.0040.01817.93
7.0.330.0070.00015.02
7.0.320.0100.00115.13
7.0.310.0070.00815.25
7.0.300.0100.00415.21
7.0.290.0060.00715.08
7.0.280.0080.00515.26
7.0.270.0060.00815.39
7.0.260.0080.00715.35
7.0.250.0100.00315.29
7.0.240.0150.00315.12
7.0.230.0080.00815.18
7.0.220.0070.01015.06
7.0.210.0080.00715.47
7.0.200.0070.00815.82
7.0.190.0100.00715.36
7.0.180.0120.00315.34
7.0.170.0060.00715.45
7.0.160.0080.00315.42
7.0.150.0090.00315.24
7.0.140.0070.02817.36
7.0.130.0080.00415.16
7.0.120.0080.00615.33
7.0.110.0100.00515.31
7.0.100.0100.00415.26
7.0.90.0060.00815.28
7.0.80.0090.00515.14
7.0.70.0070.00715.40
7.0.60.0050.01916.68
7.0.50.0080.03116.28
7.0.40.0080.02215.67
7.0.30.0140.02515.59
7.0.20.0090.01915.72
7.0.10.0070.02415.69
7.0.00.0090.03015.67
5.6.380.0080.00814.29
5.6.370.0090.00814.52
5.6.360.0030.00914.37
5.6.350.0070.00814.25
5.6.340.0100.00414.37
5.6.330.0060.00714.36
5.6.320.0050.00914.43
5.6.310.0060.00814.36
5.6.300.0080.00314.44
5.6.290.0030.01114.37
5.6.280.0060.02816.43
5.6.270.0090.00314.32
5.6.260.0030.00914.19
5.6.250.0110.00314.29
5.6.240.0070.00814.42
5.6.230.0110.00214.51
5.6.220.0120.00314.40
5.6.210.0100.01816.35
5.6.200.0090.02415.58
5.6.190.0060.02116.35
5.6.180.0210.01616.44
5.6.170.0120.02016.30
5.6.160.0070.02316.27
5.6.150.0080.01615.57
5.6.140.0080.01715.70
5.6.130.0080.01515.60
5.6.120.0070.02816.46
5.6.110.0140.03016.53
5.6.100.0090.03016.52
5.6.90.0050.02516.38
5.6.80.0110.02716.32
5.6.70.0120.00514.35
5.6.60.0120.00614.38
5.6.50.0100.00614.37
5.6.40.0120.00614.33
5.6.30.0060.00914.14
5.6.20.0090.00314.34
5.6.10.0120.00414.21
5.6.00.0030.01014.22
5.5.380.0060.00611.20
5.5.370.0090.00111.19
5.5.360.0040.00511.32
5.5.350.0050.01414.23
5.5.340.0080.02913.55
5.5.330.0080.01914.09
5.5.320.0100.02014.27
5.5.310.0180.02314.01
5.5.300.0050.03313.47
5.5.290.0080.02813.43
5.5.280.0030.02714.34
5.5.270.0050.02214.44
5.5.260.0050.02614.25
5.5.250.0100.02414.21
5.5.240.0140.02914.05
5.5.230.0050.00611.04
5.5.220.0060.00710.97
5.5.210.0040.00811.02
5.5.200.0070.00711.06
5.5.190.0050.00510.99
5.5.180.0080.00411.01
5.5.170.0090.00312.58
5.5.160.0090.00111.07
5.5.150.0030.00811.00
5.5.140.0080.00211.04
5.5.130.0060.00311.11
5.5.120.0060.00411.20
5.5.110.0070.00411.04
5.5.100.0070.00311.11
5.5.90.0040.00610.87
5.5.80.0050.00610.88
5.5.70.0070.00211.01
5.5.60.0110.00211.03
5.5.50.0030.01011.15
5.5.40.0070.00611.10
5.5.30.0040.00611.21
5.5.20.0080.00411.09
5.5.10.0060.00611.13
5.5.00.0060.00510.99
5.4.450.0320.02513.97
5.4.440.0150.02113.99
5.4.430.0100.01813.84
5.4.420.0070.02313.93
5.4.410.0030.02413.78
5.4.400.0090.02213.69
5.4.390.0070.02213.79
5.4.380.0080.02213.55
5.4.370.0050.01713.68
5.4.360.0110.01313.44
5.4.350.0050.01711.33
5.4.340.0080.01411.29
5.4.330.0030.01010.90
5.4.320.0080.01511.50
5.4.310.0060.01611.44
5.4.300.0090.01511.46
5.4.290.0080.01411.48
5.4.280.0030.01911.46
5.4.270.0060.01511.46
5.4.260.0060.01711.51
5.4.250.0090.03113.47
5.4.240.0060.02913.73
5.4.230.0040.02313.57
5.4.220.0070.02213.64
5.4.210.0030.02513.54
5.4.200.0090.01813.56
5.4.190.0080.02013.52
5.4.180.0070.02313.43
5.4.170.0090.02913.62
5.4.160.0080.02113.63
5.4.150.0090.02713.71
5.4.140.0100.02312.85
5.4.130.0040.03012.82
5.4.120.0070.02112.83
5.4.110.0110.02512.89
5.4.100.0130.02112.94
5.4.90.0080.01712.95
5.4.80.0060.01812.92
5.4.70.0130.01212.70
5.4.60.0080.01912.76
5.4.50.0030.02312.76
5.4.40.0020.02412.71
5.4.30.0080.02312.87
5.4.20.0040.02312.80
5.4.10.0050.02012.76
5.4.00.0040.02412.65
5.3.290.0030.01911.46
5.3.280.0040.02012.07
5.3.270.0070.02012.07
5.3.260.0060.02512.04
5.3.250.0060.02212.01
5.3.240.0130.02112.01
5.3.230.0070.02212.10
5.3.220.0090.02011.93
5.3.210.0100.02511.96
5.3.200.0080.02411.93
5.3.190.0050.01911.99
5.3.180.0060.01812.06
5.3.170.0060.01811.95
5.3.160.0080.01911.99
5.3.150.0060.02012.05
5.3.140.0040.01912.00
5.3.130.0040.02311.81
5.3.120.0040.02411.93
5.3.110.0100.01711.91
5.3.100.0070.01911.85
5.3.90.0070.02411.78
5.3.80.0080.01911.77
5.3.70.0070.01911.75
5.3.60.0070.02111.79
5.3.50.0070.02011.82
5.3.40.0070.01911.78
5.3.30.0050.02011.76
5.3.20.0070.02311.71
5.3.10.0030.02011.62
5.3.00.0060.01911.51
5.2.170.0060.01510.65
5.2.160.0040.01610.62
5.2.150.0060.01610.62
5.2.140.0050.01710.61
5.2.130.0060.01710.67
5.2.120.0050.01510.66
5.2.110.0050.01510.64
5.2.100.0070.01310.61
5.2.90.0080.01210.58
5.2.80.0070.01610.60
5.2.70.0040.01510.60
5.2.60.0080.01310.65
5.2.50.0050.01610.61
5.2.40.0070.01410.60
5.2.30.0050.01510.59
5.2.20.0030.01710.60
5.2.10.0030.01710.51
5.2.00.0020.01810.51
5.1.60.0000.01710.24
5.1.50.0060.01110.25
5.1.40.0020.01510.27
5.1.30.0050.01910.35
5.1.20.0030.01610.38
5.1.10.0040.01310.25
5.1.00.0050.01310.33
5.0.50.0020.0149.76
5.0.40.0040.0119.76
5.0.30.0040.0169.68
5.0.20.0070.0089.66
5.0.10.0070.0089.62
5.0.00.0060.0139.66
4.4.90.0060.0069.35
4.4.80.0020.0109.35
4.4.70.0010.0119.35
4.4.60.0070.0109.35
4.4.50.0030.0099.35
4.4.40.0010.0159.35
4.4.30.0050.0079.35
4.4.20.0020.0099.35
4.4.10.0010.0119.35
4.4.00.0010.0159.35
4.3.110.0010.0109.35
4.3.100.0030.0089.35
4.3.90.0020.0099.35
4.3.80.0020.0139.35
4.3.70.0020.0109.35
4.3.60.0030.0079.35
4.3.50.0010.0119.35
4.3.40.0030.0129.35
4.3.30.0010.0109.35
4.3.20.0010.0119.35
4.3.10.0010.0119.35
4.3.00.0060.0089.29

preferences:
41.72 ms | 401 KiB | 5 Q