3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function foo() { echo "A::foo\r\n"; } } class B extends A { function foo() { echo "B::foo\r\n"; } function sayIt(A $a) { $a->foo(); } } $a = new A; $b = new B; $a->foo(); $b->foo(); $b->sayIt(new B());

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.0090.00618.43
8.3.50.0120.00922.90
8.3.40.0120.00318.53
8.3.30.0140.00018.81
8.3.20.0050.00320.38
8.3.10.0050.00323.46
8.3.00.0040.00419.19
8.2.180.0120.00318.16
8.2.170.0030.01422.96
8.2.160.0110.00420.53
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0030.00626.16
8.2.120.0040.00421.08
8.2.110.0090.00021.09
8.2.100.0060.00617.59
8.2.90.0040.00417.84
8.2.80.0000.00819.82
8.2.70.0040.00417.50
8.2.60.0050.00317.63
8.2.50.0060.00317.55
8.2.40.0040.00418.22
8.2.30.0030.00617.91
8.2.20.0050.00317.54
8.2.10.0050.00317.87
8.2.00.0040.00417.61
8.1.280.0100.00725.92
8.1.270.0040.00422.20
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.42
8.1.230.0110.00021.04
8.1.220.0040.00417.75
8.1.210.0040.00418.77
8.1.200.0050.00317.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00518.50
8.1.160.0040.00421.89
8.1.150.0000.00718.79
8.1.140.0040.00417.47
8.1.130.0030.00317.70
8.1.120.0000.00717.36
8.1.110.0040.00417.34
8.1.100.0030.00317.38
8.1.90.0030.00317.27
8.1.80.0000.00817.26
8.1.70.0050.00317.28
8.1.60.0000.00817.59
8.1.50.0000.00817.55
8.1.40.0030.00617.39
8.1.30.0040.00417.57
8.1.20.0040.00417.66
8.1.10.0000.00817.54
8.1.00.0040.00417.49
8.0.300.0040.00419.89
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0000.00717.16
8.0.260.0030.00317.26
8.0.250.0000.00717.00
8.0.240.0030.00316.98
8.0.230.0000.00716.87
8.0.220.0040.00416.79
8.0.210.0070.00016.93
8.0.200.0060.00016.97
8.0.190.0030.00616.80
8.0.180.0000.00817.00
8.0.170.0000.00816.80
8.0.160.0000.00716.90
8.0.150.0070.00016.87
8.0.140.0080.00016.90
8.0.130.0000.00613.30
8.0.120.0020.00516.76
8.0.110.0000.00716.90
8.0.100.0030.00516.75
8.0.90.0040.00416.70
8.0.80.0050.01116.89
8.0.70.0040.00416.85
8.0.60.0040.00416.96
8.0.50.0040.00416.76
8.0.30.0150.01217.23
8.0.20.0120.00717.40
8.0.10.0040.00416.92
8.0.00.0050.01516.96
7.4.330.0060.00015.00
7.4.320.0030.00316.46
7.4.300.0000.00616.42
7.4.290.0030.00316.44
7.4.280.0070.00016.49
7.4.270.0030.00316.44
7.4.260.0040.00416.59
7.4.250.0000.00716.37
7.4.240.0070.00016.62
7.4.230.0070.00016.67
7.4.220.0130.01016.43
7.4.210.0070.00716.62
7.4.200.0030.00316.63
7.4.160.0080.00816.51
7.4.150.0150.00917.40
7.4.140.0060.01117.86
7.4.130.0040.01316.54
7.4.120.0100.00616.52
7.4.110.0060.01016.25
7.4.100.0060.01216.73
7.4.90.0030.01416.59
7.4.80.0100.00719.39
7.4.70.0070.01016.43
7.4.60.0030.01716.50
7.4.50.0030.00616.31
7.4.40.0080.00816.52
7.4.30.0060.01416.24
7.4.00.0000.01614.81
7.3.330.0050.00013.16
7.3.320.0030.00313.09
7.3.310.0030.00316.31
7.3.300.0000.00716.28
7.3.290.0090.00616.14
7.3.280.0050.01116.23
7.3.270.0130.00617.40
7.3.260.0140.00616.26
7.3.250.0130.00516.48
7.3.240.0030.01416.26
7.3.230.0070.01016.39
7.3.210.0090.00916.27
7.3.200.0080.00919.39
7.3.190.0170.00316.34
7.3.180.0090.00616.34
7.3.170.0040.01216.27
7.3.160.0070.01016.29
7.3.10.0080.00716.61
7.3.00.0060.00816.47
7.2.330.0060.01316.34
7.2.320.0080.00816.71
7.2.310.0060.01016.80
7.2.300.0070.01416.68
7.2.290.0090.00916.50
7.2.130.0050.01016.99
7.2.120.0040.00916.84
7.2.110.0070.00916.75
7.2.100.0050.00816.83
7.2.90.0060.00716.88
7.2.80.0100.00516.88
7.2.70.0060.00916.81
7.2.60.0060.00816.95
7.2.50.0070.00716.73
7.2.40.0050.01316.97
7.2.30.0050.00916.94
7.2.20.0030.01016.93
7.2.10.0070.00716.76
7.2.00.0070.01017.73
7.1.250.0050.00815.64
7.1.100.0090.00317.88
7.1.70.0000.00816.89
7.1.60.0030.02319.46
7.1.50.0070.01116.66
7.1.00.0070.07322.43
7.0.200.0070.00416.66
7.0.140.0100.06021.92
7.0.60.0130.05320.01
7.0.50.0070.07017.86
7.0.40.0100.07020.11
7.0.30.0270.07720.18
7.0.20.0170.08320.21
7.0.10.0100.09020.11
7.0.00.0000.09020.01
5.6.280.0070.07020.90
5.6.210.0130.08020.65
5.6.200.0000.07718.16
5.6.190.0100.08020.43
5.6.180.0330.06720.45
5.6.170.0270.05320.47
5.6.160.0030.04320.55
5.6.150.0100.07718.16
5.6.140.0100.08018.24
5.6.130.0100.07318.27
5.6.120.0030.06021.02
5.6.110.0070.08721.04
5.6.100.0070.04021.09
5.6.90.0070.08721.04
5.6.80.0070.08020.41
5.5.350.0030.08720.42
5.5.340.0030.05717.95
5.5.330.0100.06320.19
5.5.320.0100.07720.34
5.5.310.0270.08320.32
5.5.300.0030.08018.01
5.5.290.0070.05317.95
5.5.280.0100.07320.77
5.5.270.0070.04020.84
5.5.260.0100.07320.96
5.5.250.0030.04020.62
5.5.240.3800.03720.35
5.4.450.0100.03019.42
5.4.440.0200.04319.32
5.4.430.0200.05319.47
5.4.420.0270.04319.32
5.4.410.0230.03719.29
5.4.400.0130.03719.15
5.4.390.0330.04019.00
5.4.380.0270.05718.57
5.4.370.0370.06018.46
5.4.360.0570.04018.75
5.4.350.0400.07318.50
5.4.340.0370.05018.49
5.4.320.0030.04912.50
5.4.310.0060.04612.50
5.4.300.0050.03712.50
5.4.290.0030.04112.50
5.4.280.0080.04112.40
5.4.270.0060.03612.40
5.4.260.0000.04212.39
5.4.250.0040.03912.40
5.4.240.0040.03712.40
5.4.230.0090.03812.39
5.4.220.0030.03812.39
5.4.210.0120.03412.39
5.4.200.0050.04112.39
5.4.190.0070.03712.39
5.4.180.0070.03812.39
5.4.170.0050.04012.40
5.4.160.0100.03412.39
5.4.150.0070.03412.39
5.4.140.0050.03612.07
5.4.130.0020.04712.06
5.4.120.0070.04012.02
5.4.110.0070.03412.01
5.4.100.0060.03512.02
5.4.90.0090.03712.02
5.4.80.0060.03712.01
5.4.70.0060.03412.01
5.4.60.0070.03812.02
5.4.50.0040.03812.01
5.4.40.0060.03412.00
5.4.30.0040.03912.00
5.4.20.0050.03512.00
5.4.10.0050.03412.00
5.4.00.0060.03811.49
5.3.290.0110.03412.80
5.3.280.0050.03812.71
5.3.270.0080.03812.73
5.3.260.0050.04112.71
5.3.250.0090.03312.72
5.3.240.0090.03612.72
5.3.230.0050.04012.71
5.3.220.0050.04712.68
5.3.210.0080.04112.68
5.3.200.0060.03512.68
5.3.190.0060.04612.68
5.3.180.0090.04412.68
5.3.170.0080.03312.67
5.3.160.0030.03812.67
5.3.150.0090.03312.67
5.3.140.0070.04012.66
5.3.130.0060.04412.66
5.3.120.0070.04012.66
5.3.110.0070.04412.66
5.3.100.0080.03412.12
5.3.90.0060.03912.10
5.3.80.0080.03512.09
5.3.70.0040.03712.09
5.3.60.0060.04012.08
5.3.50.0080.03412.03
5.3.40.0060.04012.03
5.3.30.0060.03711.98
5.3.20.0070.03911.77
5.3.10.0080.03411.73
5.3.00.0050.03611.72
5.2.170.0050.0339.23
5.2.160.0050.0309.22
5.2.150.0040.0299.22
5.2.140.0070.0319.22
5.2.130.0040.0319.18
5.2.120.0070.0279.18
5.2.110.0030.0339.19
5.2.100.0080.0259.18
5.2.90.0040.0309.18
5.2.80.0060.0339.18
5.2.70.0040.0319.18
5.2.60.0020.0339.13
5.2.50.0060.0289.10
5.2.40.0020.0309.07
5.2.30.0040.0299.05
5.2.20.0090.0329.04
5.2.10.0020.0308.94
5.2.00.0070.0318.80
5.1.60.0050.0228.10
5.1.50.0050.0288.09
5.1.40.0020.0268.07
5.1.30.0060.0248.41
5.1.20.0020.0278.45
5.1.10.0070.0278.17
5.1.00.0040.0258.16
5.0.50.0070.0206.64
5.0.40.0050.0176.50
5.0.30.0040.0316.32
5.0.20.0030.0196.29
5.0.10.0040.0266.26
5.0.00.0030.0306.25
4.4.90.0030.0174.78
4.4.80.0020.0164.75
4.4.70.0050.0164.75
4.4.60.0040.0194.75
4.4.50.0040.0144.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0050.0134.84
4.4.10.0020.0194.85
4.4.00.0010.0264.76
4.3.110.0020.0184.67
4.3.100.0020.0154.67
4.3.90.0010.0164.63
4.3.80.0020.0264.59
4.3.70.0020.0164.63
4.3.60.0030.0134.62
4.3.50.0000.0184.63
4.3.40.0010.0254.54
4.3.30.0030.0153.31
4.3.20.0010.0173.29
4.3.10.0030.0193.25
4.3.00.0030.01718.42

preferences:
47.14 ms | 401 KiB | 5 Q