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()); $d = new D(); $d->f($d); $d->f($c);

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.55
8.3.50.0130.00321.98
8.3.40.0150.00018.61
8.3.30.0160.00618.97
8.3.20.0050.00220.34
8.3.10.0080.00022.11
8.3.00.0080.00022.38
8.2.180.0040.01116.50
8.2.170.0150.00022.96
8.2.160.0080.00820.82
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00417.50
8.2.110.0110.00022.08
8.2.100.0070.00417.66
8.2.90.0000.00819.23
8.2.80.0060.00317.97
8.2.70.0100.00017.50
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0000.00918.16
8.2.30.0040.00417.92
8.2.20.0000.00717.64
8.2.10.0040.00419.40
8.2.00.0030.00817.66
8.1.280.0120.00625.92
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00423.92
8.1.230.0070.00419.18
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0080.00317.35
8.1.190.0060.00317.40
8.1.180.0060.00318.10
8.1.170.0000.00818.52
8.1.160.0000.00721.82
8.1.150.0040.00418.48
8.1.140.0070.00017.31
8.1.130.0000.00717.82
8.1.120.0040.00417.33
8.1.110.0000.00717.34
8.1.100.0040.00317.27
8.1.90.0040.00417.29
8.1.80.0000.00817.42
8.1.70.0030.00317.40
8.1.60.0050.00317.46
8.1.50.0040.00417.59
8.1.40.0000.00717.49
8.1.30.0060.00317.61
8.1.20.0050.00217.48
8.1.10.0080.00017.59
8.1.00.0030.00517.45
8.0.300.0000.00718.77
8.0.290.0030.00617.05
8.0.280.0000.00818.34
8.0.270.0000.00716.75
8.0.260.0000.00816.75
8.0.250.0000.00716.95
8.0.240.0030.00316.89
8.0.230.0030.00316.92
8.0.220.0030.00316.69
8.0.210.0070.00016.84
8.0.200.0030.00316.75
8.0.190.0030.00316.86
8.0.180.0040.00816.93
8.0.170.0040.00416.75
8.0.160.0000.00816.91
8.0.150.0040.00416.72
8.0.140.0040.00416.66
8.0.130.0030.00313.23
8.0.120.0030.00516.83
8.0.110.0080.00016.84
8.0.100.0080.00016.68
8.0.90.0040.00416.80
8.0.80.0100.01016.81
8.0.70.0080.00016.68
8.0.60.0080.00016.62
8.0.50.0040.00416.86
8.0.30.0040.01717.02
8.0.20.0140.00517.40
8.0.10.0070.00016.93
8.0.00.0110.01016.71
7.4.330.0030.00215.00
7.4.320.0040.00416.52
7.4.300.0030.00316.48
7.4.290.0070.00016.52
7.4.280.0030.00316.58
7.4.270.0000.00716.46
7.4.260.0030.00316.46
7.4.250.0030.00316.57
7.4.240.0020.00616.62
7.4.230.0030.00316.57
7.4.220.0100.00716.56
7.4.210.0120.00516.64
7.4.200.0040.00416.49
7.4.190.0000.00716.49
7.4.160.0040.01516.60
7.4.150.0110.00717.40
7.4.140.0120.00917.86
7.4.130.0070.00916.50
7.4.120.0080.00916.29
7.4.110.0080.00816.58
7.4.100.0140.00316.41
7.4.90.0140.00316.32
7.4.80.0080.00816.56
7.4.70.0110.00816.55
7.4.60.0110.00516.52
7.4.50.0050.00316.32
7.4.40.0060.01022.77
7.4.30.0030.01316.63
7.4.00.0120.00315.01
7.3.330.0030.00313.12
7.3.320.0030.00313.23
7.3.310.0000.00716.32
7.3.300.0030.00316.17
7.3.290.0090.00616.25
7.3.280.0090.00616.29
7.3.270.0100.00717.40
7.3.260.0130.00316.49
7.3.250.0040.01416.27
7.3.240.0070.01016.47
7.3.230.0030.01316.39
7.3.210.0140.00316.58
7.3.200.0090.00919.39
7.3.190.0070.01416.57
7.3.180.0130.00316.39
7.3.170.0030.01716.29
7.3.160.0030.01216.16
7.3.120.0080.00414.68
7.2.330.0080.00816.57
7.2.320.0070.01016.60
7.2.310.0120.00616.67
7.2.300.0030.01516.22
7.2.290.0120.01116.66
7.2.60.0120.00016.69
7.1.200.0060.00615.67
7.1.70.0070.00316.89
7.1.60.0090.01619.82
7.1.50.0190.00434.83
7.1.00.0000.08022.30
7.0.200.0060.00616.57
7.0.140.0030.07722.09
7.0.60.0100.07319.91
7.0.50.0070.06017.87
7.0.40.0070.08020.23
7.0.30.0230.05020.30
7.0.20.0370.08720.06
7.0.10.0100.08320.25
7.0.00.0100.06020.23
5.6.280.0030.07320.89
5.6.210.0130.04720.47
5.6.200.0100.07718.15
5.6.190.0030.05320.48
5.6.180.0270.03320.47
5.6.170.0230.08020.52
5.6.160.0070.03720.62
5.6.150.0030.08318.21
5.6.140.0000.04318.13
5.6.130.0070.07318.26
5.6.120.0070.08721.13
5.6.110.0100.07720.98
5.6.100.0070.07720.94
5.6.90.0070.08320.95
5.6.80.0000.07020.39
5.5.350.4000.04020.45
5.5.340.0100.08318.01
5.5.330.0000.04720.35
5.5.320.0330.07020.38
5.5.310.0330.07020.23
5.5.300.0030.07018.07
5.5.290.0100.03317.95
5.5.280.0000.07320.96
5.5.270.0100.05320.88
5.5.260.0030.06320.96
5.5.250.0100.08320.68
5.5.240.0170.05320.27
5.4.450.2530.04319.32
5.4.440.2670.03319.54
5.4.430.3270.04319.45
5.4.420.2830.03719.16
5.4.410.2400.03719.39
5.4.400.2970.03719.22
5.4.390.2700.03319.00
5.4.380.3470.04318.87
5.4.370.2930.04319.25
5.4.360.2330.03719.20
5.4.350.2970.04019.11
5.4.340.3230.04718.88
5.4.320.2470.04019.02
5.4.310.2730.03719.05
5.4.300.2470.04019.24
5.4.290.3130.04719.23
5.4.280.2670.04319.19
5.4.270.2300.03319.07
5.4.260.3030.03318.83
5.4.250.2670.03018.97
5.4.240.2570.03019.05
5.4.230.2730.03718.95
5.4.220.2800.03018.84
5.4.210.3030.03719.15
5.4.200.3100.03719.13
5.4.190.2970.04019.12
5.4.180.3230.03319.30
5.4.170.2470.04319.01
5.4.160.2930.04318.96
5.4.150.3270.03719.05
5.4.140.2530.04316.35
5.4.130.2970.04016.32
5.4.120.3200.03016.71
5.4.110.2930.03716.59
5.4.100.3130.03316.50
5.4.90.2770.03316.60
5.4.80.3300.03016.48
5.4.70.2770.03016.28
5.4.60.2930.03716.43
5.4.50.3000.04016.51
5.4.40.2930.03316.52
5.4.30.2670.04016.43
5.4.20.3130.03316.51
5.4.10.2970.03716.52
5.4.00.3370.04015.78
5.3.290.3430.04014.71
5.3.280.2800.04314.65
5.3.270.3230.04014.61
5.3.260.3200.03714.69
5.3.250.2870.03714.62
5.3.240.3230.03714.61
5.3.230.3770.04014.50
5.3.220.2970.04014.56
5.3.210.3200.03714.65
5.3.200.3030.03714.54
5.3.190.3000.03314.61
5.3.180.3000.04014.47
5.3.170.2470.04014.54
5.3.160.3300.03714.65
5.3.150.3270.03314.58
5.3.140.3230.03714.64
5.3.130.3330.03014.53
5.3.120.3030.04014.55
5.3.110.3000.04014.61
5.3.100.3830.03714.19
5.3.90.3300.03714.16
5.3.80.3300.02714.24
5.3.70.3300.03313.93
5.3.60.3230.03714.01
5.3.50.2730.03713.88
5.3.40.3330.03714.02
5.3.30.3170.04013.96
5.3.20.3000.03313.80
5.3.10.3000.03713.66
5.3.00.3170.03713.62
5.2.170.2530.03011.51
5.2.160.2530.03011.51
5.2.150.2270.03311.51
5.2.140.2470.02711.51
5.2.130.2230.03011.51
5.2.120.2530.02711.51
5.2.110.2430.03311.51
5.2.100.2570.05011.51
5.2.90.2200.03311.51
5.2.80.2430.03011.51
5.2.70.2500.03011.51
5.2.60.2570.03311.51
5.2.50.2000.02711.51
5.2.40.1930.03311.51
5.2.30.1670.03011.51
5.2.20.1930.03011.51
5.2.10.1730.03711.51
5.2.00.2270.02711.51
5.1.60.2270.02711.51
5.1.50.1770.02311.51
5.1.40.1830.02711.51
5.1.30.1700.03311.51
5.1.20.2230.02711.51
5.1.10.1730.03011.51
5.1.00.1770.02711.51
5.0.50.0730.02011.51
5.0.40.1000.02311.51
5.0.30.1100.03711.51
5.0.20.1230.02711.51
5.0.10.0970.02711.51
5.0.00.1030.03711.51
4.4.90.1200.02011.51
4.4.80.1330.01711.51
4.4.70.1270.01311.51
4.4.60.1230.02011.51
4.4.50.1070.01711.51
4.4.40.0970.02711.51
4.4.30.1200.01711.51
4.4.20.0500.01311.51
4.4.10.1000.01711.51
4.4.00.0600.04011.51
4.3.110.0900.02011.51
4.3.100.1200.01711.51
4.3.90.1270.01711.51
4.3.80.1130.02311.51
4.3.70.1230.01311.51
4.3.60.1270.01711.51
4.3.50.1100.01711.51
4.3.40.1370.02311.51
4.3.30.0630.02711.51
4.3.20.0700.03011.51
4.3.10.0530.01711.51
4.3.00.0670.02011.51

preferences:
44.51 ms | 400 KiB | 5 Q