3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const A = "FooA"; const B = self::A . self::C; const C = "FooC"; } class Bar extends Foo { const A = "BarA"; const C = "BarC"; } var_dump(Bar::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.140.0000.00816.66
8.3.130.0080.00018.16
8.3.120.0130.00620.57
8.3.110.0030.00516.38
8.3.100.0070.00724.06
8.3.90.0060.00326.77
8.3.80.0080.00017.97
8.3.70.0090.00616.25
8.3.60.0040.01116.49
8.3.50.0130.00821.99
8.3.40.0110.01118.55
8.3.30.0070.00718.38
8.3.20.0040.00422.09
8.3.10.0080.00020.34
8.3.00.0000.00723.51
8.2.250.0040.01118.06
8.2.240.0090.00016.86
8.2.230.0040.00420.94
8.2.220.0060.01037.54
8.2.210.0140.00326.77
8.2.200.0040.00418.29
8.2.190.0140.00716.58
8.2.180.0070.01118.42
8.2.170.0070.00722.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0030.00519.64
8.2.110.0090.00021.09
8.2.100.0070.00417.78
8.2.90.0000.00917.78
8.2.80.0040.00417.97
8.2.70.0000.00817.38
8.2.60.0080.00017.38
8.2.50.0080.00017.55
8.2.40.0030.00617.63
8.2.30.0000.00820.29
8.2.20.0050.00318.02
8.2.10.0040.00417.99
8.2.00.0000.00718.16
8.1.300.0030.00520.06
8.1.290.0030.00630.84
8.1.280.0090.00625.92
8.1.270.0080.00020.72
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00022.33
8.1.230.0120.00022.57
8.1.220.0040.00417.74
8.1.210.0000.00818.79
8.1.200.0000.00817.23
8.1.190.0040.00417.51
8.1.180.0000.00718.10
8.1.170.0030.00517.62
8.1.160.0030.00518.73
8.1.150.0000.00720.16
8.1.140.0040.00419.50
8.1.130.0000.00720.73
8.1.120.0040.00417.39
8.1.110.0040.00417.27
8.1.100.0070.00017.29
8.1.90.0040.00417.30
8.1.80.0000.00717.31
8.1.70.0030.00317.31
8.1.60.0000.00817.52
8.1.50.0000.00817.41
8.1.40.0040.00417.33
8.1.30.0000.00817.51
8.1.20.0060.00317.46
8.1.10.0020.00517.42
8.1.00.0000.00817.19
8.0.300.0000.00721.95
8.0.290.0000.00816.63
8.0.280.0000.00718.29
8.0.270.0000.00717.23
8.0.260.0030.00317.23
8.0.250.0000.00616.85
8.0.240.0070.00016.86
8.0.230.0070.00016.89
8.0.220.0000.00716.83
8.0.210.0070.00016.84
8.0.200.0070.00016.81
8.0.190.0040.00416.86
8.0.180.0030.00516.84
8.0.170.0030.00516.83
8.0.160.0040.00416.73
8.0.150.0030.00516.82
8.0.140.0070.00016.76
8.0.130.0000.00513.24
8.0.120.0000.00716.85
8.0.110.0000.00716.93
8.0.100.0030.00416.70
8.0.90.0050.00316.88
8.0.80.0100.01016.79
8.0.70.0040.00416.68
8.0.60.0040.00416.80
8.0.50.0070.00016.71
8.0.30.0080.01016.96
8.0.20.0060.01317.40
8.0.10.0040.00416.97
8.0.00.0170.00716.92
7.4.330.0030.00315.55
7.4.320.0030.00316.48
7.4.300.0000.00616.33
7.4.290.0000.00716.51
7.4.280.0000.00816.51
7.4.270.0030.00616.44
7.4.260.0030.00316.41
7.4.250.0040.00416.46
7.4.240.0000.00716.53
7.4.230.0030.00316.48
7.4.220.0110.01416.32
7.4.210.0060.00916.31
7.4.200.0000.00716.34
7.4.160.0100.00616.39
7.4.150.0100.00717.40
7.4.140.0120.00817.86
7.4.130.0090.00916.46
7.4.120.0100.00816.42
7.4.110.0070.01116.47
7.4.100.0100.00716.57
7.4.90.0090.00916.34
7.4.80.0100.01019.39
7.4.70.0130.00616.34
7.4.60.0090.00616.28
7.4.50.0070.01116.33
7.4.40.0060.01316.29
7.4.30.0070.01016.40
7.4.10.0100.00314.78
7.4.00.0030.01114.89
7.3.330.0000.00613.02
7.3.320.0030.00313.25
7.3.310.0000.00716.36
7.3.300.0030.00316.21
7.3.290.0060.00816.23
7.3.280.0080.01016.23
7.3.270.0110.00717.40
7.3.260.0170.00716.48
7.3.250.0030.01416.45
7.3.240.0080.01016.40
7.3.230.0140.00516.55
7.3.210.0050.01116.41
7.3.200.0070.01016.33
7.3.190.0040.01316.52
7.3.180.0060.01116.29
7.3.170.0060.00916.52
7.3.160.0080.00816.54
7.3.130.0060.01214.65
7.3.120.0040.01114.76
7.3.110.0030.01614.57
7.3.100.0130.00314.71
7.3.90.0030.01314.75
7.3.80.0090.00314.98
7.3.70.0070.00714.51
7.3.60.0040.01214.59
7.3.50.0070.00714.80
7.3.40.0030.00614.68
7.3.30.0080.00414.79
7.3.20.0000.01316.63
7.3.10.0120.00116.57
7.3.00.0110.00416.61
7.2.330.0140.00316.30
7.2.320.0090.00616.25
7.2.310.0070.01016.62
7.2.300.0110.00916.49
7.2.290.0090.00616.18
7.2.260.0040.01114.97
7.2.250.0040.01414.58
7.2.240.0040.01115.07
7.2.230.0060.00614.95
7.2.220.0000.01014.52
7.2.210.0030.01014.99
7.2.200.0040.00814.79
7.2.190.0030.00914.68
7.2.180.0060.00914.90
7.2.170.0050.00514.84
7.2.160.0030.00914.74
7.2.150.0030.01016.89
7.2.140.0120.00916.64
7.2.130.0060.00816.70
7.2.120.0050.00616.69
7.2.110.0090.00516.52
7.2.100.0070.00516.61
7.2.90.0050.00616.74
7.2.80.0090.00716.63
7.2.70.0070.00416.74
7.2.60.0050.01116.73
7.2.50.0060.00816.66
7.2.40.0060.00616.74
7.2.30.0090.00416.93
7.2.20.0060.00716.61
7.2.10.0070.00716.68
7.2.00.0110.00717.02
7.1.330.0070.00715.37
7.1.320.0100.00715.53
7.1.310.0060.00315.56
7.1.300.0090.00015.64
7.1.290.0090.00015.67
7.1.280.0070.00715.66
7.1.270.0070.00715.82
7.1.260.0000.01515.72
7.1.250.0050.00715.66
7.1.240.0040.00815.36
7.1.230.0120.00315.67
7.1.220.0070.00715.36
7.1.210.0070.01015.61
7.1.200.0050.00715.42
7.1.190.0070.00415.76
7.1.180.0090.00615.53
7.1.170.0100.00715.60
7.1.160.0040.00815.59
7.1.150.0060.00615.53
7.1.140.0080.00415.69
7.1.130.0070.01015.77
7.1.120.0150.00816.19
7.1.110.0140.00816.01
7.1.100.0420.00615.73
7.1.90.0180.00815.83
7.1.80.0090.01315.86
7.1.70.0140.00315.84
7.1.60.0150.00921.89
7.1.50.0100.01421.79
7.1.40.0120.01121.53
7.1.30.0130.00821.60
7.1.20.0140.00721.57
7.1.10.0090.00515.55
7.1.00.0070.00815.69
7.0.330.0060.00315.25
7.0.320.0050.00515.28
7.0.310.0030.00514.98
7.0.300.0070.00715.31
7.0.290.0030.00615.36
7.0.280.0060.00915.32
7.0.270.0040.01115.06
7.0.260.0190.00515.84
7.0.250.0130.01015.67
7.0.240.0100.00715.60
7.0.230.0130.01015.67
7.0.220.0130.00915.44
7.0.210.0080.01414.89
7.0.200.0130.00615.50
7.0.190.0110.00715.55
7.0.180.0080.00815.18
7.0.170.0070.00915.18
7.0.160.0120.00215.12
7.0.150.0110.01015.21
7.0.140.0110.00615.29
7.0.130.0080.00715.46
7.0.120.0140.00515.30
7.0.110.0070.00815.17
7.0.100.0090.00715.30
7.0.90.0090.00615.27
7.0.80.0060.00815.33
7.0.70.0070.00915.32
7.0.60.0280.00415.15
7.0.50.0120.00815.43
7.0.40.0070.00814.24
7.0.30.0070.00814.15
7.0.20.0060.00914.30
7.0.10.0110.00414.21
7.0.00.0080.00614.12
5.6.400.0000.01414.07
5.6.390.0030.01013.98
5.6.380.0070.00414.07
5.6.370.0060.00314.40
5.6.360.0040.00714.27
5.6.350.0000.01014.14
5.6.340.0030.00714.19
5.6.330.0030.01214.19
5.6.320.0030.01414.18
5.6.310.0070.00714.26
5.6.300.0100.02918.63
5.6.290.0060.04318.63
5.6.280.0070.04018.65
5.6.270.0090.03418.64
5.6.260.0100.03318.49
5.6.250.0060.04418.58
5.6.240.0120.03218.57
5.6.230.0090.03318.74
5.6.220.0120.04018.55
5.6.210.0100.03518.64
5.6.200.0070.04518.54
5.6.190.0070.03518.65
5.6.180.0040.03818.69
5.6.170.0040.03718.65
5.6.160.0110.03218.63
5.6.150.0080.03418.76
5.6.140.0060.04118.61
5.6.130.0100.03318.57
5.6.120.0040.03618.52
5.6.110.0020.04118.59
5.6.100.0080.04218.65
5.6.90.0090.04818.65
5.6.80.0070.04018.20
5.6.70.0050.03518.08
5.6.60.0070.03518.19
5.6.50.0080.03518.16
5.6.40.0090.03118.06
5.6.30.0060.04518.25
5.6.20.0070.03418.14
5.6.10.0050.03418.14
5.6.00.0070.03318.18
5.5.380.0100.04417.55
5.5.370.0100.05417.53
5.5.360.0080.05417.59
5.5.350.0020.05217.55
5.5.340.0120.05518.13
5.5.330.0170.03717.98
5.5.320.0020.05218.06
5.5.310.0060.04718.06
5.5.300.0060.04918.02
5.5.290.0090.04518.05
5.5.280.0110.06517.88
5.5.270.0070.05217.97
5.5.260.0110.04917.84
5.5.250.0050.06917.88
5.5.240.0050.05817.40
5.5.230.0070.05717.39
5.5.220.0120.04717.29
5.5.210.0080.04917.41
5.5.200.0030.04817.31
5.5.190.0070.04817.25
5.5.180.0070.04917.45
5.5.160.0030.04917.26
5.5.150.0070.04517.38
5.5.140.0070.04517.25
5.5.130.0070.04517.41
5.5.120.0020.05117.41
5.5.110.0020.05117.30
5.5.100.0030.05617.35
5.5.90.0030.04817.15
5.5.80.0130.03717.34
5.5.70.0070.04617.10
5.5.60.0020.04917.13
5.5.50.0070.04617.32
5.5.40.0130.03517.19
5.5.30.0000.04916.98
5.5.20.0070.04817.33
5.5.10.0100.04817.31
5.5.00.0070.06517.18
5.4.450.0130.06719.29
5.4.440.0030.05519.42
5.4.430.0080.05519.32
5.4.420.0110.04619.26
5.4.410.0110.05119.20
5.4.400.0060.04819.10
5.4.390.0100.04818.93
5.4.380.0160.04518.99
5.4.370.0060.04419.02
5.4.360.0060.05619.00
5.4.350.0110.04419.02
5.4.340.0070.04619.07
5.4.320.0060.04819.06
5.4.310.0090.04319.11
5.4.300.0030.04719.09
5.4.290.0050.04919.00
5.4.280.0070.04719.02
5.4.270.0030.04718.99
5.4.260.0030.04718.86
5.4.250.0060.04618.94
5.4.240.0030.04818.97
5.4.230.0080.04218.94
5.4.220.0030.05018.91
5.4.210.0050.04718.88
5.4.200.0070.05719.08
5.4.190.0080.04219.02
5.4.180.0050.04518.92
5.4.170.0110.04919.07
5.4.160.0030.06718.98
5.4.150.0070.04819.10
5.4.140.0100.05216.71
5.4.130.0080.03916.67
5.4.120.0050.04916.67
5.4.110.0070.04716.51
5.4.100.0060.04216.63
5.4.90.0030.04616.53
5.4.80.0110.04116.49
5.4.70.0210.03116.56
5.4.60.0070.04016.68
5.4.50.0120.03916.45
5.4.40.0120.03516.59
5.4.30.0080.04016.69
5.4.20.0050.04416.57
5.4.10.0030.04816.63
5.4.00.0080.04816.17
5.3.290.0100.04514.91
5.3.280.0030.05114.75
5.3.270.0080.04314.78
5.3.260.0080.04414.89
5.3.250.0100.04214.78
5.3.240.0100.03914.69
5.3.230.0020.06414.89
5.3.220.0070.05714.76
5.3.210.0070.07214.76
5.3.200.0090.04014.76
5.3.190.0110.04414.75
5.3.180.0080.04014.86
5.3.170.0060.04414.76
5.3.160.0020.04514.88
5.3.150.0050.04614.86
5.3.140.0130.04214.75
5.3.130.0020.04814.75
5.3.120.0070.04714.82
5.3.110.0080.05714.83
5.3.100.0100.04414.55
5.3.90.0100.04114.61
5.3.80.0080.04814.55
5.3.70.0140.04414.57
5.3.60.0060.05414.39
5.3.50.0070.05114.53
5.3.40.0070.05814.42
5.3.30.0020.04414.43
5.3.20.0030.04314.41
5.3.10.0070.04214.40
5.3.00.0050.04214.29
5.2.170.0020.03913.03
5.2.160.0000.03812.96
5.2.150.0090.03713.03
5.2.140.0050.03613.11
5.2.130.0070.04213.15
5.2.120.0030.03913.09
5.2.110.0050.03713.14
5.2.100.0060.03213.14
5.2.90.0020.04313.14
5.2.80.0050.03713.08
5.2.70.0050.03713.08
5.2.60.0080.04113.00
5.2.50.0030.03512.96
5.2.40.0060.03113.08
5.2.30.0050.03713.08
5.2.20.0080.03313.01
5.2.10.0030.03912.88
5.2.00.0060.03212.92
5.1.60.0050.03112.39
5.1.50.0070.02612.58
5.1.40.0050.03612.54
5.1.30.0000.04912.77
5.1.20.0020.03512.77
5.1.10.0090.02812.53
5.1.00.0080.03012.53
5.0.50.0020.02712.07
5.0.40.0050.02112.07
5.0.30.0080.03212.07
5.0.20.0050.02212.07
5.0.10.0000.02912.07
5.0.00.0050.03412.07
4.4.90.0020.02012.07
4.4.80.0030.02312.07
4.4.70.0020.02012.07
4.4.60.0020.02512.07
4.4.50.0030.02212.07
4.4.40.0020.03112.07
4.4.30.0020.02012.07
4.4.20.0030.02212.07
4.4.10.0030.01812.07
4.4.00.0050.02812.07
4.3.110.0030.02012.07
4.3.100.0030.01912.07
4.3.90.0050.01612.07
4.3.80.0000.03112.07
4.3.70.0000.02012.07
4.3.60.0050.02112.07
4.3.50.0030.02312.07
4.3.40.0020.03712.07
4.3.30.0020.01912.07
4.3.20.0040.01812.07
4.3.10.0020.02112.07
4.3.00.0050.01912.07

preferences:
69.01 ms | 403 KiB | 5 Q