3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace LOLOL; abstract class Abs { public function __toString() { return strtolower(self::class); /* Should print test, not abs :P */ } } class Test extends Abs { } $x = new Test; echo $x;

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.0040.01116.48
8.3.50.0060.01322.93
8.3.40.0180.00018.83
8.3.30.0080.00819.04
8.3.20.0050.00220.38
8.3.10.0040.00421.90
8.3.00.0090.00019.68
8.2.180.0180.00316.50
8.2.170.0090.00622.96
8.2.160.0100.00620.53
8.2.150.0040.00424.18
8.2.140.0110.00024.66
8.2.130.0060.01326.16
8.2.120.0040.00420.90
8.2.110.0000.01022.08
8.2.100.0110.00017.78
8.2.90.0040.00417.63
8.2.80.0090.00018.04
8.2.70.0030.00517.91
8.2.60.0070.00317.93
8.2.50.0060.00318.10
8.2.40.0090.00020.47
8.2.30.0020.00518.05
8.2.20.0070.00017.69
8.2.10.0040.00418.12
8.2.00.0000.00717.68
8.1.280.0070.01425.92
8.1.270.0030.00523.87
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0080.00023.80
8.1.230.0000.01218.95
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0060.00617.35
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0040.00418.61
8.1.160.0080.00021.92
8.1.150.0040.00418.75
8.1.140.0070.00017.45
8.1.130.0070.00017.76
8.1.120.0040.00417.44
8.1.110.0040.00417.49
8.1.100.0040.00417.36
8.1.90.0000.00817.37
8.1.80.0000.00717.32
8.1.70.0000.00717.30
8.1.60.0000.00817.58
8.1.50.0030.00517.55
8.1.40.0000.00717.55
8.1.30.0040.00417.71
8.1.20.0070.00017.67
8.1.10.0020.00517.48
8.1.00.0080.00017.43
8.0.300.0070.00019.77
8.0.290.0090.00016.75
8.0.280.0040.00418.36
8.0.270.0040.00417.17
8.0.260.0060.00017.25
8.0.250.0050.00216.86
8.0.240.0030.00616.91
8.0.230.0050.00216.88
8.0.220.0050.00216.89
8.0.210.0050.00216.91
8.0.200.0040.00416.83
8.0.190.0040.00417.01
8.0.180.0040.00416.85
8.0.170.0060.00316.98
8.0.160.0040.00416.94
8.0.150.0040.00416.88
8.0.140.0000.00716.86
8.0.130.0000.00713.32
8.0.120.0000.00816.73
8.0.110.0000.00716.82
8.0.100.0000.00716.68
8.0.90.0000.00716.92
8.0.80.0120.00916.89
8.0.70.0040.00416.77
8.0.60.0040.00416.95
8.0.50.0000.00816.75
8.0.30.0080.01117.11
8.0.20.0150.00617.40
8.0.10.0040.00417.04
8.0.00.0160.00616.68
7.4.330.0000.00515.02
7.4.320.0030.00316.43
7.4.300.0030.00316.43
7.4.290.0030.00316.54
7.4.280.0000.00716.54
7.4.270.0030.00316.52
7.4.260.0030.00316.33
7.4.250.0040.00416.55
7.4.240.0020.00616.51
7.4.230.0000.00816.68
7.4.220.0090.00916.56
7.4.210.0090.00616.38
7.4.200.0070.00016.66
7.4.160.0130.00316.34
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0120.00416.49
7.4.120.0100.00716.60
7.4.110.0120.01216.46
7.4.100.0090.01316.57
7.4.90.0030.01416.41
7.4.80.0140.01019.39
7.4.70.0140.00616.57
7.4.60.0060.01016.38
7.4.50.0030.00616.17
7.4.40.0100.01016.34
7.4.30.0040.01216.54
7.4.00.0070.00715.18
7.3.330.0000.00713.09
7.3.320.0050.00013.07
7.3.310.0000.00716.24
7.3.300.0080.00016.15
7.3.290.0100.01016.14
7.3.280.0090.00916.27
7.3.270.0130.00317.40
7.3.260.0100.00616.46
7.3.250.0080.01016.38
7.3.240.0100.01316.29
7.3.230.0110.00716.39
7.3.210.0130.00316.42
7.3.200.0090.01519.39
7.3.190.0100.00616.47
7.3.180.0090.00616.21
7.3.170.0130.00316.57
7.3.160.0060.01016.13
7.3.120.0060.00914.79
7.2.330.0100.01016.39
7.2.320.0130.00616.38
7.2.310.0030.01316.43
7.2.300.0080.00916.44
7.2.290.0290.02216.61
7.2.00.0060.00919.39
7.1.100.0060.01017.81
7.1.70.0000.00816.72
7.1.60.0090.01519.40
7.1.50.0030.02016.59
7.1.00.0000.07322.46
7.0.200.0030.00616.49
7.0.140.0030.07322.13
7.0.60.0100.07719.86
7.0.50.0130.06717.88
7.0.40.0170.03320.27
7.0.30.0300.05720.13
7.0.20.0300.06020.11
7.0.10.0100.09020.16
7.0.00.0070.08320.24
5.6.280.0130.06020.89
5.6.210.0070.08020.64
5.6.200.0130.08018.20
5.6.190.0030.04320.33
5.6.180.0270.06720.57
5.6.170.0230.05320.49
5.6.160.0100.07720.52
5.6.150.0170.06318.21
5.6.140.0070.06018.23
5.6.130.0100.08018.23
5.6.120.0070.08020.90
5.6.110.0130.07321.02
5.6.100.0030.08720.98
5.6.90.0070.07020.95
5.6.80.0200.04720.41
5.5.350.0030.07720.38
5.5.340.0070.04718.09
5.5.330.0170.07720.46
5.5.320.0030.09020.35
5.5.310.0270.06020.34
5.5.300.0000.04717.91
5.5.290.0100.03318.05
5.5.280.0030.04720.98
5.5.270.0030.04320.68
5.5.260.0100.05720.86
5.5.250.0100.04720.55
5.5.240.0100.04320.16
5.4.450.0170.05319.31
5.4.440.0430.03719.32
5.4.430.0170.04719.55
5.4.420.0400.04019.32
5.4.410.0530.05019.26
5.4.400.0170.04019.07
5.4.390.0230.06019.20
5.4.380.1000.05718.75
5.4.370.1070.04318.64
5.4.360.1030.04018.61
5.4.350.0700.05718.53
5.4.340.0830.05718.75
5.4.320.0070.04512.52
5.4.310.0050.03912.51
5.4.300.0030.04012.52
5.4.290.0080.03712.51
5.4.280.0100.03312.41
5.4.270.0050.03912.41
5.4.260.0060.04012.41
5.4.250.0050.04112.41
5.4.240.0080.03312.41
5.4.230.0050.03812.40
5.4.220.0070.03412.40
5.4.210.0070.03612.40
5.4.200.0110.04112.40
5.4.190.0050.03612.40
5.4.180.0060.03712.40
5.4.170.0080.03312.41
5.4.160.0100.03612.40
5.4.150.0070.03812.40
5.4.140.0050.03712.09
5.4.130.0060.04012.07
5.4.120.0060.03512.04
5.4.110.0080.03912.03
5.4.100.0100.03712.03
5.4.90.0100.03912.03
5.4.80.0050.03912.03
5.4.70.0130.03712.03
5.4.60.0060.03412.03
5.4.50.0030.03812.03
5.4.40.0070.03312.01
5.4.30.0040.03712.01
5.4.20.0080.03412.00
5.4.10.0080.03912.01
5.4.00.0050.03911.50
5.3.290.0080.05112.80
5.3.280.0120.03212.71
5.3.270.0060.03912.73
5.3.260.0070.04112.72
5.3.250.0050.03712.72
5.3.240.0060.04012.72
5.3.230.0080.03712.71
5.3.220.0060.03712.68
5.3.210.0050.03912.68
5.3.200.0050.03712.68
5.3.190.0080.03512.68
5.3.180.0050.03712.67
5.3.170.0070.03612.67
5.3.160.0080.03312.67
5.3.150.0060.03712.68
5.3.140.0100.03312.66
5.3.130.0040.03912.65
5.3.120.0070.03712.65
5.3.110.0080.03712.66
5.3.100.0070.03912.12
5.3.90.0090.03412.11
5.3.80.0080.03412.10
5.3.70.0090.03512.10
5.3.60.0090.03312.08
5.3.50.0050.03612.03
5.3.40.0050.03712.03
5.3.30.0070.03311.98
5.3.20.0050.03711.76
5.3.10.0100.03111.73
5.3.00.0040.03711.72
5.2.170.0060.0299.18
5.2.160.0040.0309.18
5.2.150.0020.0349.18
5.2.140.0060.0299.18
5.2.130.0060.0299.14
5.2.120.0040.0299.14
5.2.110.0030.0309.14
5.2.100.0060.0299.14
5.2.90.0100.0309.14
5.2.80.0050.0329.14
5.2.70.0090.0259.14
5.2.60.0040.0379.09
5.2.50.0050.0389.06
5.2.40.0010.0339.03
5.2.30.0050.0309.02
5.2.20.0030.0309.00
5.2.10.0110.0358.92
5.2.00.0050.0318.78
5.1.60.0080.0208.07
5.1.50.0040.0278.06
5.1.40.0040.0268.05
5.1.30.0070.0278.40
5.1.20.0090.0248.41
5.1.10.0030.0298.14
5.1.00.0060.0238.14
5.0.50.0060.0176.62
5.0.40.0020.0206.48
5.0.30.0020.0326.30
5.0.20.0030.0236.26
5.0.10.0050.0326.24
5.0.00.0030.0306.23
4.4.90.0030.0274.78
4.4.80.0040.0174.75
4.4.70.0030.0214.75
4.4.60.0040.0144.75
4.4.50.0030.0224.77
4.4.40.0010.0264.70
4.4.30.0020.0154.76
4.4.20.0010.0214.85
4.4.10.0080.0174.84
4.4.00.0070.0264.76
4.3.110.0040.0154.67
4.3.100.0020.0154.66
4.3.90.0030.0184.63
4.3.80.0030.0244.59
4.3.70.0030.0154.63
4.3.60.0080.0194.63
4.3.50.0040.0194.63
4.3.40.0060.0264.54
4.3.30.0030.0223.28
4.3.20.0030.0163.26
4.3.10.0040.0143.22
4.3.00.0070.02015.88

preferences:
51.57 ms | 400 KiB | 5 Q