3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function isFoo() { return $this instanceof Bar; } } class Bar { public function doSomething() { return Foo::isFoo(); } } $bar = new Bar; var_dump($bar->doSomething());

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.0150.00618.84
8.3.30.0070.00719.05
8.3.20.0040.00420.30
8.3.10.0040.00422.09
8.3.00.0040.00422.29
8.2.170.0070.00722.96
8.2.160.0140.00719.09
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0140.00026.16
8.2.120.0040.00419.25
8.2.110.0060.00320.21
8.2.100.0040.00819.40
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0080.00018.04
8.2.50.0030.00618.07
8.2.40.0050.00318.22
8.2.30.0000.00718.00
8.2.20.0080.00017.69
8.2.10.0040.00417.74
8.2.00.0050.00217.74
8.1.270.0030.00622.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.93
8.1.230.0110.00018.98
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0030.00517.43
8.1.180.0000.01018.60
8.1.170.0070.00018.53
8.1.160.0070.00022.14
8.1.150.0040.00418.45
8.1.140.0060.00317.32
8.1.130.0050.00217.82
8.1.120.0000.00717.30
8.1.110.0030.00617.32
8.1.100.0020.00517.37
8.1.90.0020.00517.29
8.1.80.0000.00717.34
8.1.70.0050.00317.33
8.1.60.0030.00617.50
8.1.50.0000.00717.54
8.1.40.0060.00317.46
8.1.30.0030.00617.56
8.1.20.0080.00017.69
8.1.10.0080.00017.58
8.1.00.0040.00717.53
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0030.00318.38
8.0.270.0030.00317.08
8.0.260.0070.00016.80
8.0.250.0040.00416.91
8.0.240.0030.00317.04
8.0.230.0000.00716.95
8.0.220.0030.00316.89
8.0.210.0070.00016.79
8.0.200.0000.00716.82
8.0.190.0030.00316.93
8.0.180.0040.00416.98
8.0.170.0020.00516.90
8.0.160.0040.00416.86
8.0.150.0000.00716.70
8.0.140.0000.00716.73
8.0.130.0030.00313.34
8.0.120.0040.00416.75
8.0.110.0000.00716.87
8.0.100.0000.00816.84
8.0.90.0000.00716.77
8.0.80.0150.00316.85
8.0.70.0000.00716.86
8.0.60.0050.00216.79
8.0.50.0040.00416.87
8.0.30.0070.01216.94
8.0.20.0110.00817.40
8.0.10.0070.00016.89
8.0.00.0110.00616.54
7.4.330.0060.00015.00
7.4.320.0050.00316.49
7.4.300.0070.00016.52
7.4.290.0030.00316.61
7.4.280.0070.00016.43
7.4.270.0000.00716.61
7.4.260.0030.00316.49
7.4.250.0070.00016.37
7.4.240.0030.00416.55
7.4.230.0060.00016.62
7.4.220.0070.01016.64
7.4.210.0070.01016.59
7.4.200.0000.00716.57
7.4.190.0070.00016.45
7.4.160.0110.00716.55
7.4.150.0120.00617.40
7.4.140.0100.00917.86
7.4.130.0150.00316.42
7.4.120.0100.00716.59
7.4.110.0070.01016.57
7.4.100.0090.00916.63
7.4.90.0110.01116.58
7.4.80.0060.00919.39
7.4.70.0070.01116.34
7.4.60.0100.00616.40
7.4.50.0060.00316.26
7.4.40.0090.00622.77
7.4.30.0070.01016.45
7.4.00.0030.01014.96
7.3.330.0000.00513.41
7.3.320.0050.00013.36
7.3.310.0070.00016.24
7.3.300.0070.00016.37
7.3.290.0110.00316.29
7.3.280.0090.00816.36
7.3.270.0140.00317.40
7.3.260.0060.01216.64
7.3.250.0070.01116.37
7.3.240.0070.01016.58
7.3.230.0030.01316.52
7.3.210.0100.00716.38
7.3.200.0060.01319.39
7.3.190.0110.01116.59
7.3.180.0100.01016.55
7.3.170.0130.01016.46
7.3.160.0110.00716.50
7.3.120.0030.01014.96
7.2.330.0090.01016.73
7.2.320.0140.00716.29
7.2.310.0060.01116.36
7.2.300.0060.01116.68
7.2.290.0120.00316.74
7.2.60.0040.00716.95
7.2.00.0090.00619.15
7.1.200.0000.01215.63
7.1.100.0000.01118.08
7.1.70.0090.00017.22
7.1.60.0130.00319.82
7.1.50.0160.00616.57
7.1.00.0070.07022.35
7.0.200.0000.00816.64
7.0.140.0100.06022.05
7.0.60.0030.07320.08
7.0.50.0030.08017.96
7.0.40.0100.08720.15
7.0.30.0300.04720.08
7.0.20.0170.04320.20
7.0.10.0100.08320.05
7.0.00.0100.07320.23
5.6.280.0000.07721.00
5.6.210.0070.06720.65
5.6.200.0070.08318.16
5.6.190.0070.08720.48
5.6.180.0430.07020.39
5.6.170.0230.07720.58
5.6.160.0100.08020.45
5.6.150.0130.07318.19
5.6.140.0030.07718.16
5.6.130.0030.04318.23
5.6.120.0030.04021.04
5.6.110.0130.07721.13
5.6.100.0070.08321.00
5.6.90.0100.08021.13
5.6.80.0130.08020.37
5.5.350.0230.07320.34
5.5.340.0100.03717.95
5.5.330.0070.07020.37
5.5.320.0330.07720.36
5.5.310.0370.07020.31
5.5.300.0000.04718.07
5.5.290.0070.04017.98
5.5.280.0130.04020.97
5.5.270.0070.04320.88
5.5.260.0070.03720.68
5.5.250.0070.07320.68
5.5.240.0070.06020.24
5.4.450.0330.03719.21
5.4.440.0200.05319.47
5.4.430.0230.03319.32
5.4.420.0300.06319.53
5.4.410.0330.07719.28
5.4.400.0200.03718.98
5.4.390.0130.04319.11
5.4.380.0230.03319.09
5.4.370.0200.04719.19
5.4.360.0300.04019.19
5.4.350.0230.03319.08
5.4.340.0270.06719.19
5.4.320.0300.07319.08
5.4.310.0330.05719.22
5.4.300.0200.05319.15
5.4.290.0300.07319.13
5.4.280.0300.04318.99
5.4.270.0200.04019.18
5.4.260.0200.03719.13
5.4.250.0230.06318.97
5.4.240.0300.04719.16
5.4.230.0230.06319.21
5.4.220.0130.06319.09
5.4.210.0100.04019.30
5.4.200.0170.04719.15
5.4.190.0170.04718.83
5.4.180.0230.07318.99
5.4.170.0270.03319.20
5.4.160.0170.04019.28
5.4.150.0170.04019.14
5.4.140.0230.03016.72
5.4.130.0170.03716.38
5.4.120.0170.03716.33
5.4.110.0200.06016.61
5.4.100.0230.04316.64
5.4.90.0270.07016.63
5.4.80.0130.04016.59
5.4.70.0230.04016.48
5.4.60.0170.06016.22
5.4.50.0270.05316.43
5.4.40.0300.05316.42
5.4.30.0230.05716.43
5.4.20.0170.04016.50
5.4.10.0100.04316.39
5.4.00.0300.03015.84
5.3.290.0200.08014.59
5.3.280.0200.07314.70
5.3.270.0170.06014.69
5.3.260.0270.06714.52
5.3.250.0100.05314.75
5.3.240.0200.07014.75
5.3.230.0130.07314.71
5.3.220.0230.04314.80
5.3.210.0200.06714.49
5.3.200.0130.04014.49
5.3.190.0270.06314.68
5.3.180.0330.06314.46
5.3.170.0270.06314.46
5.3.160.0200.04314.64
5.3.150.0270.03714.49
5.3.140.0270.02714.52
5.3.130.0200.07714.52
5.3.120.0200.04314.60
5.3.110.0230.05714.58
5.3.100.0270.03714.11
5.3.90.0270.05714.00
5.3.80.0230.07014.03
5.3.70.0230.06314.03
5.3.60.0200.04314.01
5.3.50.0300.06713.86
5.3.40.0270.04013.96
5.3.30.0230.06714.05
5.3.20.0330.06713.71
5.3.10.0230.03013.58
5.3.00.0170.03713.73
5.2.170.0170.02711.13
5.2.160.0100.03311.06
5.2.150.0130.03711.11
5.2.140.0130.03011.13
5.2.130.0170.02711.03
5.2.120.0030.04311.04
5.2.110.0000.06311.01
5.2.100.0030.03011.11
5.2.90.1170.03311.19
5.2.80.1300.03311.02
5.2.70.1270.03011.02
5.2.60.1600.03011.03
5.2.50.1300.03711.27
5.2.40.1100.03010.92
5.2.30.1170.04310.90
5.2.20.1100.02710.87
5.2.10.1130.02010.79
5.2.00.1330.03310.63
5.1.60.1270.0279.99
5.1.50.1000.0279.90
5.1.40.0970.0309.96
5.1.30.1100.03010.24
5.1.20.0970.02310.25
5.1.10.0000.0309.97
5.1.00.0030.02310.22
5.0.50.0000.0208.48
5.0.40.0030.0308.50
5.0.30.0000.0378.16
5.0.20.0030.0178.11
5.0.10.0700.0308.40
5.0.00.0530.0338.15
4.4.90.0530.0177.95
4.4.80.0570.0137.95
4.4.70.0570.0137.95
4.4.60.0630.0207.95
4.4.50.0570.0137.95
4.4.40.0500.0307.95
4.4.30.0570.0137.95
4.4.20.0530.0177.95
4.4.10.0530.0177.95
4.4.00.0530.0237.95
4.3.110.0630.0207.95
4.3.100.0430.0137.95
4.3.90.0570.0137.95
4.3.80.0570.0237.95
4.3.70.0500.0177.95
4.3.60.0500.0177.95
4.3.50.0600.0207.95
4.3.40.0530.0237.95
4.3.30.0300.0177.95
4.3.20.0300.0237.95
4.3.10.0300.0177.95
4.3.00.0270.0137.95

preferences:
42.21 ms | 400 KiB | 5 Q