3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestOb { public function has() { $myclass = get_class($this); if (serialize($this) == serialize(new $myclass)) { echo "SAME"; exit; } print_R($myclass); } } $d = new TestOb(); $d->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.0120.00616.63
8.3.50.0150.00517.47
8.3.40.0190.00318.84
8.3.30.0030.01318.63
8.3.20.0110.00418.81
8.3.10.0040.00420.43
8.3.00.0040.00419.26
8.2.180.0110.00416.35
8.2.170.0140.00022.96
8.2.160.0110.00419.26
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0090.00019.15
8.2.110.0030.00721.04
8.2.100.0040.00717.84
8.2.90.0090.00019.27
8.2.80.0000.00717.93
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0090.00018.07
8.2.40.0040.00418.16
8.2.30.0100.00017.92
8.2.20.0040.00417.54
8.2.10.0030.00617.63
8.2.00.0040.00417.60
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00020.73
8.1.230.0040.00720.84
8.1.220.0040.00417.74
8.1.210.0060.00318.85
8.1.200.0050.00517.23
8.1.190.0030.00617.40
8.1.180.0040.00418.10
8.1.170.0000.00818.91
8.1.160.0040.00418.93
8.1.150.0030.00518.68
8.1.140.0050.00217.32
8.1.130.0040.00417.70
8.1.120.0040.00417.51
8.1.110.0000.00717.40
8.1.100.0000.00717.49
8.1.90.0000.00717.46
8.1.80.0040.00417.51
8.1.70.0070.00017.48
8.1.60.0030.00517.50
8.1.50.0000.00717.35
8.1.40.0030.00617.51
8.1.30.0000.00817.70
8.1.20.0050.00317.61
8.1.10.0080.00017.50
8.1.00.0030.00517.52
8.0.300.0040.00419.94
8.0.290.0000.00916.75
8.0.280.0000.00718.50
8.0.270.0040.00417.32
8.0.260.0000.00716.87
8.0.250.0070.00017.00
8.0.240.0040.00416.82
8.0.230.0000.00716.99
8.0.220.0080.00016.92
8.0.210.0070.00016.88
8.0.200.0030.00316.99
8.0.190.0000.00716.94
8.0.180.0040.00416.87
8.0.170.0030.00616.94
8.0.160.0070.00016.93
8.0.150.0080.00016.96
8.0.140.0000.00916.84
8.0.130.0000.00613.30
8.0.120.0040.00416.89
8.0.110.0030.00616.84
8.0.100.0000.00716.87
8.0.90.0040.00416.75
8.0.80.0070.01416.90
8.0.70.0040.00417.02
8.0.60.0000.00716.95
8.0.50.0050.00216.94
8.0.30.0130.01017.12
8.0.20.0090.01117.24
8.0.10.0040.00416.95
8.0.00.0060.01416.57
7.4.330.0020.00213.00
7.4.320.0030.00316.49
7.4.300.0030.00516.61
7.4.290.0000.00716.60
7.4.280.0000.00716.61
7.4.270.0070.00016.57
7.4.260.0000.00513.17
7.4.250.0040.00416.57
7.4.240.0000.00716.52
7.4.230.0030.00316.66
7.4.220.0090.01016.65
7.4.210.0050.00916.59
7.4.200.0040.00416.49
7.4.190.0070.00016.31
7.4.160.0120.00316.74
7.4.150.0090.00916.57
7.4.140.0120.00916.58
7.4.130.0100.00916.51
7.4.120.0070.00916.63
7.4.110.0090.00916.50
7.4.100.0030.01316.59
7.4.90.0090.00916.46
7.4.80.0070.01019.39
7.4.70.0070.01416.55
7.4.60.0110.00816.55
7.4.50.0000.00816.16
7.4.40.0070.00716.34
7.4.30.0100.01416.51
7.4.00.0090.00614.75
7.3.330.0030.00313.39
7.3.320.0050.00013.42
7.3.310.0000.00716.52
7.3.300.0000.00816.43
7.3.290.0130.00616.50
7.3.280.0070.00916.44
7.3.270.0180.00316.33
7.3.260.0100.00916.39
7.3.250.0130.00516.36
7.3.240.0110.01116.38
7.3.230.0110.00616.54
7.3.210.0090.00816.42
7.3.200.0040.01116.43
7.3.190.0030.01316.36
7.3.180.0130.00716.32
7.3.170.0030.01316.43
7.3.160.0070.01016.65
7.3.120.0100.00715.11
7.2.330.0100.00716.45
7.2.320.0030.01316.82
7.2.310.0260.01016.64
7.2.300.0110.00716.58
7.2.290.0130.00416.58
7.2.60.0030.00916.97
7.2.50.0050.01216.77
7.1.200.0060.00615.58
7.1.70.0030.00317.22
7.1.60.0060.01919.40
7.1.50.0030.00716.85
7.1.00.0070.07022.49
7.0.200.0000.00816.91
7.0.140.0000.07722.09
7.0.120.0070.07322.16
7.0.60.0030.05019.79
7.0.50.0130.06017.89
7.0.40.0100.08320.02
7.0.30.0230.04720.10
7.0.20.0300.07720.15
7.0.10.0270.03720.08
7.0.00.0170.08020.23
5.6.280.0030.07321.09
5.6.210.0100.03320.48
5.6.200.0100.06718.18
5.6.190.0170.06320.46
5.6.180.0330.07020.35
5.6.170.0170.04320.39
5.6.160.0100.03720.54
5.6.150.0070.03718.25
5.6.140.0030.05718.14
5.6.130.0130.07718.27
5.6.120.0100.03721.00
5.6.110.0000.07021.11
5.6.100.0030.08720.86
5.6.90.0100.05021.13
5.6.80.0100.08020.39
5.6.70.4300.04320.35
5.5.350.0400.04720.41
5.5.340.0070.04017.98
5.5.330.0070.06020.40
5.5.320.0170.05320.21
5.5.310.0270.05320.26
5.5.300.0030.07317.95
5.5.290.0030.05318.01
5.5.280.0100.07320.80
5.5.270.0000.07320.94
5.5.260.0130.05720.86
5.5.250.0100.06320.68
5.5.240.0070.07020.23
5.4.450.0030.04319.41
5.4.440.0070.06719.57
5.4.430.0070.03719.46
5.4.420.0100.07019.44
5.4.410.0100.03319.12
5.4.400.0070.06719.16
5.4.390.0000.04719.24
5.4.380.0070.08018.87
5.4.370.0130.05019.08
5.4.360.0070.08018.98
5.4.350.0130.07019.14
5.4.340.0170.06319.24
5.4.320.0070.07019.24
5.4.310.0130.06719.20
5.4.300.0000.04319.24
5.4.290.0030.07719.14
5.4.280.0070.05318.84
5.4.270.0170.07019.11
5.4.260.0100.04019.16
5.4.250.0070.03718.86
5.4.240.0000.07718.93
5.4.230.0130.05319.00
5.4.220.0030.07019.07
5.4.210.0200.05719.23
5.4.200.0070.08019.07
5.4.190.0070.06719.07
5.4.180.0030.04719.14
5.4.170.0070.07719.11
5.4.160.0030.08319.18
5.4.150.0000.04318.90
5.4.140.0100.07016.41
5.4.130.0030.07016.39
5.4.120.0170.06016.35
5.4.110.0130.06016.49
5.4.100.0070.07016.46
5.4.90.0030.06016.30
5.4.80.0030.07316.48
5.4.70.0070.07016.38
5.4.60.0100.05316.37
5.4.50.0000.04716.36
5.4.40.0070.07016.44
5.4.30.0030.07016.34
5.4.20.0100.07316.38
5.4.10.0070.06716.36
5.4.00.0130.07015.99
5.3.290.0070.07714.67
5.3.280.0100.07314.66
5.3.270.0200.06314.77
5.3.260.0030.06314.77
5.3.250.0070.07014.66
5.3.240.0130.05714.49
5.3.230.0000.04714.64
5.3.220.0000.07014.56
5.3.210.0100.05314.64
5.3.200.0070.05014.61
5.3.190.0130.07014.71
5.3.180.0070.06014.49
5.3.170.0070.07014.71
5.3.160.0130.06714.45
5.3.150.0030.05314.56
5.3.140.0130.07014.55
5.3.130.0100.06314.55
5.3.120.0070.07014.46
5.3.110.0030.08014.60
5.3.100.0070.07014.06
5.3.90.0070.04014.06
5.3.80.0030.08014.09
5.3.70.0030.07714.07
5.3.60.0130.06713.89
5.3.50.0030.05714.00
5.3.40.0030.04013.84
5.3.30.0000.07313.90
5.3.20.0030.04313.68
5.3.10.0070.05013.71
5.3.00.0100.04313.70
5.2.170.0100.03311.21
5.2.160.0070.03311.31
5.2.150.0030.06711.20
5.2.140.0030.06011.20
5.2.130.0030.02711.27
5.2.120.0030.06011.07
5.2.110.0030.06311.15
5.2.100.0030.03311.09
5.2.90.0070.06311.06
5.2.80.0100.02311.25
5.2.70.0030.04311.01
5.2.60.0030.03010.99
5.2.50.0130.06011.16
5.2.40.0000.06711.00
5.2.30.0030.06011.13
5.2.20.0030.04710.85
5.2.10.0000.04710.75
5.2.00.0070.02710.77
5.1.60.0070.0279.90
5.1.50.0000.0279.99
5.1.40.0030.0509.96
5.1.30.0030.02710.37
5.1.20.0100.02710.32
5.1.10.0000.05710.11
5.1.00.0030.05710.08
5.0.50.0000.0239.09
5.0.40.0070.0179.09
5.0.30.0100.0279.09
5.0.20.0000.0209.09
5.0.10.0000.0279.09
5.0.00.0030.0309.09
4.4.90.0000.0209.09
4.4.80.0000.0409.09
4.4.70.0030.0209.09
4.4.60.0000.0439.09
4.4.50.0000.0239.09
4.4.40.0000.0279.09
4.4.30.0030.0339.09
4.4.20.0000.0409.09
4.4.10.0030.0309.09
4.4.00.0000.0279.09
4.3.110.0000.0239.09
4.3.100.0070.0109.09
4.3.90.0000.0209.09
4.3.80.0030.0479.09
4.3.70.0030.0339.09
4.3.60.0030.0279.09
4.3.50.0030.0209.09
4.3.40.0000.0509.09
4.3.30.0000.0209.09
4.3.20.0030.0339.09
4.3.10.0030.0279.09
4.3.00.0000.0239.09

preferences:
46.35 ms | 401 KiB | 5 Q