3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const a = 1; const b = 2; function pa() { print this->a . "\n"; } function pb() { print self::b . "\n"; } } $a = new A(); $a->pa(); $a->pb();

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.01118.55
8.3.50.0120.00722.05
8.3.40.0120.00618.76
8.3.30.0040.01119.07
8.3.20.0050.00220.24
8.3.10.0000.00820.34
8.3.00.0040.00419.38
8.2.180.0140.00018.30
8.2.170.0070.01022.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00319.66
8.2.110.0030.00622.16
8.2.100.0060.00318.77
8.1.280.0120.00925.92
8.1.270.0040.00420.66
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00018.49
8.1.230.0030.00718.46
5.4.350.0120.03612.03
5.4.340.0090.03912.03
5.4.320.0090.05012.52
5.4.310.0070.03912.52
5.4.300.0050.03912.52
5.4.290.0080.04912.52
5.4.280.0060.04512.41
5.4.270.0070.04312.41
5.4.260.0110.04312.41
5.4.250.0090.04212.41
5.4.240.0070.04212.41
5.4.230.0060.04212.40
5.4.220.0080.04012.40
5.4.210.0070.03612.40
5.4.200.0060.04112.40
5.4.190.0080.04112.39
5.4.180.0090.03812.40
5.4.170.0070.04412.40
5.4.160.0120.05112.40
5.4.150.0120.04512.40
5.4.140.0100.05012.09
5.4.130.0070.04912.07
5.4.120.0080.05012.04
5.4.110.0050.04812.03
5.4.100.0110.04712.03
5.4.90.0050.04312.03
5.4.80.0080.04412.03
5.4.70.0090.04712.03
5.4.60.0150.07912.03
5.4.50.0170.05912.02
5.4.40.0120.05112.02
5.4.30.0150.05212.01
5.4.20.0080.03712.00
5.4.10.0100.04012.01
5.4.00.0060.04011.50
5.3.290.0120.05112.80
5.3.280.0150.06412.71
5.3.270.0110.05112.72
5.3.260.0070.04912.72
5.3.250.0180.07112.72
5.3.240.0170.04012.72
5.3.230.0090.04212.71
5.3.220.0090.04312.68
5.3.210.0060.05212.68
5.3.200.0160.06312.68
5.3.190.0090.03912.68
5.3.180.0060.04312.67
5.3.170.0240.07312.67
5.3.160.0220.07312.67
5.3.150.0130.05412.67
5.3.140.0090.04412.66
5.3.130.0100.05112.66
5.3.120.0080.04212.66
5.3.110.0030.04312.66
5.3.100.0070.03712.12
5.3.90.0060.04112.10
5.3.80.0100.03812.09
5.3.70.0100.04512.09
5.3.60.0250.08312.08
5.3.50.0100.03912.03
5.3.40.0070.03912.03
5.3.30.0100.04411.98
5.3.20.0130.03511.77
5.3.10.0060.03911.73
5.3.00.0090.04411.72
5.2.170.0090.0359.22
5.2.160.0060.0339.22
5.2.150.0070.0429.21
5.2.140.0080.0439.21
5.2.130.0100.0459.18
5.2.120.0090.0569.18
5.2.110.0090.0379.18
5.2.100.0080.0329.18
5.2.90.0060.0359.18
5.2.80.0060.0429.17
5.2.70.0080.0289.17
5.2.60.0100.0469.13
5.2.50.0070.0429.09
5.2.40.0070.0359.07
5.2.30.0100.0319.05
5.2.20.0080.0359.04
5.2.10.0040.0328.95
5.2.00.0050.0348.80
5.1.60.0080.0288.09
5.1.50.0110.0428.09
5.1.40.0090.0298.07
5.1.30.0080.0298.42
5.1.20.0060.0368.44
5.1.10.0060.0328.17
5.1.00.0060.0338.16
5.0.50.0070.0236.64
5.0.40.0060.0226.50
5.0.30.0050.0376.31
5.0.20.0050.0216.28
5.0.10.0070.0236.25
5.0.00.0070.0346.25
4.4.90.0270.0494.78
4.4.80.0050.0214.75
4.4.70.0050.0424.76
4.4.60.0050.0154.76
4.4.50.0110.0334.77
4.4.40.0080.0274.71
4.4.30.0020.0174.76
4.4.20.0060.0184.85
4.4.10.0060.0154.84
4.4.00.0060.0434.75
4.3.110.0040.0204.67
4.3.100.0110.0264.66
4.3.90.0040.0184.64
4.3.80.0020.0264.58
4.3.70.0110.0294.63
4.3.60.0150.0314.63
4.3.50.0100.0404.62
4.3.40.0090.0494.54
4.3.30.0040.0183.30
4.3.20.0030.0183.28
4.3.10.0040.0203.23
4.3.00.0200.0236.56

preferences:
41.75 ms | 401 KiB | 5 Q