3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestOb { public function has() { $myclass = get_class($this); return (serialize($this) != serialize(new $myclass)); } } $d = new TestOb(); if ($d->has()) { echo "has"; exit; } echo "Doesn't has";

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.0140.00018.47
8.3.30.0090.00619.07
8.3.20.0080.00020.29
8.3.10.0080.00021.96
8.3.00.0040.00422.42
8.2.170.0110.01122.96
8.2.160.0070.00718.90
8.2.150.0050.00524.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0050.00317.50
8.2.110.0050.00322.25
8.2.100.0080.00419.33
8.2.90.0030.00519.15
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00717.93
8.2.50.0000.00818.07
8.2.40.0000.00818.03
8.2.30.0040.00417.88
8.2.20.0000.00817.57
8.2.10.0060.00319.28
8.2.00.0030.00617.68
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0090.00319.01
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.16
8.1.180.0040.00418.10
8.1.170.0000.00818.31
8.1.160.0000.00721.91
8.1.150.0040.00418.48
8.1.140.0000.00717.48
8.1.130.0000.00717.78
8.1.120.0000.00717.34
8.1.110.0040.00417.47
8.1.100.0040.00417.34
8.1.90.0040.00417.47
8.1.80.0070.00017.45
8.1.70.0030.00317.38
8.1.60.0080.00417.50
8.1.50.0030.00517.54
8.1.40.0030.00517.48
8.1.30.0000.00817.54
8.1.20.0080.00017.50
8.1.10.0030.00617.46
8.1.00.0000.00817.50
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0040.00418.38
8.0.270.0000.00717.24
8.0.260.0000.00716.85
8.0.250.0030.00316.79
8.0.240.0000.00716.82
8.0.230.0000.00716.95
8.0.220.0000.00716.86
8.0.210.0070.00016.71
8.0.200.0000.00616.95
8.0.190.0040.00416.77
8.0.180.0040.00416.86
8.0.170.0040.00416.73
8.0.160.0000.00716.85
8.0.150.0040.00416.82
8.0.140.0000.00716.68
8.0.130.0080.00013.25
8.0.120.0000.00716.79
8.0.110.0050.00316.81
8.0.100.0070.00016.63
8.0.90.0070.00016.78
8.0.80.0070.01716.79
8.0.70.0000.00716.70
8.0.60.0000.00716.71
8.0.50.0000.00716.70
8.0.30.0110.00817.16
8.0.20.0060.01517.40
8.0.10.0040.00417.13
8.0.00.0060.01316.74
7.4.330.0060.00015.02
7.4.320.0000.00616.60
7.4.300.0070.00016.44
7.4.290.0000.00716.52
7.4.280.0030.00316.49
7.4.270.0070.00016.49
7.4.260.0000.00716.57
7.4.250.0020.00516.46
7.4.240.0000.00716.58
7.4.230.0070.00016.70
7.4.220.0070.01016.43
7.4.210.0070.00916.67
7.4.200.0070.00016.50
7.4.190.0070.00016.73
7.4.160.0120.00416.32
7.4.150.0100.01017.40
7.4.140.0120.01017.86
7.4.130.0090.01016.48
7.4.120.0100.00716.52
7.4.110.0070.01916.46
7.4.100.0160.00316.59
7.4.90.0030.02016.54
7.4.80.0100.00719.39
7.4.70.0110.00616.70
7.4.60.0140.00316.43
7.4.50.0060.00316.37
7.4.40.0030.01322.77
7.4.30.0100.00616.43
7.4.10.0110.00715.10
7.4.00.0070.01014.98
7.3.330.0000.00513.14
7.3.320.0030.00213.37
7.3.310.0040.00416.21
7.3.300.0040.00416.36
7.3.290.0030.01016.32
7.3.280.0110.00516.38
7.3.270.0100.00717.40
7.3.260.0100.00716.36
7.3.250.0070.01416.30
7.3.240.0100.00616.52
7.3.230.0080.00916.48
7.3.210.0070.00916.34
7.3.200.0100.00719.39
7.3.190.0150.00716.45
7.3.180.0060.00916.11
7.3.170.0060.00916.32
7.3.160.0030.01216.59
7.3.130.0100.01015.02
7.3.120.0030.01114.95
7.3.110.0110.00714.81
7.3.100.0120.00314.82
7.3.90.0040.01214.80
7.3.80.0120.00014.93
7.3.70.0090.00314.98
7.3.60.0070.00714.75
7.3.50.0110.00315.04
7.3.40.0030.00614.76
7.3.30.0060.01014.40
7.3.20.0070.00716.77
7.3.10.0050.00916.63
7.3.00.0100.00216.45
7.2.330.0140.00316.63
7.2.320.0090.00916.80
7.2.310.0110.01116.48
7.2.300.0140.00816.69
7.2.290.0060.01616.53
7.2.260.0060.01314.91
7.2.250.0040.01515.14
7.2.240.0090.00615.21
7.2.230.0090.00315.18
7.2.220.0060.01014.91
7.2.210.0040.01214.54
7.2.200.0130.00314.80
7.2.190.0100.00315.12
7.2.180.0090.00914.90
7.2.170.0040.01114.91
7.2.160.0100.01014.91
7.2.150.0060.00916.96
7.2.140.0030.01316.65
7.2.130.0100.00616.80
7.2.120.0090.00616.75
7.2.110.0080.00516.76
7.2.100.0080.00416.82
7.2.90.0030.01316.68
7.2.80.0050.00816.85
7.2.70.0070.00516.82
7.2.60.0050.00916.89
7.2.50.0070.00616.97
7.2.40.0040.00816.83
7.2.30.0060.00916.81
7.2.20.0050.00716.90
7.2.10.0070.00816.83
7.2.00.0050.00816.86
7.1.330.0000.01515.68
7.1.320.0030.00715.98
7.1.310.0100.00715.75
7.1.300.0040.00815.93
7.1.290.0030.01315.88
7.1.280.0000.01415.74
7.1.270.0070.00715.84
7.1.260.0070.00315.85
7.1.250.0050.00915.54
7.1.240.0030.00715.62
7.1.230.0060.00715.89
7.1.220.0080.00615.61
7.1.210.0070.00515.77
7.1.200.0070.00615.72
7.1.190.0050.01015.93
7.1.180.0080.00715.71
7.1.170.0070.00615.65
7.1.160.0050.00615.78
7.1.150.0090.00516.01
7.1.140.0060.00415.89
7.1.130.0070.00715.76
7.1.120.0060.00615.63
7.1.110.0050.00715.97
7.1.100.0120.00215.87
7.1.90.0050.00815.83
7.1.80.0060.00815.76
7.1.70.0040.00616.25
7.1.60.0070.00817.19
7.1.50.0070.01016.03
7.1.40.0050.00515.89
7.1.30.0050.00815.69
7.1.20.0050.01015.88
7.1.10.0090.00615.63
7.1.00.0060.02818.04
7.0.330.0070.00715.36
7.0.320.0060.00715.40
7.0.310.0110.00315.38
7.0.300.0080.00215.45
7.0.290.0050.00515.20
7.0.280.0030.00615.47
7.0.270.0030.00815.27
7.0.260.0050.00715.47
7.0.250.0050.00815.51
7.0.240.0080.00715.39
7.0.230.0110.00215.30
7.0.220.0070.00215.57
7.0.210.0030.00915.40
7.0.200.0070.00615.81
7.0.190.0050.00815.33
7.0.180.0000.01315.29
7.0.170.0030.01215.44
7.0.160.0050.00515.45
7.0.150.0050.00715.39
7.0.140.0020.03317.67
7.0.130.0050.00315.46
7.0.120.0050.00915.26
7.0.110.0020.00915.53
7.0.100.0060.01816.90
7.0.90.0050.02216.93
7.0.80.0050.02016.86
7.0.70.0030.01817.03
7.0.60.0140.01516.92
7.0.50.0070.01517.05
7.0.40.0040.01815.68
7.0.30.0050.01615.66
7.0.20.0050.01815.67
7.0.10.0050.01915.63
7.0.00.0060.01715.53
5.6.400.0030.01014.10
5.6.390.0040.01114.42
5.6.380.0060.00614.24
5.6.370.0090.00514.31
5.6.360.0050.00614.26
5.6.350.0080.00514.51
5.6.340.0050.00714.46
5.6.330.0060.00714.50
5.6.320.0050.00914.37
5.6.310.0100.00214.43
5.6.300.0020.01314.52
5.6.290.0030.00514.21
5.6.280.0040.02916.71
5.6.270.0070.00514.17
5.6.260.0080.00514.39
5.6.250.0080.02116.52
5.6.240.0090.01816.54
5.6.230.0060.01816.43
5.6.220.0060.01816.48
5.6.210.0040.02116.46
5.6.200.0040.01916.53
5.6.190.0050.02116.61
5.6.180.0020.01916.55
5.6.170.0060.01916.52
5.6.160.0070.01516.60
5.6.150.0090.01316.57
5.6.140.0080.01416.52
5.6.130.0050.01816.57
5.6.120.0020.02216.62
5.6.110.0070.01416.63
5.6.100.0070.01516.59
5.6.90.0070.01716.58
5.6.80.0050.01716.32
5.6.70.0070.01416.21
5.6.60.0040.01616.32
5.6.50.0060.01516.19
5.6.40.0040.01716.32
5.6.30.0070.01416.44
5.6.20.0020.01816.28
5.6.10.0080.01716.49
5.6.00.0100.01216.20
5.5.380.0040.02015.29
5.5.370.0080.01815.39
5.5.360.0080.02015.36
5.5.350.0050.01815.33
5.5.340.0020.02015.40
5.5.330.0090.01515.52
5.5.320.0070.01615.47
5.5.310.0080.01215.50
5.5.300.0040.01815.59
5.5.290.0010.02715.26
5.5.280.0050.01915.47
5.5.270.0100.01515.52
5.5.260.0030.02015.52
5.5.250.0060.01815.31
5.5.240.0040.01515.19
5.5.230.0020.02215.17
5.5.220.0040.01415.24
5.5.210.0060.01315.17
5.5.200.0050.01615.26
5.5.190.0050.01415.19
5.5.180.0060.01415.06
5.5.170.0050.00514.40
5.5.160.0090.01115.08
5.5.150.0040.01415.26
5.5.140.0060.01415.22
5.5.130.0020.01815.25
5.5.120.0030.01915.17
5.5.110.0030.01615.15
5.5.100.0030.01815.15
5.5.90.0020.01715.15
5.5.80.0040.01515.18
5.5.70.0060.01415.10
5.5.60.0070.02915.08
5.5.50.0050.02115.22
5.5.40.0050.02815.14
5.5.30.0020.01915.10
5.5.20.0040.02315.09
5.5.10.0090.01715.04
5.5.00.0030.02015.04
5.4.450.0020.01614.36
5.4.440.0020.01814.40
5.4.430.0040.02114.37
5.4.420.0020.01714.42
5.4.410.0040.01814.28
5.4.400.0030.01614.30
5.4.390.0060.01314.12
5.4.380.0080.01114.14
5.4.370.0020.01714.14
5.4.360.0020.01714.29
5.4.350.0020.01614.16
5.4.340.0050.01314.27
5.4.330.0020.00811.90
5.4.320.0010.01714.13
5.4.310.0040.01414.31
5.4.300.0040.01814.20
5.4.290.0020.01714.23
5.4.280.0080.01114.23
5.4.270.0030.01414.16
5.4.260.0040.01414.12
5.4.250.0030.01514.27
5.4.240.0030.01514.20
5.4.230.0020.01714.18
5.4.220.0020.01914.23
5.4.210.0090.01914.22
5.4.200.0030.01914.19
5.4.190.0060.01514.20
5.4.180.0050.01414.17
5.4.170.0030.02214.24
5.4.160.0020.02314.25
5.4.150.0020.01814.09
5.4.140.0060.01313.22
5.4.130.0060.01813.24
5.4.120.0050.01513.35
5.4.110.0010.01713.37
5.4.100.0020.02013.18
5.4.90.0100.01913.25
5.4.80.0030.01913.22
5.4.70.0030.02413.36
5.4.60.0070.02313.27
5.4.50.0050.01513.29
5.4.40.0040.01913.39
5.4.30.0040.02113.33
5.4.20.0040.01713.34
5.4.10.0030.01913.39
5.4.00.0030.01812.98
5.3.290.0060.01312.64
5.3.280.0060.01412.55
5.3.270.0060.01812.57
5.3.260.0030.01512.49
5.3.250.0070.01812.61
5.3.240.0030.01612.50
5.3.230.0040.01912.57
5.3.220.0060.01712.56
5.3.210.0030.02412.46
5.3.200.0060.01812.41
5.3.190.0020.01712.45
5.3.180.0040.01312.57
5.3.170.0040.01112.54
5.3.160.0060.02612.63
5.3.150.0020.01912.56
5.3.140.0050.02812.61
5.3.130.0040.01512.49
5.3.120.0060.02312.54
5.3.110.0030.02012.56
5.3.100.0060.02212.32
5.3.90.0030.01612.42
5.3.80.0040.01312.27
5.3.70.0020.01712.33
5.3.60.0030.01812.39
5.3.50.0050.01412.39
5.3.40.0040.01612.38
5.3.30.0030.02712.34
5.3.20.0030.01712.19
5.3.10.0020.02212.18
5.3.00.0020.02112.18
5.2.170.0060.01510.38
5.2.160.0010.01810.41
5.2.150.0020.02010.32
5.2.140.0000.02510.31
5.2.130.0040.01510.19
5.2.120.0020.03210.30
5.2.110.0030.02110.42
5.2.100.0010.02010.29
5.2.90.0060.02910.28
5.2.80.0060.01810.07
5.2.70.0030.02110.17
5.2.60.0060.01410.25
5.2.50.0060.02710.26
5.2.40.0010.02110.32
5.2.30.0030.01710.08
5.2.20.0020.02810.02
5.2.10.0000.02110.03
5.2.00.0030.0189.77
5.1.60.0020.0199.22
5.1.50.0050.0179.20
5.1.40.0000.0289.18
5.1.30.0020.0229.62
5.1.20.0000.0179.45
5.1.10.0040.0169.36
5.1.00.0020.0329.28
5.0.50.0020.0188.67
5.0.40.0050.0128.67
5.0.30.0040.0178.67
5.0.20.0050.0198.67
5.0.10.0030.0228.67
5.0.00.0050.0158.67
4.4.90.0030.0088.67
4.4.80.0020.0188.67
4.4.70.0030.0088.67
4.4.60.0000.0118.67
4.4.50.0000.0118.67
4.4.40.0050.0218.67
4.4.30.0020.0098.67
4.4.20.0020.0138.67
4.4.10.0000.0138.67
4.4.00.0030.0128.67
4.3.110.0030.0168.67
4.3.100.0020.0108.67
4.3.90.0020.0138.67
4.3.80.0010.0148.67
4.3.70.0020.0168.67
4.3.60.0020.0138.67
4.3.50.0030.0088.67
4.3.40.0030.0228.67
4.3.30.0000.0238.67
4.3.20.0010.0108.67
4.3.10.0030.0108.67
4.3.00.0040.0108.67

preferences:
42.9 ms | 400 KiB | 5 Q