3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const ALPHA = 1, BETA = 2, GAMMA = 3; public $a = "apple", $b = "bread", $c = "candy"; public function __construct() { // do something } } $t = new Test; echo $t::ALPHA, $t->c, $t->$a;

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.0140.00716.88
8.3.50.0120.00622.04
8.3.40.0140.00418.87
8.3.30.0060.00919.07
8.3.20.0000.00820.19
8.3.10.0030.00523.64
8.3.00.0080.00019.26
8.2.180.0140.00718.63
8.2.170.0120.00322.96
8.2.160.0100.00320.57
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00022.12
8.2.110.0090.00019.38
8.2.100.0120.00017.84
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0070.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00918.22
8.2.30.0080.00018.10
8.2.20.0040.00417.72
8.2.10.0050.00318.07
8.2.00.0080.00417.85
8.1.280.0100.01025.92
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00019.06
8.1.230.0090.00317.42
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00417.53
8.1.180.0090.00318.10
8.1.170.0000.00818.48
8.1.160.0000.00721.97
8.1.150.0000.00718.67
8.1.140.0040.00417.43
8.1.130.0000.00617.82
8.1.120.0070.00017.36
8.1.110.0040.00417.45
8.1.100.0040.00417.32
8.1.90.0020.00517.39
8.1.80.0070.00017.47
8.1.70.0030.00517.40
8.1.60.0030.00517.56
8.1.50.0080.00017.52
8.1.40.0000.00717.34
8.1.30.0000.00917.48
8.1.20.0000.00817.63
8.1.10.0000.00817.54
8.1.00.0000.00817.38
8.0.300.0020.00518.77
8.0.290.0080.00016.88
8.0.280.0030.00318.35
8.0.270.0040.00417.24
8.0.260.0030.00317.26
8.0.250.0070.00017.06
8.0.240.0030.00317.04
8.0.230.0030.00316.92
8.0.220.0000.00816.88
8.0.210.0030.00317.01
8.0.200.0080.00016.87
8.0.190.0000.00717.03
8.0.180.0000.00716.96
8.0.170.0040.00416.96
8.0.160.0040.00416.83
8.0.150.0040.00416.98
8.0.140.0030.00516.82
8.0.130.0050.00013.37
8.0.120.0070.00016.91
8.0.110.0000.00716.91
8.0.100.0090.00016.95
8.0.90.0000.00816.98
8.0.80.0060.00917.00
8.0.70.0000.00717.01
8.0.60.0040.00416.85
8.0.50.0000.00916.74
8.0.30.0080.01217.06
8.0.20.0140.00717.40
8.0.10.0000.00816.92
8.0.00.0100.00816.60
7.4.330.0050.00015.00
7.4.320.0070.00016.60
7.4.300.0000.00616.60
7.4.290.0000.00716.48
7.4.280.0040.00416.64
7.4.270.0040.00416.52
7.4.260.0000.00716.43
7.4.250.0000.00916.58
7.4.240.0050.00216.56
7.4.230.0000.00716.50
7.4.220.0110.00616.57
7.4.210.0050.01016.60
7.4.200.0050.00316.65
7.4.190.0040.00416.65
7.4.160.0080.00816.34
7.4.150.0100.01017.40
7.4.140.0110.00617.86
7.4.130.0090.00916.55
7.4.120.0110.00716.60
7.4.110.0120.00916.54
7.4.100.0070.01016.55
7.4.90.0070.01116.51
7.4.80.0100.01319.39
7.4.70.0080.00916.61
7.4.60.0040.01216.51
7.4.50.0050.00316.63
7.4.40.0070.00722.77
7.4.30.0090.00916.52
7.4.00.0030.01215.11
7.3.330.0000.00613.20
7.3.320.0000.00513.40
7.3.310.0040.00416.45
7.3.300.0030.00316.38
7.3.290.0070.01416.39
7.3.280.0060.01116.41
7.3.270.0040.01317.40
7.3.260.0090.00916.48
7.3.250.0060.01116.50
7.3.240.0100.00716.56
7.3.230.0110.00516.50
7.3.210.0070.01016.41
7.3.200.0120.00819.39
7.3.190.0150.00316.65
7.3.180.0000.01516.48
7.3.170.0130.00316.63
7.3.160.0050.01116.61
7.3.120.0030.00914.88
7.2.330.0130.00416.61
7.2.320.0120.00416.30
7.2.310.0150.00616.76
7.2.300.0100.00716.45
7.2.290.0040.01316.79
7.2.60.0080.00816.71
7.2.00.0030.00719.53
7.1.200.0030.00915.42
7.1.100.0090.00318.09
7.1.70.0040.00417.00
7.1.60.0090.00919.33
7.1.50.0090.01316.86
7.1.00.0030.03722.36
7.0.200.0030.00316.76
7.0.140.0100.06322.01
7.0.60.0100.07719.83
7.0.50.0130.06717.73
7.0.40.0000.05720.11
7.0.30.0570.05720.20
7.0.20.0200.07020.09
7.0.10.0070.04020.05
7.0.00.0170.07720.25
5.6.280.0070.07020.93
5.6.210.0070.03720.73
5.6.200.0070.05318.29
5.6.190.0070.05720.49
5.6.180.0300.07320.47
5.6.170.0170.05020.46
5.6.160.0030.04020.50
5.6.150.0100.07318.27
5.6.140.0100.07318.14
5.6.130.0070.04318.23
5.6.120.0230.07321.02
5.6.110.0070.07021.09
5.6.100.0100.05321.11
5.6.90.0030.04320.99
5.6.80.0070.06720.26
5.6.70.4530.04020.39
5.5.350.0070.05020.43
5.5.340.0030.04317.92
5.5.330.0170.05320.27
5.5.320.0130.03320.24
5.5.310.0270.08020.30
5.5.300.0200.04317.98
5.5.290.0070.08017.97
5.5.280.0070.05720.69
5.5.270.0000.09720.87
5.5.260.0030.09020.89
5.5.250.0030.04020.70
5.5.240.0300.07020.26
5.4.450.0100.05719.30
5.4.440.0800.06019.16
5.4.430.0230.05719.32
5.4.420.0900.06019.43
5.4.410.0900.04719.07
5.4.400.0170.05019.29
5.4.390.0730.06718.86
5.4.380.0300.06018.69
5.4.370.0330.05018.59
5.4.360.0330.06018.59
5.4.350.0300.05318.69
5.4.340.0330.05018.72
5.4.320.0110.03712.50
5.4.310.0080.04112.50
5.4.300.0040.04412.50
5.4.290.0060.03712.50
5.4.280.0090.04912.37
5.4.270.0060.05212.36
5.4.260.0090.05212.37
5.4.250.0070.05212.37
5.4.240.0080.05112.36
5.4.230.0080.11812.36
5.4.220.0180.07912.36
5.4.210.0120.06112.36
5.4.200.0070.05312.36
5.4.190.0110.05212.36
5.4.180.0070.05612.36
5.4.170.0320.09812.37
5.4.160.0150.07912.37
5.4.150.0110.07112.36
5.4.140.0100.05112.04
5.4.130.0130.04712.03
5.4.120.0280.09011.98
5.4.110.0190.08611.98
5.4.100.0170.07111.98
5.4.90.0090.05111.98
5.4.80.0110.05711.99
5.4.70.0140.05211.98
5.4.60.0120.04911.98
5.4.50.0090.05211.98
5.4.40.0050.05511.97
5.4.30.0070.05111.97
5.4.20.0140.04611.96
5.4.10.0060.03811.96
5.4.00.0110.04011.45
5.3.290.0070.04112.80
5.3.280.0100.03912.71
5.3.270.0140.03512.72
5.3.260.0080.04712.72
5.3.250.0130.04512.72
5.3.240.0110.05012.72
5.3.230.0090.03812.71
5.3.220.0030.04112.68
5.3.210.0100.04012.68
5.3.200.0100.04912.68
5.3.190.0100.04712.68
5.3.180.0080.03812.67
5.3.170.0090.05112.67
5.3.160.0060.04812.67
5.3.150.0090.03612.67
5.3.140.0100.04312.66
5.3.130.0110.05112.66
5.3.120.0090.05012.66
5.3.110.0110.05012.66
5.3.100.0080.04912.12
5.3.90.0110.04112.08
5.3.80.0070.03712.07
5.3.70.0090.03612.07
5.3.60.0060.04012.06
5.3.50.0020.04512.00
5.3.40.0090.04112.00
5.3.30.0080.05111.95
5.3.20.0110.04611.73
5.3.10.0080.04911.70
5.3.00.0120.05111.69
5.2.170.0120.0519.19
5.2.160.0070.0469.19
5.2.150.0080.0449.19
5.2.140.0090.0459.18
5.2.130.0050.0309.14
5.2.120.0050.0309.14
5.2.110.0060.0309.15
5.2.100.0040.0319.15
5.2.90.0030.0319.14
5.2.80.0030.0349.14
5.2.70.0030.0349.14
5.2.60.0070.0309.10
5.2.50.0010.0359.07
5.2.40.0050.0329.04
5.2.30.0060.0359.02
5.2.20.0050.0339.01
5.2.10.0050.0308.91
5.2.00.0060.0298.78
5.1.60.0050.0258.07
5.1.50.0050.0318.07
5.1.40.0100.0278.05
5.1.30.0070.0278.39
5.1.20.0040.0288.42
5.1.10.0080.0238.15
5.1.00.0050.0258.15
5.0.50.0040.0226.62
5.0.40.0060.0186.49
5.0.30.0060.0306.29
5.0.20.0050.0176.26
5.0.10.0020.0216.24
5.0.00.0030.0306.23
4.4.90.0020.0164.78
4.4.80.0010.0174.75
4.4.70.0040.0144.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0040.0244.71
4.4.30.0050.0144.76
4.4.20.0030.0164.84
4.4.10.0020.0174.85
4.4.00.0020.0264.76
4.3.110.0030.0164.67
4.3.100.0030.0244.67
4.3.90.0020.0174.64
4.3.80.0020.0294.58
4.3.70.0020.0164.63
4.3.60.0050.0204.63
4.3.50.0050.0204.63
4.3.40.0040.0314.54
4.3.30.0050.0193.28
4.3.20.0030.0223.27
4.3.10.0030.0203.23
4.3.00.0270.01710.30

preferences:
48.65 ms | 401 KiB | 5 Q