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(); $d->test = "derp"; 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.60.0100.00718.43
8.3.50.0100.00817.51
8.3.40.0070.00718.97
8.3.30.0150.00018.64
8.3.20.0040.00418.73
8.3.10.0040.00420.40
8.3.00.0040.01119.13
8.2.180.0100.01316.50
8.2.170.0070.01322.96
8.2.160.0070.00721.05
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.58
8.2.110.0070.00320.77
8.2.100.0040.00817.78
8.2.90.0080.00019.28
8.2.80.0040.00419.34
8.2.70.0060.00317.63
8.2.60.0030.00617.68
8.2.50.0000.00918.07
8.2.40.0050.00218.03
8.2.30.0030.00618.10
8.2.20.0020.00517.70
8.2.10.0000.00817.56
8.2.00.0040.00417.54
8.1.280.0040.01125.92
8.1.270.0070.00024.66
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00317.48
8.1.230.0080.00317.64
8.1.220.0040.00418.77
8.1.210.0000.00819.01
8.1.200.0060.00317.23
8.1.190.0020.00517.41
8.1.180.0100.00018.10
8.1.170.0000.00718.76
8.1.160.0040.00418.87
8.1.150.0000.00718.68
8.1.140.0040.00417.43
8.1.130.0030.00317.69
8.1.120.0030.00417.49
8.1.110.0000.00817.47
8.1.100.0040.00417.52
8.1.90.0050.00317.44
8.1.80.0040.00417.39
8.1.70.0000.00717.45
8.1.60.0060.00317.50
8.1.50.0040.00417.36
8.1.40.0040.00417.41
8.1.30.0040.00417.55
8.1.20.0050.00317.54
8.1.10.0020.00517.56
8.1.00.0030.00717.36
8.0.300.0040.00419.82
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0070.00017.16
8.0.260.0030.00316.87
8.0.250.0030.00616.85
8.0.240.0000.00717.01
8.0.230.0070.00016.93
8.0.220.0000.00716.88
8.0.210.0030.00316.75
8.0.200.0030.00316.90
8.0.190.0000.00816.93
8.0.180.0000.00716.82
8.0.170.0000.01016.92
8.0.160.0000.00716.77
8.0.150.0030.00616.87
8.0.140.0000.00816.84
8.0.130.0000.00613.27
8.0.120.0040.00416.85
8.0.110.0070.00016.80
8.0.100.0000.00716.94
8.0.90.0040.00416.87
8.0.80.0070.00716.83
8.0.70.0000.00716.73
8.0.60.0000.00716.97
8.0.50.0040.00416.84
8.0.30.0130.00617.21
8.0.20.0170.00317.23
8.0.10.0000.00716.90
8.0.00.0110.00816.61
7.4.330.0000.00512.88
7.4.320.0030.00316.57
7.4.300.0000.00616.35
7.4.290.0030.00616.42
7.4.280.0030.00616.56
7.4.270.0070.00016.52
7.4.260.0000.00513.15
7.4.250.0080.00016.47
7.4.240.0050.00216.46
7.4.230.0000.00716.33
7.4.220.0120.00916.46
7.4.210.0060.01016.56
7.4.200.0000.00716.49
7.4.190.0030.00316.39
7.4.160.0080.01216.43
7.4.150.0150.00916.58
7.4.140.0110.00716.46
7.4.130.0120.00716.71
7.4.120.0120.00516.45
7.4.110.0130.00316.48
7.4.100.0130.00716.34
7.4.90.0070.01316.52
7.4.80.0130.00319.39
7.4.70.0060.01116.60
7.4.60.0090.00616.66
7.4.50.0040.00816.55
7.4.40.0040.01216.56
7.4.30.0060.01016.65
7.4.00.0060.00914.86
7.3.330.0000.00813.45
7.3.320.0030.00313.28
7.3.310.0050.00216.41
7.3.300.0030.00316.29
7.3.290.0070.01016.41
7.3.280.0130.00816.40
7.3.270.0150.00316.42
7.3.260.0090.00916.59
7.3.250.0120.00516.49
7.3.240.0060.01516.48
7.3.230.0180.00716.55
7.3.210.0090.00916.43
7.3.200.0030.01216.61
7.3.190.0160.00716.57
7.3.180.0080.00816.40
7.3.170.0030.01316.50
7.3.160.0140.00316.47
7.3.120.0090.00615.03
7.2.330.0100.00716.49
7.2.320.0090.00916.57
7.2.310.0100.01316.66
7.2.300.0170.00516.66
7.2.290.0060.01016.68
7.2.60.0060.00616.93
7.2.00.0090.00619.00
7.1.200.0060.00615.82
7.1.100.0040.00418.20
7.1.70.0040.01217.33
7.1.60.0130.01019.40
7.1.50.0040.00716.84
7.1.00.0100.07022.52
7.0.200.0030.00516.75
7.0.140.0030.06722.05
7.0.120.0070.07022.06
7.0.60.0100.08019.93
7.0.50.0170.05017.97
7.0.40.0000.05320.11
7.0.30.0230.08320.07
7.0.20.0200.06320.19
7.0.10.0270.07020.24
7.0.00.0100.07720.09
5.6.280.0030.07321.12
5.6.210.0070.03720.51
5.6.200.0030.08718.16
5.6.190.0100.08020.63
5.6.180.0330.05020.52
5.6.170.0330.07320.48
5.6.160.0200.07020.54
5.6.150.0000.09018.20
5.6.140.0070.07318.14
5.6.130.0030.04018.14
5.6.120.0030.04721.02
5.6.110.0000.04721.02
5.6.100.0100.06720.96
5.6.90.0000.05321.04
5.6.80.0070.07020.35
5.6.70.0100.03320.43
5.5.350.0400.05720.49
5.5.340.0030.08317.97
5.5.330.0070.06320.40
5.5.320.0100.04020.15
5.5.310.0200.05320.33
5.5.300.0000.04317.97
5.5.290.0070.04017.96
5.5.280.0070.04320.76
5.5.270.0100.05020.77
5.5.260.0070.04320.79
5.5.250.0070.07020.54
5.5.240.0030.04020.27
5.4.450.0230.03719.39
5.4.440.0230.07019.47
5.4.430.0270.07719.55
5.4.420.0300.07019.57
5.4.410.0200.05319.27
5.4.400.0330.05719.07
5.4.390.0330.06718.95
5.4.380.0300.05718.97
5.4.370.0270.07319.20
5.4.360.0230.05719.20
5.4.350.0370.06319.09
5.4.340.0330.03719.09
5.4.320.0330.04319.15
5.4.310.0370.06719.25
5.4.300.0230.05019.20
5.4.290.0200.05319.24
5.4.280.0230.07318.85
5.4.270.0230.03718.95
5.4.260.0200.04319.23
5.4.250.0230.03719.08
5.4.240.0200.04318.94
5.4.230.0270.07018.86
5.4.220.0400.05719.22
5.4.210.0300.03318.97
5.4.200.0230.05018.84
5.4.190.0300.07319.14
5.4.180.0300.06719.21
5.4.170.0330.06319.30
5.4.160.0200.04019.13
5.4.150.0100.05019.11
5.4.140.0430.06016.37
5.4.130.0270.05016.34
5.4.120.0230.05316.38
5.4.110.0230.03716.19
5.4.100.0370.05316.56
5.4.90.0330.04316.40
5.4.80.0300.06016.70
5.4.70.0300.04316.54
5.4.60.0300.06016.53
5.4.50.0400.03316.38
5.4.40.0270.04316.33
5.4.30.0270.04016.24
5.4.20.0200.04316.25
5.4.10.0270.06716.43
5.4.00.0200.05316.11
5.3.290.0300.06714.67
5.3.280.0200.05014.60
5.3.270.0270.04314.60
5.3.260.0200.04014.59
5.3.250.0300.06714.72
5.3.240.0330.06314.82
5.3.230.0300.05714.52
5.3.220.0270.05014.58
5.3.210.0230.03714.49
5.3.200.0330.06014.61
5.3.190.0270.04314.57
5.3.180.0270.04014.54
5.3.170.0330.07014.72
5.3.160.0230.04714.78
5.3.150.0370.06314.54
5.3.140.0230.03314.50
5.3.130.0170.06314.54
5.3.120.0170.05314.62
5.3.110.0270.07014.45
5.3.100.0270.06714.00
5.3.90.0230.04014.23
5.3.80.0200.06014.02
5.3.70.0170.04714.14
5.3.60.0300.06714.22
5.3.50.0270.07014.11
5.3.40.0270.04013.88
5.3.30.0230.04713.98
5.3.20.0230.07013.91
5.3.10.0230.06713.74
5.3.00.0200.05313.57
5.2.170.0230.03312.11
5.2.160.0200.03712.11
5.2.150.0230.03712.11
5.2.140.0230.05312.11
5.2.130.0200.05712.11
5.2.120.0170.03312.11
5.2.110.0130.05012.11
5.2.100.0170.05712.11
5.2.90.0230.05012.11
5.2.80.0170.03712.11
5.2.70.0170.04012.11
5.2.60.0200.04312.11
5.2.50.0230.05712.11
5.2.40.0200.04312.11
5.2.30.0230.05012.11
5.2.20.0170.03712.11
5.2.10.0270.05312.11
5.2.00.0200.04012.11
5.1.60.0300.03012.11
5.1.50.0200.03712.11
5.1.40.0130.03012.11
5.1.30.0300.02712.11
5.1.20.0200.02312.11
5.1.10.0200.02712.11
5.1.00.0270.03712.11
5.0.50.0100.03712.11
5.0.40.0170.02312.11
5.0.30.0130.05012.11
5.0.20.0170.03312.11
5.0.10.0100.02312.11
5.0.00.0100.03012.11
4.4.90.0130.03012.11
4.4.80.0100.02712.11
4.4.70.0100.01312.11
4.4.60.0070.02312.11
4.4.50.0070.02012.11
4.4.40.0070.05012.11
4.4.30.0100.01712.11
4.4.20.0070.02012.11
4.4.10.0070.02712.11
4.4.00.0070.03712.11
4.3.110.0130.01712.11
4.3.100.0070.02312.11
4.3.90.0100.02312.11
4.3.80.0070.05312.11
4.3.70.0100.03312.11
4.3.60.0130.02012.11
4.3.50.0100.03712.11
4.3.40.0100.04312.11
4.3.30.0030.02312.11
4.3.20.0070.01712.11
4.3.10.0070.03312.11
4.3.00.0070.03312.11

preferences:
55.32 ms | 401 KiB | 5 Q