3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class Y { function bar() { var_dump(get_called_class()); } } class X extends Y { function foo() { Y::bar(); } } (new X)->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.40.0040.01118.81
8.3.30.0100.00319.09
8.3.20.0040.00420.16
8.3.10.0040.00423.66
8.3.00.0080.00019.13
8.2.170.0040.01122.96
8.2.160.0110.00420.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00321.16
8.2.110.0030.00620.52
8.2.100.0070.00417.97
8.2.90.0130.00019.14
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0040.00417.90
8.2.50.0030.00618.07
8.2.40.0000.00818.09
8.2.30.0050.00317.86
8.2.20.0080.00017.43
8.2.10.0040.00417.90
8.2.00.0040.00417.51
8.1.270.0090.00023.70
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0050.00522.14
8.1.230.0040.00819.04
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.22
8.1.190.0080.00017.10
8.1.180.0000.01018.10
8.1.170.0000.00818.52
8.1.160.0000.00721.87
8.1.150.0000.00718.77
8.1.140.0040.00417.23
8.1.130.0030.00317.80
8.1.120.0050.00217.32
8.1.110.0040.00417.31
8.1.100.0000.00717.15
8.1.90.0050.00317.34
8.1.80.0000.00817.22
8.1.70.0000.00717.25
8.1.60.0040.00417.53
8.1.50.0030.00517.34
8.1.40.0000.00717.48
8.1.30.0030.00617.59
8.1.20.0040.00417.42
8.1.10.0050.00317.51
8.1.00.0040.00417.46
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.31
8.0.270.0000.00717.13
8.0.260.0030.00318.33
8.0.250.0040.00416.93
8.0.240.0040.00416.76
8.0.230.0070.00016.84
8.0.220.0000.00616.69
8.0.210.0040.00416.89
8.0.200.0000.00616.82
8.0.190.0080.00016.80
8.0.180.0000.00816.85
8.0.170.0000.00816.80
8.0.160.0050.00316.89
8.0.150.0000.00716.71
8.0.140.0000.00716.67
8.0.130.0050.00513.20
8.0.120.0030.00616.63
8.0.110.0040.00416.79
8.0.100.0040.00416.60
8.0.90.0040.00416.71
8.0.80.0110.00416.79
8.0.70.0000.00816.57
8.0.60.0070.00016.63
8.0.50.0000.00916.88
8.0.30.0130.00516.95
8.0.20.0110.01217.40
8.0.10.0000.00716.84
8.0.00.0040.01316.48
7.4.330.0000.00615.03
7.4.320.0000.00716.38
7.4.300.0030.00516.52
7.4.290.0000.00716.42
7.4.280.0030.00316.29
7.4.270.0030.00316.36
7.4.260.0000.00716.41
7.4.250.0000.00716.32
7.4.240.0030.00416.55
7.4.230.0030.00316.63
7.4.220.0040.01416.48
7.4.210.0090.00916.36
7.4.200.0070.00016.64
7.4.160.0100.00716.61
7.4.150.0130.01017.40
7.4.140.0070.01017.86
7.4.130.0070.01016.31
7.4.120.0040.01316.45
7.4.110.0150.00416.45
7.4.100.0100.00716.51
7.4.90.0150.00316.55
7.4.80.0090.01519.39
7.4.70.0070.01016.27
7.4.60.0100.00616.42
7.4.50.0030.00516.44
7.4.40.0150.00716.54
7.4.30.0000.01416.45
7.4.00.0100.00414.92
7.3.330.0030.00313.09
7.3.320.0030.00313.17
7.3.310.0000.00716.26
7.3.300.0000.00716.18
7.3.290.0100.00616.18
7.3.280.0100.00916.20
7.3.270.0080.01417.40
7.3.260.0140.01416.54
7.3.250.0110.00816.29
7.3.240.0120.01216.11
7.3.230.0070.01116.39
7.3.210.0080.00816.08
7.3.200.0040.01319.39
7.3.190.0080.00816.46
7.3.180.0080.00816.18
7.3.170.0120.00316.27
7.3.160.0090.00916.32
7.3.120.0050.01314.87
7.3.110.0090.00914.52
7.3.100.0050.01114.69
7.3.90.0050.00814.79
7.3.80.0050.00514.92
7.3.70.0060.00514.68
7.3.60.0050.00914.52
7.3.50.0040.00714.57
7.3.40.0000.01114.59
7.3.30.0040.00814.55
7.3.20.0030.01216.54
7.3.10.0030.00916.59
7.3.00.0070.00816.48
7.2.330.0060.01216.59
7.2.320.0120.00616.43
7.2.310.0060.00916.44
7.2.300.0100.01016.52
7.2.290.0060.01016.61
7.2.250.0050.01414.70
7.2.240.0110.00815.00
7.2.230.0050.01014.65
7.2.220.0020.00914.87
7.2.210.0030.00814.78
7.2.200.0050.00814.95
7.2.190.0040.01014.87
7.2.180.0060.00514.71
7.2.170.0030.01014.89
7.2.60.0090.00316.84
7.2.00.0040.01119.35
7.1.330.0080.00815.68
7.1.320.0080.00215.67
7.1.310.0020.01315.71
7.1.300.0070.00415.51
7.1.290.0040.00615.59
7.1.280.0020.00815.57
7.1.270.0020.01215.67
7.1.260.0140.00215.70
7.1.200.0000.01315.66
7.1.100.0000.00817.95
7.1.70.0000.01017.06
7.1.60.0070.01719.46
7.1.50.0160.00916.98
7.1.00.0030.07722.30
7.0.200.0030.00916.66
7.0.140.0070.06721.95
7.0.60.0000.08719.97
7.0.50.0030.04017.85
7.0.40.0000.05020.18
7.0.30.0570.07320.23
7.0.20.0270.03720.15
7.0.10.0030.09720.09
7.0.00.0100.03720.11
5.6.280.0030.06320.83
5.6.210.0030.04020.53
5.6.200.0100.08018.22
5.6.190.0030.04320.47
5.6.180.3700.04320.61
5.6.170.0330.05320.62
5.6.160.0000.04320.45
5.6.150.0000.04718.27
5.6.140.0070.08318.13
5.6.130.0100.08318.11
5.6.120.0070.09021.15
5.6.110.0100.08320.89
5.6.100.0170.06721.14
5.6.90.0000.09321.09
5.6.80.0100.07720.38
5.6.70.4700.03320.35
5.5.350.0230.07320.45
5.5.340.0170.07317.92
5.5.330.0030.05720.43
5.5.320.0400.06020.32
5.5.310.0330.06020.42
5.5.300.0070.07317.95
5.5.290.0130.06317.93
5.5.280.0100.07020.74
5.5.270.0030.09020.77
5.5.260.0070.08020.87
5.5.250.0100.08320.70
5.5.240.0200.08020.32
5.4.450.0400.04319.16
5.4.440.0530.05019.63
5.4.430.0170.05019.43
5.4.420.0370.03719.54
5.4.410.0470.05019.14
5.4.400.0230.04019.21
5.4.390.0230.05319.09
5.4.380.0530.05018.48
5.4.370.0370.05318.82
5.4.360.0470.04718.70
5.4.350.0170.06318.77
5.4.340.0430.05318.73
5.4.320.0070.04112.51
5.4.310.0080.04012.50
5.4.300.0100.04612.50
5.4.290.0050.04312.50
5.4.280.0090.03512.40
5.4.270.0060.03812.40
5.4.260.0050.03912.39
5.4.250.0060.03712.40
5.4.240.0050.03712.40
5.4.230.0050.04412.39
5.4.220.0060.03812.39
5.4.210.0050.04412.39
5.4.200.0040.03912.39
5.4.190.0100.04112.38
5.4.180.0050.03712.39
5.4.170.0040.03812.40
5.4.160.0070.03612.39
5.4.150.0050.03812.39
5.4.140.0080.03712.07
5.4.130.0090.04212.07
5.4.120.0070.03512.02
5.4.110.0050.03612.01
5.4.100.0050.03712.00
5.4.90.0070.03712.02
5.4.80.0060.04212.02
5.4.70.0070.04212.02
5.4.60.0050.03612.01
5.4.50.0060.03512.01
5.4.40.0020.03912.00
5.4.30.0070.03412.00
5.4.20.0050.03712.00
5.4.10.0070.03412.00
5.4.00.0040.03811.48
5.3.290.0030.04512.80
5.3.280.0060.03612.71
5.3.270.0050.03912.72
5.3.260.0090.04812.72
5.3.250.0070.04412.72
5.3.240.0080.04212.72
5.3.230.0080.04012.71
5.3.220.0080.04012.68
5.3.210.0070.04012.68
5.3.200.0070.03612.68
5.3.190.0060.03912.68
5.3.180.0040.04612.68
5.3.170.0070.03612.67
5.3.160.0080.03512.67
5.3.150.0040.04112.68
5.3.140.0060.03712.66
5.3.130.0050.03912.66
5.3.120.0060.03912.65
5.3.110.0050.04012.66
5.3.100.0050.04012.13
5.3.90.0070.04412.11
5.3.80.0040.03812.10
5.3.70.0070.03512.10
5.3.60.0040.03712.08
5.3.50.0090.03312.03
5.3.40.0070.04012.03
5.3.30.0040.03911.98
5.3.20.0060.03411.77
5.3.10.0030.03611.74
5.3.00.0060.03511.72
5.2.170.0070.0309.22
5.2.160.0040.0369.23
5.2.150.0050.0309.23
5.2.140.0050.0339.23
5.2.130.0090.0349.18
5.2.120.0060.0299.18
5.2.110.0080.0279.19
5.2.100.0060.0289.18
5.2.90.0060.0319.18
5.2.80.0070.0379.18
5.2.70.0050.0429.18
5.2.60.0030.0349.13
5.2.50.0040.0309.10
5.2.40.0050.0319.08
5.2.30.0040.0349.05
5.2.20.0050.0319.04
5.2.10.0060.0278.95
5.2.00.0040.0298.80
5.1.60.0050.0238.10
5.1.50.0050.0238.09
5.1.40.0040.0268.08
5.1.30.0040.0268.42
5.1.20.0060.0258.45
5.1.10.0050.0288.18
5.1.00.0060.0238.17
5.0.50.0040.0206.64
5.0.40.0050.0196.51
5.0.30.0010.0336.32
5.0.20.0020.0216.28
5.0.10.0040.0206.27
5.0.00.0040.0306.26
4.4.90.0040.0184.78
4.4.80.0040.0144.75
4.4.70.0030.0164.76
4.4.60.0040.0144.76
4.4.50.0060.0154.77
4.4.40.0020.0264.71
4.4.30.0010.0204.76
4.4.20.0040.0144.85
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0030.0164.67
4.3.100.0030.0154.66
4.3.90.0030.0184.63
4.3.80.0040.0254.59
4.3.70.0020.0154.63
4.3.60.0020.0164.63
4.3.50.0030.0164.63
4.3.40.0030.0244.54
4.3.30.0030.0153.30
4.3.20.0040.0143.28
4.3.10.0030.0173.24
4.3.00.0070.01315.68

preferences:
42.44 ms | 400 KiB | 5 Q