3v4l.org

run code in 300+ PHP versions simultaneously
<?php    class Test{        const ONE = "Number one";        const TWO = "Number two";    } $obj = new ReflectionClass( "Test" );    echo $obj->getconstant( "ONE" )."\n";    echo $obj->getconstant( "TWO" )."\n";    ?>

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.70.0130.00616.58
8.3.60.0090.00616.50
8.3.50.0070.01022.99
8.3.40.0110.00718.67
8.3.30.0070.00718.98
8.3.20.0070.00020.03
8.3.10.0050.00223.71
8.3.00.0040.00417.25
8.2.180.0090.00916.32
8.2.170.0090.00622.96
8.2.160.0070.00720.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0000.00821.00
8.2.110.0060.00322.11
8.2.100.0110.00017.59
8.2.90.0030.00619.23
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0060.00617.79
8.2.50.0080.00018.07
8.2.40.0030.00518.22
8.2.30.0040.00417.98
8.2.20.0000.00717.45
8.2.10.0000.00717.84
8.2.00.0040.00417.46
8.1.280.0040.01425.92
8.1.270.0040.00423.91
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00023.96
8.1.230.0080.00319.17
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00417.10
8.1.190.0040.00416.98
8.1.180.0050.00218.10
8.1.170.0000.00918.23
8.1.160.0040.00421.96
8.1.150.0070.00018.61
8.1.140.0070.00017.22
8.1.130.0040.00417.79
8.1.120.0070.00017.32
8.1.110.0040.00417.30
8.1.100.0000.00717.38
8.1.90.0030.00317.35
8.1.80.0000.00717.36
8.1.70.0050.00217.25
8.1.60.0080.00017.42
8.1.50.0090.00017.27
8.1.40.0040.00417.28
8.1.30.0070.00017.41
8.1.20.0040.00417.46
8.1.10.0000.00717.43
8.1.00.0040.00417.25
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.29
8.0.270.0070.00017.21
8.0.260.0000.00617.18
8.0.250.0000.00716.71
8.0.240.0000.00816.71
8.0.230.0030.00316.67
8.0.220.0070.00016.73
8.0.210.0030.00316.75
8.0.200.0030.00316.88
8.0.190.0040.00416.85
8.0.180.0000.00716.62
8.0.170.0050.00316.64
8.0.160.0000.00716.80
8.0.150.0080.00316.59
8.0.140.0030.00616.73
8.0.130.0000.00613.43
8.0.120.0060.00316.71
8.0.110.0040.00416.73
8.0.100.0000.00716.57
8.0.90.0040.00416.62
8.0.80.0090.00616.75
8.0.70.0050.00216.59
8.0.60.0000.00716.78
8.0.50.0000.00716.81
8.0.30.0110.00816.92
8.0.20.0100.00817.40
8.0.10.0050.00216.75
8.0.00.0080.01416.49
7.4.330.0000.00515.00
7.4.320.0060.00016.41
7.4.300.0060.00016.21
7.4.290.0030.00316.48
7.4.280.0050.00316.36
7.4.270.0000.00816.41
7.4.260.0000.00616.42
7.4.250.0040.00416.45
7.4.240.0030.00316.35
7.4.230.0030.00316.52
7.4.220.0060.01216.49
7.4.210.0040.01016.43
7.4.200.0070.00016.49
7.4.160.0090.00616.38
7.4.150.0200.00617.40
7.4.140.0110.01317.86
7.4.130.0100.00616.30
7.4.120.0090.01216.36
7.4.110.0040.01216.30
7.4.100.0060.01516.48
7.4.90.0070.01016.37
7.4.80.0070.01119.39
7.4.70.0030.01316.46
7.4.60.0090.01216.35
7.4.50.0020.00216.15
7.4.40.0090.00616.52
7.4.30.0060.01316.45
7.3.330.0080.00013.07
7.3.320.0000.00513.06
7.3.310.0000.00716.17
7.3.300.0000.00716.11
7.3.290.0110.00316.17
7.3.280.0110.00716.14
7.3.270.0100.01017.40
7.3.260.0100.00616.40
7.3.250.0070.01216.30
7.3.240.0100.00716.38
7.3.230.0090.00616.39
7.3.210.0090.00916.05
7.3.200.0120.00919.39
7.3.190.0060.01016.25
7.3.180.0100.00616.31
7.3.170.0060.01516.27
7.3.160.0040.01216.41
7.2.330.0110.00616.42
7.2.320.0030.01516.30
7.2.310.0090.00916.16
7.2.300.0190.00416.29
7.2.290.0090.01316.24
5.4.320.0040.03712.45
5.4.310.0070.03812.45
5.4.300.0040.03812.45
5.4.290.0050.03812.45
5.4.280.0040.03612.34
5.4.270.0050.03612.35
5.4.260.0080.03512.35
5.4.250.0080.03412.34
5.4.240.0040.03612.34
5.4.230.0090.03312.34
5.4.220.0080.03312.34
5.4.210.0030.04012.34
5.4.200.0070.03712.34
5.4.190.0100.03112.33
5.4.180.0050.03612.33
5.4.170.0100.03312.34
5.4.160.0070.03312.34
5.4.150.0100.03112.34
5.4.140.0030.03912.02
5.4.130.0090.03212.01
5.4.120.0090.03111.96
5.4.110.0040.03611.96
5.4.100.0130.02811.96
5.4.90.0050.04211.96
5.4.80.0050.03711.96
5.4.70.0080.03211.96
5.4.60.0080.03211.96
5.4.50.0050.03611.96
5.4.40.0100.03211.95
5.4.30.0030.04011.95
5.4.20.0040.03911.95
5.4.10.0070.03611.95
5.4.00.0060.03511.44

preferences:
35.31 ms | 401 KiB | 5 Q