3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function getClass() { echo getclass($this); } } class B extends A { } (new A())->getClass(); (new B())->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.3.60.0000.01418.28
8.3.50.0050.01021.95
8.3.40.0140.00418.78
8.3.30.0140.00019.04
8.3.20.0040.00420.18
8.3.10.0000.00821.77
8.3.00.0040.00419.02
8.2.180.0130.00716.63
8.2.170.0070.01122.96
8.2.160.0140.00020.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00720.93
8.2.110.0030.00620.55
8.2.100.0110.00019.39
8.2.90.0180.00017.25
8.2.80.0060.00318.78
8.2.70.0040.00417.80
8.2.60.0030.00517.80
8.2.50.0040.00418.10
8.2.40.0000.00819.08
8.2.30.0070.00022.22
8.2.20.0050.00317.55
8.2.10.0040.00417.89
8.2.00.0000.00717.65
8.1.280.0100.00725.92
8.1.270.0050.00318.73
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.14
8.1.230.0070.00417.83
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0080.00017.23
8.1.190.0030.00617.00
8.1.180.0040.00418.10
8.1.170.0080.00018.48
8.1.160.0070.00018.80
8.1.150.0040.00418.88
8.1.140.0030.00517.27
8.1.130.0040.00417.75
8.1.120.0050.00217.34
8.1.110.0000.00817.36
8.1.100.0000.00717.23
8.1.90.0050.00217.34
8.1.80.0000.00717.25
8.1.70.0070.00017.36
8.1.60.0000.00817.54
8.1.50.0030.00617.43
8.1.40.0000.00817.33
8.1.30.0040.00417.47
8.1.20.0040.00417.46
8.1.10.0000.00717.41
8.1.00.0000.00717.44
8.0.300.0030.00518.77
8.0.290.0000.00816.63
8.0.280.0000.00718.37
8.0.270.0030.00317.20
8.0.260.0060.00017.04
8.0.250.0070.00016.91
8.0.240.0030.00316.84
8.0.230.0040.00416.94
8.0.220.0060.00016.93
8.0.210.0070.00016.94
8.0.200.0040.00416.89
8.0.190.0060.00316.88
8.0.180.0040.00416.89
8.0.170.0040.00416.77
8.0.160.0000.00716.88
8.0.150.0000.00716.81
8.0.140.0000.00716.82
8.0.130.0060.00013.37
8.0.120.0040.00416.73
8.0.110.0000.00716.82
8.0.100.0070.00016.99
8.0.90.0000.00716.71
8.0.80.0070.01416.85
8.0.70.0000.00716.70
8.0.60.0000.00716.68
8.0.50.0030.00316.75
8.0.30.0090.01117.04
8.0.20.0130.00617.40
8.0.10.0000.00716.81
8.0.00.0170.00516.61
7.4.330.0000.00515.03
7.4.320.0000.00616.47
7.4.300.0000.00716.45
7.4.290.0000.00716.51
7.4.280.0040.00416.54
7.4.270.0060.00016.41
7.4.260.0060.00316.55
7.4.250.0000.00716.49
7.4.240.0030.00416.58
7.4.230.0000.00716.60
7.4.220.0100.01316.53
7.4.210.0030.01216.37
7.4.200.0030.00316.59
7.4.160.0130.00316.50
7.4.150.0130.01017.40
7.4.140.0120.00917.86
7.4.130.0130.00716.45
7.4.120.0080.00916.46
7.4.110.0120.00916.53
7.4.100.0070.01416.56
7.4.90.0100.01016.50
7.4.80.0140.00319.39
7.4.70.0070.01116.48
7.4.60.0030.01416.41
7.4.50.0050.00016.25
7.4.40.0100.00716.44
7.4.30.0120.00416.64
7.4.00.0090.00614.89
7.3.330.0000.00713.31
7.3.320.0020.00313.43
7.3.310.0030.00316.39
7.3.300.0060.00016.30
7.3.290.0050.00816.36
7.3.280.0090.00616.34
7.3.270.0070.01017.40
7.3.260.0130.00316.32
7.3.250.0100.00716.34
7.3.240.0070.01016.53
7.3.230.0090.00916.39
7.3.210.0040.01216.27
7.3.200.0030.01419.39
7.3.190.0130.00916.34
7.3.180.0080.00816.37
7.3.170.0120.00316.43
7.3.160.0090.00616.34
7.3.10.0090.00616.55
7.3.00.0070.00616.58
7.2.330.0130.01016.21
7.2.320.0070.01416.34
7.2.310.0100.01016.60
7.2.300.0100.01016.48
7.2.290.0120.00916.53
7.2.130.0090.00316.84
7.2.120.0030.00716.80
7.2.110.0090.00616.72
7.2.100.0070.00416.84
7.2.90.0100.00316.85
7.2.80.0000.00916.60
7.2.70.0030.00716.68
7.2.60.0070.01416.72
7.2.50.0060.00616.69
7.2.40.0100.00016.92
7.2.30.0080.00816.73
7.2.20.0100.00316.93
7.2.10.0030.00916.84
7.2.00.0040.00818.16
7.1.250.0030.00715.43
7.1.200.0090.00315.34
7.1.100.0000.01418.28
7.1.70.0160.00317.02
7.1.60.0130.00619.57
7.1.50.0070.01416.84
7.1.00.0100.06722.30
7.0.200.0050.00516.37
7.0.140.0000.07021.99
7.0.60.0070.09019.91
7.0.50.0100.07317.84
7.0.40.0130.08320.24
7.0.30.0200.05020.20
7.0.20.0300.07320.10
7.0.10.0170.04320.18
7.0.00.0100.06720.06
5.6.280.0100.06721.01
5.6.210.0000.04320.55
5.6.200.0070.07318.22
5.6.190.0100.05720.41
5.6.180.0200.04720.63
5.6.170.0230.08020.55
5.6.160.0070.07320.61
5.6.150.0100.04318.18
5.6.140.0000.05318.28
5.6.130.0170.07318.18
5.6.120.0000.09021.10
5.6.110.0070.07720.98
5.6.100.0170.06020.89
5.6.90.0100.07321.00
5.6.80.0030.07320.53
5.6.70.3930.04720.50
5.5.350.0200.04320.33
5.5.340.0200.03317.95
5.5.330.0000.05320.40
5.5.320.0330.04320.30
5.5.310.0200.06320.24
5.5.300.0070.07717.98
5.5.290.0070.07318.03
5.5.280.0070.08320.89
5.5.270.0070.08020.76
5.5.260.0000.05720.87
5.5.250.0000.04320.55
5.5.240.0200.02720.23
5.4.450.0700.07719.34
5.4.440.0670.07019.34
5.4.430.0130.05019.53
5.4.420.0130.05319.36
5.4.410.0070.05719.31
5.4.400.0130.06719.16
5.4.390.0100.06719.07
5.4.380.0230.05318.77
5.4.370.0270.05018.52
5.4.360.0130.05718.59
5.4.350.0170.06018.70
5.4.340.0200.05318.70
5.4.320.0230.05318.82
5.4.310.0200.07018.61
5.4.300.0200.05318.72
5.4.290.0170.06018.79
5.4.280.0200.05318.76
5.4.270.0200.05018.69
5.4.260.0170.05718.46
5.4.250.0300.04718.48
5.4.240.0230.05318.73
5.4.230.0230.05018.68
5.4.220.0270.05018.70
5.4.210.0170.05718.48
5.4.200.0270.05016.54
5.4.190.0200.05018.48
5.4.180.0200.05718.75
5.4.170.0130.06018.54
5.4.160.0170.05318.71
5.4.150.0130.06018.70
5.4.140.0170.05316.46
5.4.130.0270.04016.38
5.4.120.0100.06016.35
5.4.110.0170.05316.23
5.4.100.0170.05316.23
5.4.90.0200.05016.35
5.4.80.0170.05016.27
5.4.70.0270.04316.22
5.4.60.0200.05016.16
5.4.50.0200.04716.29
5.4.40.0200.05016.26
5.4.30.0130.05316.19
5.4.20.0300.04016.25
5.4.10.0270.04316.28
5.4.00.0170.05015.61
5.3.290.0130.06014.70
5.3.280.0170.06014.71
5.3.270.0270.04714.78
5.3.260.0270.04714.73
5.3.250.0170.05314.71
5.3.240.0170.05314.64
5.3.230.0270.04314.68
5.3.220.0170.05714.60
5.3.210.0200.06014.53
5.3.200.0200.05014.70
5.3.190.0170.05314.70
5.3.180.0200.05714.77
5.3.170.0270.04314.57
5.3.160.0100.06014.69
5.3.150.0270.04314.69
5.3.140.0230.05014.57
5.3.130.0330.04014.67
5.3.120.0200.05314.72
5.3.110.0330.04014.59
5.3.100.0200.04714.23
5.3.90.0130.06714.11
5.3.80.0230.05714.01
5.3.70.0230.04714.06
5.3.60.0200.05014.15
5.3.50.0200.05314.06
5.3.40.0130.06014.02
5.3.30.0170.05013.95
5.3.20.0170.05013.73
5.3.10.0330.03313.80
5.3.00.0100.05713.63
5.2.170.0200.03711.18
5.2.160.0170.04011.19
5.2.150.0170.04011.15
5.2.140.0200.03711.27
5.2.130.0270.04711.21
5.2.120.0300.04311.11
5.2.110.0200.04011.21
5.2.100.0100.04711.21
5.2.90.0130.04011.21
5.2.80.0130.04311.29
5.2.70.0200.03711.08
5.2.60.0130.04311.09
5.2.50.0170.03711.05
5.2.40.0070.05011.19
5.2.30.0100.04311.08
5.2.20.0130.04011.14
5.2.10.0100.04310.82
5.2.00.0170.04310.89
5.1.60.0100.03310.13
5.1.50.0070.04010.09
5.1.40.0100.03710.02
5.1.30.0130.04010.32
5.1.20.0170.05310.39
5.1.10.0030.04310.17
5.1.00.0100.04310.13
5.0.50.0100.0308.59
5.0.40.0100.0238.51
5.0.30.0030.0478.24
5.0.20.0070.0308.23
5.0.10.0030.0308.21
5.0.00.0100.0408.25
4.4.90.0070.0276.14
4.4.80.0030.0236.14
4.4.70.0030.0236.14
4.4.60.0100.0206.14
4.4.50.0070.0206.14
4.4.40.0100.0336.14
4.4.30.0170.0136.14
4.4.20.0070.0236.14
4.4.10.0030.0236.14
4.4.00.0100.0336.14
4.3.110.0030.0236.14
4.3.100.0070.0206.14
4.3.90.0030.0236.14
4.3.80.0000.0406.14
4.3.70.0170.0106.14
4.3.60.0100.0176.14
4.3.50.0100.0206.14
4.3.40.0070.0336.14
4.3.30.0070.0206.14
4.3.20.0030.0236.14
4.3.10.0070.0206.14
4.3.00.0170.0236.86

preferences:
61 ms | 401 KiB | 5 Q