3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassA { public function foo(){ echo get_class($this); } } class ClassB extends ClassA { public function foo(){ echo get_class($this); // prints ClassB parent::foo(); // prints ClassB also } } $B = new ClassB(); $B->foo();

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.0070.00716.50
8.3.50.0270.00521.92
8.3.40.0120.00318.68
8.3.30.0090.00618.96
8.3.20.0040.00420.21
8.3.10.0060.00323.64
8.3.00.0000.00819.25
8.2.180.0090.00616.63
8.2.170.0070.01422.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0140.00326.16
8.2.120.0080.00022.27
8.2.110.0090.00022.23
8.2.100.0070.00417.91
8.2.90.0000.00719.22
8.2.80.0040.00418.03
8.2.70.0000.00817.25
8.2.60.0050.00318.03
8.2.50.0040.00418.07
8.2.40.0080.00017.98
8.2.30.0000.00817.98
8.2.20.0030.00517.59
8.2.10.0040.00417.86
8.2.00.0050.00317.51
8.1.280.0090.00625.92
8.1.270.0050.00323.93
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.86
8.1.230.0080.00319.21
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0110.00017.35
8.1.190.0080.00017.52
8.1.180.0060.00318.10
8.1.170.0000.00918.53
8.1.160.0040.00421.86
8.1.150.0040.00418.48
8.1.140.0000.00717.38
8.1.130.0000.00717.73
8.1.120.0000.00717.43
8.1.110.0080.00017.41
8.1.100.0040.00417.29
8.1.90.0070.00017.40
8.1.80.0020.00517.37
8.1.70.0000.00717.34
8.1.60.0050.00317.59
8.1.50.0090.00017.40
8.1.40.0080.00017.41
8.1.30.0030.00517.56
8.1.20.0040.00417.60
8.1.10.0000.00717.46
8.1.00.0000.00717.51
8.0.300.0040.00418.77
8.0.290.0030.00517.28
8.0.280.0000.00818.50
8.0.270.0000.00817.25
8.0.260.0070.00017.36
8.0.250.0030.00316.84
8.0.240.0070.00016.84
8.0.230.0030.00316.89
8.0.220.0030.00316.80
8.0.210.0030.00316.84
8.0.200.0030.00316.75
8.0.190.0040.00416.88
8.0.180.0040.00416.74
8.0.170.0000.00816.80
8.0.160.0040.00416.70
8.0.150.0080.00016.80
8.0.140.0000.00716.71
8.0.130.0000.00613.23
8.0.120.0000.00716.66
8.0.110.0080.00016.84
8.0.100.0040.00416.68
8.0.90.0040.00416.81
8.0.80.0090.00616.73
8.0.70.0030.00316.82
8.0.60.0000.00716.77
8.0.50.0040.00416.71
8.0.30.0110.00817.12
8.0.20.0100.00817.40
8.0.10.0070.00016.77
8.0.00.0080.00916.72
7.4.330.0020.00215.00
7.4.320.0000.00616.43
7.4.300.0030.00316.58
7.4.290.0030.00316.51
7.4.280.0000.01016.53
7.4.270.0070.00016.60
7.4.260.0000.00616.55
7.4.250.0000.00716.53
7.4.240.0040.00316.54
7.4.230.0070.00016.39
7.4.220.0140.00416.51
7.4.210.0090.00616.52
7.4.200.0000.00716.40
7.4.190.0070.00016.40
7.4.160.0090.00816.62
7.4.150.0140.00317.40
7.4.140.0120.00717.86
7.4.130.0090.00916.39
7.4.120.0070.01416.55
7.4.110.0060.01216.56
7.4.100.0130.00416.51
7.4.90.0040.01516.41
7.4.80.0060.00919.39
7.4.70.0090.00916.64
7.4.60.0060.00916.46
7.4.50.0000.00816.59
7.4.40.0040.01122.77
7.4.30.0120.00616.60
7.4.00.0130.00314.86
7.3.330.0050.00013.24
7.3.320.0000.00513.16
7.3.310.0040.00416.20
7.3.300.0070.00016.12
7.3.290.0070.01116.26
7.3.280.0140.00516.26
7.3.270.0100.00717.40
7.3.260.0110.00616.43
7.3.250.0100.00816.29
7.3.240.0090.01316.18
7.3.230.0030.01316.43
7.3.210.0070.01116.37
7.3.200.0130.01019.39
7.3.190.0160.00316.34
7.3.180.0090.00616.41
7.3.170.0120.00916.34
7.3.160.0080.00816.27
7.3.120.0070.00914.81
7.3.110.0100.00614.66
7.3.100.0030.01014.59
7.3.90.0100.00714.93
7.3.80.0000.01214.93
7.3.70.0070.00414.51
7.3.60.0040.00414.68
7.3.50.0040.00814.84
7.3.40.0030.00614.72
7.3.30.0060.00614.65
7.3.20.0000.01416.64
7.3.10.0060.00916.74
7.3.00.0060.00616.60
7.2.330.0060.01316.59
7.2.320.0060.01316.46
7.2.310.0090.01116.64
7.2.300.0130.00316.71
7.2.290.0060.01016.48
7.2.250.0110.00715.27
7.2.240.0070.01315.13
7.2.230.0040.01114.98
7.2.220.0040.01214.82
7.2.210.0080.00615.24
7.2.200.0030.00615.07
7.2.190.0030.01215.06
7.2.180.0060.00315.04
7.2.170.0060.00615.00
7.2.60.0060.01016.58
7.2.00.0040.00819.38
7.1.330.0040.01115.92
7.1.320.0000.01015.97
7.1.310.0050.00315.52
7.1.300.0100.00715.59
7.1.290.0060.00615.73
7.1.280.0040.00815.91
7.1.270.0030.00915.66
7.1.260.0060.00615.69
7.1.200.0030.00915.78
7.1.100.0070.00318.30
7.1.70.0060.00617.13
7.1.60.0100.01619.46
7.1.50.0070.01716.63
7.1.00.0030.09022.57
7.0.200.0130.00314.50
7.0.140.0030.07322.08
7.0.60.0100.06719.89
7.0.50.0030.07017.87
7.0.40.0130.03320.11
7.0.30.0670.06020.35
7.0.20.0230.05320.28
7.0.10.0300.05320.10
7.0.00.0070.04720.20
5.6.210.0100.07720.63
5.6.200.0030.08318.16
5.6.190.0030.04320.52
5.6.180.0230.04720.67
5.6.170.0270.04020.47
5.6.160.0030.04320.44
5.6.150.0000.04718.14
5.6.140.0070.08018.18
5.6.130.0100.04018.29
5.6.120.0130.05021.13
5.6.110.0170.07320.99
5.6.100.0100.05321.12
5.6.90.0100.07020.98
5.6.80.0030.04020.51
5.6.70.4500.03320.46
5.5.350.0130.03320.36
5.5.340.0030.03718.05
5.5.330.0100.07020.31
5.5.320.0270.03720.36
5.5.310.0100.04720.27
5.5.300.0070.04717.96
5.5.290.0100.06718.08
5.5.280.0100.08320.89
5.5.270.0070.04720.77
5.5.260.0130.03320.77
5.5.250.0070.08320.72
5.5.240.0070.07720.27
5.4.450.0100.06019.63
5.4.440.0170.05719.59
5.4.430.0200.05019.61
5.4.420.0200.06019.45
5.4.410.0130.06719.21
5.4.400.0100.05319.06
5.4.390.0270.05319.37
5.4.380.0330.05318.79
5.4.370.0570.04718.57
5.4.360.0300.05318.52
5.4.350.0170.06018.57
5.4.340.0230.05718.47
5.4.320.0100.03712.50
5.4.310.0110.03512.50
5.4.300.0060.03712.50
5.4.290.0110.03312.48
5.4.280.0070.04512.38
5.4.270.0070.04212.38
5.4.260.0080.05012.38
5.4.250.0050.06112.38
5.4.240.0060.04012.38
5.4.230.0090.03712.38
5.4.220.0040.03612.37
5.4.210.0050.03612.38
5.4.200.0030.04212.37
5.4.190.0070.04412.37
5.4.180.0050.03712.37
5.4.170.0050.03612.38
5.4.160.0030.03812.38
5.4.150.0040.03712.37
5.4.140.0070.03612.06
5.4.130.0050.03612.04
5.4.120.0030.03812.00
5.4.110.0030.03812.00
5.4.100.0060.03412.00
5.4.90.0090.05012.00
5.4.80.0100.04512.00
5.4.70.0060.04112.00
5.4.60.0070.03412.00
5.4.50.0040.03712.00
5.4.40.0040.03611.98
5.4.30.0030.03811.98
5.4.20.0060.03511.98
5.4.10.0050.03611.98
5.4.00.0060.03611.47
5.3.290.0030.04212.80
5.3.280.0120.04812.71
5.3.270.0060.04312.72
5.3.260.0080.03812.72
5.3.250.0050.04312.72
5.3.240.0060.04012.72
5.3.230.0070.04912.71
5.3.220.0100.05112.68
5.3.210.0050.05912.68
5.3.200.0090.04712.68
5.3.190.0080.04612.68
5.3.180.0060.03712.67
5.3.170.0080.04612.67
5.3.160.0100.04512.67
5.3.150.0060.04012.67
5.3.140.0080.04412.66
5.3.130.0070.04012.66
5.3.120.0060.04412.66
5.3.110.0040.03912.66
5.3.100.0020.04012.12
5.3.90.0030.03912.10
5.3.80.0070.03512.10
5.3.70.0070.03712.10
5.3.60.0060.03612.08
5.3.50.0060.03712.03
5.3.40.0040.03912.03
5.3.30.0050.04811.98
5.3.20.0110.04611.77
5.3.10.0080.04911.73
5.3.00.0060.05311.72
5.2.170.0040.0369.22
5.2.160.0030.0329.22
5.2.150.0030.0329.22
5.2.140.0040.0319.22
5.2.130.0050.0329.18
5.2.120.0040.0289.18
5.2.110.0050.0299.19
5.2.100.0060.0279.18
5.2.90.0040.0369.18
5.2.80.0090.0379.17
5.2.70.0060.0369.18
5.2.60.0060.0309.13
5.2.50.0040.0319.09
5.2.40.0040.0309.08
5.2.30.0040.0319.05
5.2.20.0130.0479.04
5.2.10.0070.0408.94
5.2.00.0080.0358.80
5.1.60.0030.0258.09
5.1.50.0040.0258.09
5.1.40.0070.0248.07
5.1.30.0080.0448.42
5.1.20.0130.0828.44
5.1.10.0080.0288.17
5.1.00.0030.0328.17
5.0.50.0070.0266.64
5.0.40.0040.0276.50
5.0.30.0020.0386.32
5.0.20.0100.0816.28
5.0.10.0050.0326.26
5.0.00.0050.0416.25
4.4.90.0070.0204.78
4.4.80.0040.0174.76
4.4.70.0060.0154.75
4.4.60.0030.0184.75
4.4.50.0050.0154.77
4.4.40.0010.0294.71
4.4.30.0060.0194.76
4.4.20.0080.0314.84
4.4.10.0080.0214.85
4.4.00.0060.0304.76
4.3.110.0030.0214.67
4.3.100.0070.0194.67
4.3.90.0050.0204.63
4.3.80.0020.0264.59
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0030.0164.63
4.3.40.0010.0254.54
4.3.30.0000.0183.30
4.3.20.0020.0163.28
4.3.10.0030.0193.23
4.3.00.0200.01310.55

preferences:
32.44 ms | 401 KiB | 5 Q