3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function getClass() { return __CLASS__; } } $bar = new Foo(); var_dump($bar instanceof ($bar->getClass()));

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.0.30.0220.01016.79
8.0.20.0200.01416.81
8.0.10.0200.01516.84
8.0.00.0270.00717.01
7.4.160.0270.00616.42
7.4.150.0220.00916.39
7.4.140.0280.00616.31
7.4.130.0240.00616.27
7.4.120.0240.00616.23
7.4.110.0160.01016.21
7.4.100.0210.01316.30
7.4.90.0250.00716.13
7.4.80.0170.01416.31
7.4.70.0230.00516.22
7.4.60.0190.01016.11
7.4.50.0230.00616.25
7.4.40.0090.01716.11
7.4.30.0200.00516.26
7.4.20.0170.00916.35
7.4.10.0230.00516.33
7.4.00.0100.01016.20
7.3.270.0240.01116.18
7.3.260.0140.01816.19
7.3.250.0310.00016.13
7.3.240.0200.00816.14
7.3.230.0180.00916.16
7.3.220.0170.01116.10
7.3.210.0270.00216.12
7.3.200.0230.00416.09
7.3.190.0170.01416.17
7.3.180.0180.00916.04
7.3.170.0110.01716.13
7.3.160.0270.00316.07
7.3.150.0280.00015.99
7.3.140.0250.00516.13
7.3.130.0200.00816.01
7.3.120.0180.01016.15
7.3.110.0210.00916.05
7.3.100.0190.00816.00
7.3.90.0140.01416.47
7.3.80.0260.00316.11
7.3.70.0180.00916.30
7.3.60.0240.00916.24
7.3.50.0190.01616.26
7.3.40.0170.00916.25
7.3.30.0130.01616.27
7.3.20.0180.01216.16
7.3.10.0180.01016.13
7.3.00.0180.01316.13
7.2.340.0190.00816.18
7.2.330.0210.00816.03
7.2.320.0210.00916.04
7.2.310.0170.00816.06
7.2.300.0140.01416.13
7.2.290.0190.00616.14
7.2.280.0230.00316.07
7.2.270.0150.01116.01
7.2.260.0220.01516.23
7.2.250.0240.00916.05
7.2.240.0160.01016.11
7.2.230.0260.01216.07
7.2.220.0240.00716.21
7.2.210.0300.00316.05
7.2.200.0240.00816.19
7.2.190.0130.01916.21
7.2.180.0100.01616.22
7.2.170.0180.00616.27
7.2.160.0240.00016.35
7.2.150.0160.00916.31
7.2.140.0190.01316.46
7.2.130.0140.01116.48
7.2.120.0270.00416.55
7.2.110.0180.00716.39
7.2.100.0200.00716.38
7.2.90.0160.00616.40
7.2.80.0690.00616.33
7.2.70.0900.01516.30
7.2.60.0100.01416.33
7.2.50.0000.01516.38
7.2.40.0130.00316.33
7.2.30.0060.01216.34
7.2.20.0070.01116.38
7.2.10.0120.00316.43
7.2.00.0110.01116.52
7.1.330.0320.00315.19
7.1.320.0200.01315.38
7.1.310.0140.01015.25
7.1.300.0100.02015.36
7.1.290.0150.01015.27
7.1.280.0170.01215.30
7.1.270.0860.01415.27
7.1.260.0130.01315.31
7.1.250.0110.01315.23
7.1.240.0070.01715.10
7.1.230.0160.00815.20
7.1.220.0060.00915.17
7.1.210.0110.00515.34
7.1.200.0170.00315.23
7.1.190.0100.01015.28
7.1.180.0000.01415.16
7.1.170.0070.00715.16
7.1.160.0070.01115.16
7.1.150.0140.00415.29
7.1.140.0080.00815.14
7.1.130.0110.00815.14
7.1.120.0030.01715.09
7.1.110.0800.00315.17
7.1.100.0350.01415.20
7.1.90.0070.01615.07
7.1.80.0040.01115.07
7.1.70.0110.00715.00
7.1.60.0050.01115.18
7.1.50.0040.01115.20
7.1.40.0040.01115.29
7.1.30.0040.01115.18
7.1.20.0060.00815.08
7.1.10.0030.01215.20
7.1.00.0160.00615.12
7.0.330.0120.01214.85
7.0.320.0220.00614.89
7.0.310.0180.00714.89
7.0.300.0160.00514.93
7.0.290.0150.00915.04
7.0.280.0150.00815.01
7.0.270.0180.01815.02
7.0.260.0180.01214.97
7.0.250.0190.01215.12
7.0.240.0150.00815.18
7.0.230.0200.00914.99
7.0.220.0190.00315.00
7.0.210.0130.01314.97
7.0.200.0180.00415.09
7.0.190.0200.00315.09
7.0.180.0160.01015.05
7.0.170.0160.01015.14
7.0.160.0130.01314.93
7.0.150.0140.01014.99
7.0.140.0170.00815.04
7.0.130.0140.00815.16
7.0.120.0140.01115.06
7.0.110.0110.01515.05
7.0.100.0180.00615.01
7.0.90.0120.01214.86
7.0.80.0430.01414.89
7.0.70.0210.00714.95
7.0.60.0200.01014.87
7.0.50.0170.01114.93
7.0.40.0140.01415.09
7.0.30.0190.00815.04
7.0.20.0160.00914.89
7.0.10.0190.00515.01
7.0.00.0170.00614.89
5.6.400.0210.01115.76
5.6.390.0220.00915.59
5.6.380.0160.00715.63
5.6.370.0210.00715.51
5.6.360.0180.00715.75
5.6.350.0210.00715.62
5.6.340.0130.01015.65
5.6.330.0210.00915.62
5.6.320.0140.00915.57
5.6.310.0240.00415.50
5.6.300.0160.01315.44
5.6.290.0150.01015.56
5.6.280.0200.00515.75
5.6.270.0240.01015.61
5.6.260.0190.01015.61
5.6.250.0200.01015.55
5.6.240.0240.00715.54
5.6.230.0180.01115.68
5.6.220.0190.01215.73
5.6.210.0220.01015.60
5.6.200.0200.01015.83
5.6.190.0290.00015.66
5.6.180.0220.00815.67
5.6.170.0280.01015.75
5.6.160.0160.00915.77
5.6.150.0190.01315.78
5.6.140.0220.00915.59
5.6.130.0180.01415.71
5.6.120.0110.04418.33
5.6.110.0090.03118.30
5.6.100.0110.04918.31
5.6.90.0270.03418.38
5.6.80.0090.05118.09
5.6.70.0140.01415.79
5.6.60.0210.00715.54
5.6.50.0220.01115.52
5.6.40.0190.00615.59
5.6.30.0160.00515.56
5.6.20.0400.00815.52
5.6.10.0170.00715.66
5.6.00.0210.01015.59
5.5.380.0300.00715.68
5.5.370.0130.01715.61
5.5.360.0210.00915.57
5.5.350.0180.01215.50
5.5.340.0340.00915.48
5.5.330.0170.01115.46
5.5.320.0210.00515.56
5.5.310.0240.01215.59
5.5.300.0240.01615.41
5.5.290.0200.00915.44
5.5.280.0160.04218.12
5.5.270.0110.02518.30
5.5.260.0140.03518.15
5.5.250.0170.04618.10
5.5.240.0060.02218.05
5.5.230.0210.00915.77
5.5.220.0180.00915.68
5.5.210.0160.01615.64
5.5.200.0150.01215.52
5.5.190.0160.01615.46
5.5.180.0170.00915.44
5.5.170.0210.00715.38
5.5.160.0170.00715.46
5.5.150.0150.01215.34
5.5.140.0120.01215.23
5.5.130.0160.01315.25
5.5.120.0190.00615.32
5.5.110.0160.01315.31
5.5.100.0150.01015.44
5.5.90.0130.01315.50
5.5.80.0160.01215.55
5.5.70.0260.01115.58
5.5.60.0180.01415.51
5.5.50.0190.01415.50
5.5.40.0160.01015.52
5.5.30.0130.01315.54
5.5.20.0180.00815.63
5.5.10.0180.01115.52
5.5.00.0120.01215.40
5.4.450.0110.00712.38
5.4.440.0460.03616.02
5.4.430.0460.02915.92
5.4.420.0550.02616.04
5.4.410.0400.02815.84
5.4.400.0470.03315.82
5.4.390.0400.03215.85
5.4.380.0480.03115.80
5.4.370.0430.03315.61
5.4.360.0440.02915.79
5.4.350.0390.03615.85
5.4.340.0450.02915.82
5.4.330.0130.00912.32
5.4.320.0310.04215.82
5.4.310.0430.03815.84
5.4.300.0380.03015.75
5.4.290.0460.02715.86
5.4.280.0500.02515.79
5.4.270.0530.02815.77
5.4.260.0370.02715.75
5.4.250.0430.03115.61
5.4.240.0470.03115.83
5.4.230.0420.03415.73
5.4.220.0430.03015.69
5.4.210.0380.03115.66
5.4.200.0490.02514.56
5.4.190.0490.03915.70
5.4.180.0390.03315.58
5.4.170.0450.03015.74
5.4.160.0470.02815.63
5.4.150.0470.03215.61
5.4.140.0440.03114.39
5.4.130.0510.02814.62
5.4.120.0460.02514.53
5.4.110.0480.02714.55
5.4.100.0410.03314.51
5.4.90.0480.02714.48
5.4.80.0560.02914.37
5.4.70.0450.03014.50
5.4.60.0460.02614.49
5.4.50.0430.02914.40
5.4.40.0440.03114.40
5.4.30.0490.02514.36
5.4.20.0470.02814.41
5.4.10.0470.02714.37
5.4.00.0440.02414.06

preferences:
39.76 ms | 400 KiB | 5 Q