3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function f ( $foo ) { var_dump($foo instanceof static); } } class D extends C { } $c = new C(); $c->f(new D());

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.01018.18
8.3.50.0130.00322.05
8.3.40.0110.00418.84
8.3.30.0090.01218.77
8.3.20.0080.00018.73
8.3.10.0040.00420.92
8.3.00.0090.00023.64
8.2.180.0070.01316.88
8.2.170.0110.00422.96
8.2.160.0060.00620.34
8.2.150.0050.00324.18
8.2.140.0000.00924.66
8.2.130.0000.00826.16
8.2.120.0000.00819.38
8.2.110.0070.00321.12
8.2.100.0110.00017.66
8.2.90.0070.00019.09
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00718.03
8.2.30.0000.00819.79
8.2.20.0000.00717.46
8.2.10.0040.00417.59
8.2.00.0030.00617.71
8.1.280.0160.00025.92
8.1.270.0070.00023.99
8.1.260.0000.01326.35
8.1.250.0000.00928.09
8.1.240.0000.00922.42
8.1.230.0040.00720.86
8.1.220.0060.00318.77
8.1.210.0040.00418.91
8.1.200.0090.00017.13
8.1.190.0080.00017.28
8.1.180.0080.00018.10
8.1.170.0050.00518.68
8.1.160.0030.00518.81
8.1.150.0050.00218.53
8.1.140.0050.00317.34
8.1.130.0070.00017.73
8.1.120.0030.00317.40
8.1.110.0070.00017.32
8.1.100.0080.00017.39
8.1.90.0070.00017.29
8.1.80.0000.00717.37
8.1.70.0040.00417.38
8.1.60.0000.00817.63
8.1.50.0040.00417.46
8.1.40.0000.00717.50
8.1.30.0050.00217.53
8.1.20.0030.00517.51
8.1.10.0020.00517.44
8.1.00.0040.00417.49
8.0.300.0040.00419.98
8.0.290.0080.00316.63
8.0.280.0000.00818.36
8.0.270.0050.00217.09
8.0.260.0030.00316.75
8.0.250.0000.00716.90
8.0.240.0030.00516.76
8.0.230.0000.00716.86
8.0.220.0040.00416.75
8.0.210.0050.00316.82
8.0.200.0040.00416.94
8.0.190.0040.00416.92
8.0.180.0070.00016.85
8.0.170.0070.00016.89
8.0.160.0000.00716.72
8.0.150.0000.00816.61
8.0.140.0040.00416.80
8.0.130.0060.00013.21
8.0.120.0000.00816.66
8.0.110.0000.00716.77
8.0.100.0040.00416.64
8.0.90.0040.00416.83
8.0.80.0040.01116.78
8.0.70.0000.00716.93
8.0.60.0040.00416.81
8.0.50.0040.00416.60
8.0.30.0140.01117.23
8.0.20.0130.00517.40
8.0.10.0080.00016.84
8.0.00.0100.01116.91
7.4.330.0050.00014.64
7.4.320.0000.00616.39
7.4.300.0030.00316.48
7.4.290.0000.00716.57
7.4.280.0000.00716.50
7.4.270.0030.00416.63
7.4.260.0000.00513.26
7.4.250.0000.00716.58
7.4.240.0040.00416.52
7.4.230.0030.00316.68
7.4.220.0210.00416.47
7.4.210.0100.00416.58
7.4.200.0000.00716.29
7.4.190.0000.00716.58
7.4.160.0100.00716.37
7.4.150.0110.01117.40
7.4.140.0070.01017.86
7.4.130.0120.00416.55
7.4.120.0070.00916.41
7.4.110.0060.01216.63
7.4.100.0110.01116.57
7.4.90.0110.00516.37
7.4.80.0030.01519.37
7.4.70.0100.01016.39
7.4.60.0090.00616.39
7.4.50.0040.00416.28
7.4.40.0030.01322.52
7.4.30.0070.01016.61
7.4.00.0000.01714.84
7.3.330.0020.00213.27
7.3.320.0050.00213.10
7.3.310.0000.00716.11
7.3.300.0030.00316.15
7.3.290.0110.00316.29
7.3.280.0040.01116.32
7.3.270.0040.01217.40
7.3.260.0100.01118.24
7.3.250.0090.01116.23
7.3.240.0060.01116.48
7.3.230.0110.00716.39
7.3.210.0150.00616.56
7.3.200.0160.00619.39
7.3.190.0060.00916.35
7.3.180.0060.00916.22
7.3.170.0000.02316.56
7.3.160.0060.00916.30
7.3.120.0040.01114.84
7.2.330.0070.01116.32
7.2.320.0120.00916.72
7.2.310.0170.00016.67
7.2.300.0090.01216.36
7.2.290.0130.00316.30
7.2.00.0050.00819.05
7.1.100.0000.01518.09
7.1.70.0000.00717.15
7.1.60.0070.01719.40
7.1.50.0140.01116.80
7.1.00.0000.07022.28
7.0.200.0040.00416.37
7.0.140.0000.07021.95
7.0.100.0030.08319.89
7.0.90.0030.07719.86
7.0.80.0300.07019.84
7.0.70.0030.08020.02
7.0.60.0100.07720.06
7.0.50.0100.08020.32
7.0.40.0100.04720.08
7.0.30.0130.07020.03
7.0.20.0070.07020.10
7.0.10.0070.08320.17
7.0.00.0030.05020.13
5.6.280.0000.07721.02
5.6.250.0070.07020.77
5.6.240.0100.08720.52
5.6.230.0130.08020.61
5.6.220.0200.04020.68
5.6.210.0100.07720.56
5.6.200.0130.05020.89
5.6.190.0170.07721.05
5.6.180.0100.05021.14
5.6.170.0170.07321.00
5.6.160.0070.04021.07
5.6.150.0130.06721.09
5.6.140.0030.06021.11
5.6.130.0070.07721.09
5.6.120.0030.06021.17
5.6.110.0130.07720.93
5.6.100.0030.09021.12
5.6.90.0100.04720.94
5.6.80.0100.07320.43
5.6.70.0070.04320.43
5.6.60.0100.03720.41
5.6.50.0130.07320.39
5.6.40.0030.05320.45
5.6.30.0070.04720.40
5.6.20.0070.03320.38
5.6.10.0000.03720.39
5.6.00.0070.03720.48
5.5.380.0130.07720.46
5.5.370.0100.07320.46
5.5.360.0000.06720.54
5.5.350.0100.04320.46
5.5.340.0100.07020.87
5.5.330.0130.08020.90
5.5.320.0070.08020.84
5.5.310.0100.07720.89
5.5.300.0100.04720.89
5.5.290.0100.08320.93
5.5.280.0000.08720.93
5.5.270.0070.04720.76
5.5.260.0030.06020.82
5.5.250.0170.08020.54
5.5.240.0130.07720.22
5.5.230.0030.07020.31
5.5.220.0030.04320.27
5.5.210.0030.06320.30
5.5.200.0130.07320.13
5.5.190.0030.04320.27
5.5.180.0030.04020.15
5.5.160.0070.04020.11
5.5.150.0030.03720.23
5.5.140.0070.03720.27
5.5.130.0000.04720.12
5.5.120.0000.05320.26
5.5.110.0070.03720.16
5.5.100.0000.04320.16
5.5.90.0070.03720.07
5.5.80.0100.03720.06
5.5.70.0000.04720.00
5.5.60.0000.04020.07
5.5.50.0000.04319.96
5.5.40.0000.04020.01
5.5.30.0030.04020.15
5.5.20.0000.05320.04
5.5.10.0100.03020.11
5.5.00.0000.04319.96
5.4.450.0100.07019.37
5.4.440.0170.06319.55
5.4.430.0100.06719.53
5.4.420.0070.04719.20
5.4.410.0070.07319.32
5.4.400.0130.06718.96
5.4.390.0100.05719.20
5.4.380.0070.05319.23
5.4.370.0000.08019.16
5.4.360.0100.07319.03
5.4.350.0130.04319.03
5.4.340.0000.04319.13
5.4.320.0030.04019.09
5.4.310.0100.03019.09
5.4.300.0070.03319.04
5.4.290.0030.03018.85
5.4.280.0030.04019.09
5.4.270.0070.03319.02
5.4.260.0070.03318.94
5.4.250.0100.03018.87
5.4.240.0070.03719.04
5.4.230.0070.03319.14
5.4.220.0030.03719.20
5.4.210.0030.03319.04
5.4.200.0070.03019.20
5.4.190.0070.03318.84
5.4.180.0070.03319.11
5.4.170.0070.03719.14
5.4.160.0000.04018.85
5.4.150.0030.04019.10
5.4.140.0170.02316.30
5.4.130.0070.02716.24
5.4.120.0000.03316.47
5.4.110.0000.04016.55
5.4.100.0030.03716.54
5.4.90.0000.03316.38
5.4.80.0100.02716.43
5.4.70.0070.03316.51
5.4.60.0070.03016.45
5.4.50.0000.03716.36
5.4.40.0030.03316.50
5.4.30.0030.04016.49
5.4.20.0000.03716.30
5.4.10.0070.03016.39
5.4.00.0000.03715.78
5.3.290.0070.04014.63
5.3.280.0030.04314.57
5.3.270.0000.04014.58
5.3.260.0000.04014.73
5.3.250.0000.04314.58
5.3.240.0070.03714.72
5.3.230.0000.03714.66
5.3.220.0070.02714.69
5.3.210.0030.03714.57
5.3.200.0030.03714.59
5.3.190.0070.03714.52
5.3.180.0000.03314.68
5.3.170.0070.03314.59
5.3.160.0030.03714.62
5.3.150.0030.04014.49
5.3.140.0070.03014.53
5.3.130.0070.03014.47
5.3.120.0000.04014.55
5.3.110.0030.03714.50
5.3.100.0000.04014.00
5.3.90.0100.03014.13
5.3.80.0030.04714.07
5.3.70.0030.03714.02
5.3.60.0070.03013.99
5.3.50.0030.03714.04
5.3.40.0070.03714.06
5.3.30.0130.05013.96
5.3.20.0070.06013.83
5.3.10.0130.02713.71
5.3.00.0030.06713.53
5.2.170.0000.04011.25
5.2.160.0000.02711.06
5.2.150.0030.02711.17
5.2.140.0070.03711.16
5.2.130.0070.04310.96
5.2.120.0070.05011.09
5.2.110.0070.04711.18
5.2.100.0100.06010.98
5.2.90.0000.03311.15
5.2.80.0100.04711.00
5.2.70.0070.05711.10
5.2.60.0070.05011.04
5.2.50.0000.03711.05
5.2.40.0070.03711.09
5.2.30.0100.05710.89
5.2.20.0130.05311.02
5.2.10.0070.06010.76
5.2.00.0070.04310.63
5.1.60.0030.0539.84
5.1.50.0000.03010.10
5.1.40.0030.0509.79
5.1.30.0000.03710.25
5.1.20.0070.04310.36
5.1.10.0030.05310.13
5.1.00.0030.03310.05
5.0.50.0030.0508.55
5.0.40.0130.0378.26
5.0.30.0000.0608.11
5.0.20.0030.0338.30
5.0.10.0030.0378.01
5.0.00.0000.0638.24
4.4.90.0030.0177.95
4.4.80.0130.0207.95
4.4.70.0100.0277.95
4.4.60.0030.0237.95
4.4.50.0000.0377.95
4.4.40.0030.0407.95
4.4.30.0000.0337.95
4.4.20.0070.0307.95
4.4.10.0070.0177.95
4.4.00.0000.0577.95
4.3.110.0030.0207.95
4.3.100.0000.0377.95
4.3.90.0030.0377.95
4.3.80.0030.0377.95
4.3.70.0000.0307.95
4.3.60.0030.0277.95
4.3.50.0030.0337.95
4.3.40.0070.0507.95
4.3.30.0000.0277.95
4.3.20.0070.0207.95
4.3.10.0000.0377.95
4.3.00.0070.0377.95

preferences:
48.56 ms | 401 KiB | 5 Q