3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bar {} class foo extends bar {}; $a = new foo; var_dump($a instanceof bar); // true

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.0110.00718.18
8.3.50.0150.00721.27
8.3.40.0070.01118.85
8.3.30.0070.00720.34
8.3.20.0040.00420.33
8.3.10.0070.00022.09
8.3.00.0080.00022.27
8.2.180.0190.00316.75
8.2.170.0040.01122.96
8.2.160.0040.01120.39
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0070.00020.80
8.2.110.0030.00719.27
8.2.100.0110.00317.77
8.2.90.0000.00817.63
8.2.80.0000.00817.97
8.2.70.0040.00418.04
8.2.60.0000.00817.80
8.2.50.0050.00318.10
8.2.40.0000.00820.57
8.2.30.0070.00019.43
8.2.20.0030.00517.59
8.2.10.0040.00417.59
8.2.00.0030.00517.51
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00319.03
8.1.230.0070.00419.16
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00817.11
8.1.180.0060.00318.10
8.1.170.0050.00318.51
8.1.160.0080.00018.74
8.1.150.0030.00518.54
8.1.140.0030.00517.29
8.1.130.0070.00017.82
8.1.120.0040.00417.29
8.1.110.0000.00717.37
8.1.100.0040.00417.41
8.1.90.0000.00717.44
8.1.80.0000.00817.38
8.1.70.0000.00717.38
8.1.60.0040.00717.51
8.1.50.0000.00717.49
8.1.40.0040.00417.47
8.1.30.0050.00317.59
8.1.20.0060.00317.46
8.1.10.0040.00417.59
8.1.00.0000.00717.54
8.0.300.0000.00721.96
8.0.290.0070.00016.63
8.0.280.0070.00018.38
8.0.270.0070.00017.16
8.0.260.0030.00316.66
8.0.250.0050.00216.92
8.0.240.0030.00616.92
8.0.230.0000.00716.91
8.0.220.0070.00016.74
8.0.210.0040.00216.82
8.0.200.0070.00016.77
8.0.190.0000.00816.85
8.0.180.0000.00716.79
8.0.170.0030.00516.90
8.0.160.0030.00316.74
8.0.150.0000.00816.75
8.0.140.0040.00416.68
8.0.130.0000.00513.22
8.0.120.0040.00416.88
8.0.110.0000.00716.85
8.0.100.0050.00216.85
8.0.90.0080.00016.80
8.0.80.0150.00016.83
8.0.70.0030.00516.71
8.0.60.0050.00216.64
8.0.50.0050.00316.64
8.0.30.0080.01116.94
8.0.20.0150.00317.40
8.0.10.0020.00516.88
8.0.00.0090.00916.60
7.4.330.0030.00314.99
7.4.320.0000.00616.42
7.4.300.0030.00316.58
7.4.290.0040.00416.43
7.4.280.0040.00416.54
7.4.270.0040.00416.45
7.4.260.0050.00013.11
7.4.250.0040.00416.36
7.4.240.0020.00516.43
7.4.230.0030.00316.44
7.4.220.0070.01316.45
7.4.210.0100.00616.47
7.4.200.0040.00416.25
7.4.190.0030.00316.40
7.4.160.0120.00416.49
7.4.150.0190.00317.40
7.4.140.0100.00817.86
7.4.130.0120.00816.46
7.4.120.0100.00716.37
7.4.110.0130.00316.58
7.4.100.0170.00016.52
7.4.90.0170.00016.38
7.4.80.0070.01019.39
7.4.70.0130.00316.31
7.4.60.0100.00716.22
7.4.50.0000.00916.56
7.4.40.0100.00722.77
7.4.30.0080.00816.43
7.4.00.0120.00514.76
7.3.330.0050.00013.20
7.3.320.0000.00513.08
7.3.310.0030.00316.30
7.3.300.0040.00416.23
7.3.290.0070.00716.24
7.3.280.0030.01216.22
7.3.270.0100.00717.40
7.3.260.0070.01016.26
7.3.250.0100.00916.27
7.3.240.0100.01316.48
7.3.230.0130.00716.41
7.3.210.0120.01216.39
7.3.200.0040.01419.39
7.3.190.0100.01016.55
7.3.180.0030.01516.45
7.3.170.0100.00716.33
7.3.160.0100.00616.08
7.3.120.0060.01014.62
7.3.110.0000.01714.80
7.3.100.0040.00814.86
7.3.90.0030.00614.98
7.3.80.0000.00915.01
7.3.70.0110.00014.72
7.3.60.0140.00014.64
7.3.50.0030.01014.47
7.3.40.0070.00714.71
7.3.30.0060.00314.88
7.3.20.0040.01216.60
7.3.10.0040.01116.68
7.3.00.0060.00916.60
7.2.330.0090.00916.39
7.2.320.0030.01416.34
7.2.310.0040.01316.52
7.2.300.0100.00716.55
7.2.290.0160.00416.38
7.2.250.0060.01215.21
7.2.240.0060.01014.84
7.2.230.0080.00814.68
7.2.220.0060.00615.01
7.2.210.0090.00614.91
7.2.200.0030.00914.90
7.2.190.0050.00514.95
7.2.180.0030.00914.70
7.2.170.0040.00815.03
7.2.130.0060.00916.88
7.2.120.0080.00416.64
7.2.110.0100.00316.63
7.2.100.0110.00416.76
7.2.90.0090.00617.00
7.2.80.0030.00916.88
7.2.70.0000.01216.50
7.2.60.0130.00316.64
7.2.50.0000.01216.89
7.2.40.0080.00317.07
7.2.30.0090.00016.82
7.2.20.0030.01016.79
7.2.10.0060.00616.81
7.2.00.0020.00717.90
7.1.330.0030.01015.41
7.1.320.0030.01015.65
7.1.310.0090.00015.79
7.1.300.0040.01115.36
7.1.290.0110.00015.80
7.1.280.0110.00015.29
7.1.270.0060.00615.46
7.1.260.0000.01515.66
7.1.250.0000.01315.75
7.1.100.0040.00818.19
7.1.70.0040.00417.06
7.1.60.0130.01319.17
7.1.50.0130.01316.51
7.1.00.0030.06022.40
7.0.200.0160.01014.80
7.0.140.0000.07721.96
7.0.60.0070.08020.07
7.0.50.0030.08017.88
7.0.40.0170.08320.30
7.0.30.0270.08020.11
7.0.20.0270.05720.09
7.0.10.0100.08720.33
7.0.00.0070.04320.13
5.6.280.0030.07321.02
5.6.210.0100.07720.71
5.6.200.0270.03018.23
5.6.190.0070.08720.41
5.6.180.0200.04020.64
5.6.170.0370.07020.51
5.6.160.0130.07320.57
5.6.150.0070.06718.16
5.6.140.0100.03318.17
5.6.130.0100.05318.24
5.6.120.0000.04720.98
5.6.110.0000.04721.00
5.6.100.0070.06020.88
5.6.90.0030.08721.00
5.6.80.0100.06020.41
5.5.350.0000.08720.32
5.5.340.0100.04018.07
5.5.330.0030.09020.29
5.5.320.0370.08320.51
5.5.310.0300.07320.51
5.5.300.0130.05017.98
5.5.290.0030.04018.00
5.5.280.0100.03720.89
5.5.270.0070.06720.79
5.5.260.0130.08020.86
5.5.250.0070.06720.68
5.5.240.0200.06720.13
5.4.450.0200.07319.46
5.4.440.0200.07319.64
5.4.430.0370.06719.40
5.4.420.0270.07019.54
5.4.410.0200.05019.42
5.4.400.0330.06319.09
5.4.390.0270.07719.08
5.4.380.0230.07319.16
5.4.370.0230.07719.13
5.4.360.0430.03719.16
5.4.350.0330.06718.99
5.4.340.0230.08019.15
5.4.320.0300.06019.20
5.4.310.0170.04018.86
5.4.300.0170.05319.22
5.4.290.0200.03319.13
5.4.280.0130.04319.23
5.4.270.0200.03719.15
5.4.260.0170.03719.14
5.4.250.0170.04019.14
5.4.240.0130.04018.86
5.4.230.0170.04019.07
5.4.220.0200.03719.06
5.4.210.0170.03719.08
5.4.200.0130.04319.21
5.4.190.0270.03319.30
5.4.180.0100.04319.07
5.4.170.0200.04319.23
5.4.160.0170.03718.96
5.4.150.0100.04319.29
5.4.140.0270.02316.57
5.4.130.0130.03716.42
5.4.120.0170.04016.56
5.4.110.0200.03016.59
5.4.100.0170.03316.33
5.4.90.0130.03716.29
5.4.80.0270.02316.56
5.4.70.0170.03716.49
5.4.60.0200.04016.24
5.4.50.0270.03016.23
5.4.40.0170.04316.53
5.4.30.0230.05316.51
5.4.20.0270.04016.52
5.4.10.0270.05016.24
5.4.00.0170.04715.77
5.3.290.0230.06014.63
5.3.280.0270.03014.51
5.3.270.0170.03714.63
5.3.260.0130.03714.61
5.3.250.0200.03314.50
5.3.240.0230.03014.52
5.3.230.0300.03314.56
5.3.220.0270.02714.52
5.3.210.0200.03314.52
5.3.200.0200.04314.53
5.3.190.0170.03714.56
5.3.180.0270.03014.77
5.3.170.0170.03314.47
5.3.160.0270.05314.45
5.3.150.0200.04314.53
5.3.140.0170.07714.70
5.3.130.0230.07014.55
5.3.120.0230.07014.63
5.3.110.0130.04014.54
5.3.100.0370.05714.00
5.3.90.0230.06013.94
5.3.80.0370.05313.91
5.3.70.0270.03313.91
5.3.60.0200.03714.08
5.3.50.0200.04314.03
5.3.40.0300.06713.99
5.3.30.0330.06013.81
5.3.20.0200.06313.77
5.3.10.0170.04013.56
5.3.00.0230.03013.70
5.2.170.0170.03713.10
5.2.160.0270.03313.10
5.2.150.0230.06013.10
5.2.140.0270.05713.10
5.2.130.0200.04313.10
5.2.120.0200.04313.10
5.2.110.0270.03313.10
5.2.100.0130.03313.10
5.2.90.0200.03713.10
5.2.80.0270.05013.10
5.2.70.0270.05313.10
5.2.60.0300.03013.10
5.2.50.0170.06013.10
5.2.40.0170.03713.10
5.2.30.0170.03313.10
5.2.20.0130.04013.10
5.2.10.0130.04013.10
5.2.00.0170.05313.10
5.1.60.0170.03313.10
5.1.50.0130.02713.10
5.1.40.0230.04713.10
5.1.30.0200.02713.10
5.1.20.0170.05313.10
5.1.10.0130.03013.10
5.1.00.0130.04013.10
5.0.50.0100.02013.10
5.0.40.0100.02313.10
5.0.30.0070.05313.10
5.0.20.0170.03713.10
5.0.10.0130.03313.10
5.0.00.0100.06313.10
4.4.90.0030.02313.10
4.4.80.0030.02313.10
4.4.70.0130.02313.10
4.4.60.0100.01713.10
4.4.50.0030.02313.10
4.4.40.0130.04713.10
4.4.30.0030.02013.10
4.4.20.0100.02013.10
4.4.10.0070.01313.10
4.4.00.0070.04313.10
4.3.110.0030.02713.10
4.3.100.0030.02313.10
4.3.90.0100.03313.10
4.3.80.0130.05013.10
4.3.70.0030.03713.10
4.3.60.0030.03713.10
4.3.50.0030.02313.10
4.3.40.0100.02313.10
4.3.30.0030.02713.10
4.3.20.0030.03013.10
4.3.10.0030.03713.10
4.3.00.0030.03013.10

preferences:
45.37 ms | 401 KiB | 5 Q