3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { const C = 12; public static function test2(array $a); } abstract class A implements I { const A = 14; protected static $var = 17; public function test(array $a){ return __METHOD__; } } class B extends A { const A = 15; public function test(array $a){ return __METHOD__; } public static function test2(array $a){} } $v = new B(); var_dump($v->test(array(), ''));

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.40.0040.01118.77
8.3.30.0090.00619.09
8.3.20.0040.00420.20
8.3.10.0050.00320.23
8.3.00.0050.00219.56
8.2.170.0030.01022.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00022.18
8.2.110.0050.00522.25
8.2.100.0090.00317.84
8.2.90.0050.00318.95
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0000.00717.93
8.2.50.0040.00418.07
8.2.40.0000.00818.18
8.2.30.0040.00419.15
8.2.20.0040.00417.73
8.2.10.0060.00318.04
8.2.00.0030.00617.77
8.1.270.0000.00823.96
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00922.09
8.1.230.0090.00318.95
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0040.00421.91
8.1.150.0000.00718.94
8.1.140.0070.00017.49
8.1.130.0000.00717.74
8.1.120.0000.00817.38
8.1.110.0050.00317.49
8.1.100.0000.00717.46
8.1.90.0040.00417.33
8.1.80.0000.00717.42
8.1.70.0000.00817.32
8.1.60.0030.00617.46
8.1.50.0050.00317.41
8.1.40.0060.00317.47
8.1.30.0050.00317.56
8.1.20.0000.00817.54
8.1.10.0070.00017.50
8.1.00.0030.00617.42
8.0.300.0000.00818.77
8.0.290.0000.00816.71
8.0.280.0000.00818.39
8.0.270.0070.00017.23
8.0.260.0000.00717.16
8.0.250.0000.00716.95
8.0.240.0030.00316.91
8.0.230.0000.00616.95
8.0.220.0040.00316.90
8.0.210.0040.00416.90
8.0.200.0040.00417.01
8.0.190.0000.00716.89
8.0.180.0070.00016.80
8.0.170.0040.00416.81
8.0.160.0030.00416.88
8.0.150.0040.00416.86
8.0.140.0040.00416.75
8.0.130.0030.00313.36
8.0.120.0080.00016.83
8.0.110.0000.00716.87
8.0.100.0040.00416.88
8.0.90.0030.00516.78
8.0.80.0090.00616.91
8.0.70.0080.00016.82
8.0.60.0070.00016.86
8.0.50.0000.00716.68
8.0.30.0080.00916.87
8.0.20.0120.00817.40
8.0.10.0040.00416.97
8.0.00.0080.01116.73
7.4.330.0050.00015.20
7.4.320.0000.00616.53
7.4.300.0000.00616.62
7.4.290.0060.00016.50
7.4.280.0000.00816.62
7.4.270.0040.00416.57
7.4.260.0000.00716.50
7.4.250.0000.00716.56
7.4.240.0030.00316.58
7.4.230.0000.00716.60
7.4.220.0100.01016.57
7.4.210.0040.01116.60
7.4.200.0000.00716.48
7.4.160.0100.00616.56
7.4.150.0090.01217.40
7.4.140.0100.01217.86
7.4.130.0050.01116.45
7.4.120.0060.01016.48
7.4.110.0090.00716.38
7.4.100.0060.00916.39
7.4.90.0100.00716.43
7.4.80.0130.00316.38
7.4.70.0240.00016.57
7.4.60.0060.00916.29
7.4.50.0030.00316.50
7.4.40.0100.00716.26
7.4.30.0140.00716.32
7.4.00.0040.01114.88
7.3.330.0000.00613.38
7.3.320.0000.00513.31
7.3.310.0030.00316.25
7.3.300.0030.00316.22
7.3.290.0110.00316.27
7.3.280.0090.01216.30
7.3.270.0090.00917.40
7.3.260.0080.00816.28
7.3.250.0130.00616.35
7.3.240.0000.01816.47
7.3.230.0090.00916.57
7.3.210.0140.00316.21
7.3.200.0060.01319.39
7.3.190.0100.01316.39
7.3.180.0120.01016.45
7.3.170.0130.00816.36
7.3.160.0030.01316.25
7.2.330.0070.01016.60
7.2.320.0120.00916.44
7.2.310.0100.00716.66
7.2.300.0090.00916.50
7.2.290.0140.00716.70
7.2.110.0130.00816.23
7.2.100.0150.00316.30
7.2.90.0080.00816.19
7.2.80.0150.00416.70
7.2.70.0270.00716.78
7.2.60.0070.00816.48
7.2.50.0200.00316.73
7.2.40.0110.00816.98
7.2.30.0060.01216.88
7.2.20.0230.00016.79
7.2.10.0170.00016.76
7.2.00.0080.00817.98
7.1.230.0680.00315.66
7.1.220.0130.00415.75
7.1.210.0070.00415.75
7.1.200.0050.00715.63
7.1.190.0140.00515.67
7.1.180.0080.01015.77
7.1.170.0080.01115.83
7.1.160.0100.01015.76
7.1.150.0110.00615.41
7.1.140.0120.00615.68
7.1.130.0240.00315.75
7.1.120.0120.00615.69
7.1.110.0040.01115.84
7.1.100.3720.00315.82
7.1.90.0090.00915.52
7.1.80.0090.00615.71
7.1.70.0070.00416.31
7.1.60.0140.00917.66
7.1.50.0130.00516.08
7.1.40.0130.00715.80
7.1.30.0160.00315.45
7.1.20.0150.00815.81
7.1.10.0130.00315.68
7.1.00.0040.04119.04
7.0.310.0380.00415.09
7.0.300.0250.00415.27
7.0.290.0230.00415.26
7.0.280.0120.00315.36
7.0.270.0140.00015.26
7.0.260.0080.00815.05
7.0.250.0090.00615.46
7.0.240.0170.00015.43
7.0.230.0340.00615.05
7.0.220.0040.00915.09
7.0.210.0140.00315.41
7.0.200.0040.00916.07
7.0.190.0080.00815.42
7.0.180.0060.01215.03
7.0.170.0100.00715.48
7.0.160.0040.00915.19
7.0.150.0120.00415.31
7.0.140.0060.04118.76
7.0.130.0100.00615.41
7.0.120.0090.00915.24
7.0.110.0140.00415.38
7.0.100.0150.00315.46
7.0.90.0140.00315.38
7.0.80.0090.00615.28
7.0.70.0260.00415.35
7.0.60.0090.04417.61
7.0.50.0130.04016.65
7.0.40.0120.02916.80
7.0.30.0140.02216.76
7.0.20.0210.03516.84
7.0.10.0040.02516.84
7.0.00.0130.04316.91
5.6.380.0160.00014.53
5.6.370.0000.01614.10
5.6.360.0080.00814.37
5.6.350.0130.00314.14
5.6.340.0120.00614.26
5.6.330.0120.00814.46
5.6.320.0110.00514.09
5.6.310.0110.00814.45
5.6.300.0140.00414.27
5.6.290.0130.00414.40
5.6.280.0090.03717.57
5.6.270.0170.00014.29
5.6.260.0060.00914.32
5.6.250.0090.00614.09
5.6.240.0170.00014.09
5.6.230.0090.00614.59
5.6.220.0150.00314.44
5.6.210.0100.03017.51
5.6.200.0060.02616.22
5.6.190.0120.03717.62
5.6.180.1780.02617.30
5.6.170.0150.02817.39
5.6.160.0080.02417.47
5.6.150.0130.03716.27
5.6.140.0120.04216.40
5.6.130.0070.02916.41
5.6.120.0210.02217.65
5.6.110.0160.03617.70
5.6.100.0060.04917.59
5.6.90.0130.04217.63
5.6.80.0110.02717.39
5.6.70.0230.02717.30
5.6.60.0040.01114.13
5.6.50.0070.00714.42
5.6.40.0170.00014.15
5.6.30.0080.00814.15
5.6.20.0090.00914.02
5.6.10.0120.00014.38
5.6.00.0150.00314.20
5.5.380.0110.00012.79
5.5.370.0090.00312.79
5.5.360.0080.00312.79
5.5.350.0160.04116.62
5.5.340.0070.02615.39
5.5.330.0130.04316.61
5.5.320.0250.03416.53
5.5.310.0230.04016.58
5.5.300.0150.03515.38
5.5.290.0050.02315.38
5.5.280.0130.04116.79
5.5.270.0140.04116.84
5.5.260.0030.02916.78
5.5.250.0090.02716.73
5.5.240.0200.04116.53
5.5.230.0070.00412.79
5.5.220.0060.00612.79
5.5.210.0130.00312.79
5.5.200.0100.00312.79
5.5.190.0120.00212.79
5.5.180.0090.00312.79
5.5.170.0090.00914.23
5.5.160.0110.00312.79
5.5.150.0080.00412.79
5.5.140.0050.00912.79
5.5.130.0090.00412.79
5.5.120.0060.00312.79
5.5.110.0090.00212.79
5.5.100.0050.00812.79
5.5.90.0070.00412.79
5.5.80.0140.00312.79
5.5.70.0070.00712.79
5.5.60.0090.00612.79
5.5.50.0090.00612.79
5.5.40.0070.00712.79
5.5.30.0100.00312.79
5.5.20.0090.00412.79
5.5.10.0110.00312.79
5.5.00.0060.00612.79
5.4.450.0450.03615.99
5.4.440.0490.03716.26
5.4.430.0520.03516.05
5.4.420.0410.03515.98
5.4.410.0420.02816.12
5.4.400.0470.03015.97
5.4.390.0510.03116.01
5.4.380.0250.02315.76
5.4.370.0220.02715.76
5.4.360.0180.03215.79
5.4.350.0170.03015.77
5.4.340.0200.03315.71
5.4.330.0050.00812.79
5.4.320.0080.02112.65
5.4.310.0080.02512.64
5.4.300.0040.02312.65
5.4.290.0070.02412.64
5.4.280.0060.02012.59
5.4.270.0050.02112.59
5.4.260.0050.02112.59
5.4.250.0080.01812.59
5.4.240.0080.01912.59
5.4.230.0080.02012.59
5.4.220.0050.02012.59
5.4.210.0090.02112.59
5.4.200.0060.02112.59
5.4.190.0070.02112.59
5.4.180.0080.02412.59
5.4.170.0090.01812.59
5.4.160.0070.02012.59
5.4.150.0060.02112.59
5.4.140.0070.02412.43
5.4.130.0080.02012.42
5.4.120.0080.02012.41
5.4.110.0060.02012.40
5.4.100.0060.02112.40
5.4.90.0070.02112.40
5.4.80.0070.02112.40
5.4.70.0090.01812.40
5.4.60.0080.01912.40
5.4.50.0090.01912.40
5.4.40.0110.01712.39
5.4.30.0120.01712.39
5.4.20.0050.02212.39
5.4.10.0060.02012.39
5.4.00.0070.02112.14
5.3.290.0110.02012.79
5.3.280.0070.02112.75
5.3.270.0080.02112.76
5.3.260.0060.02412.75
5.3.250.0060.02112.75
5.3.240.0080.02112.76
5.3.230.0050.02612.75
5.3.220.0070.01912.73
5.3.210.0050.02312.74
5.3.200.0080.01812.73
5.3.190.0080.02012.73
5.3.180.0090.02012.73
5.3.170.0060.02012.73
5.3.160.0020.02412.73
5.3.150.0060.02112.73
5.3.140.0080.02112.72
5.3.130.0090.01812.72
5.3.120.0040.02312.72
5.3.110.0080.02012.72
5.3.100.0040.02412.45
5.3.90.0090.01912.45
5.3.80.0080.02012.44
5.3.70.0090.02012.44
5.3.60.0060.02312.43
5.3.50.0080.01912.41
5.3.40.0080.02212.41
5.3.30.0080.01812.39
5.3.20.0080.01912.28
5.3.10.0080.01812.26
5.3.00.0050.02212.26
5.2.170.0050.01711.01
5.2.160.0070.01811.01
5.2.150.0060.01711.01
5.2.140.0030.02011.01
5.2.130.0060.01910.99
5.2.120.0050.02110.99
5.2.110.0070.01610.99
5.2.100.0070.01910.99
5.2.90.0060.01810.99
5.2.80.0080.01510.98
5.2.70.0070.01710.99
5.2.60.0070.01510.96
5.2.50.0080.01910.94
5.2.40.0070.01610.93
5.2.30.0100.01510.92
5.2.20.0060.01910.92
5.2.10.0070.01710.87
5.2.00.0040.02010.80
5.1.60.0060.01410.44
5.1.50.0030.01710.44
5.1.40.0060.01210.43
5.1.30.0070.01610.61
5.1.20.0070.02010.62
5.1.10.0040.01610.48
5.1.00.0070.01710.48
5.0.50.0050.0119.71
5.0.40.0030.0159.64
5.0.30.0040.0169.55
5.0.20.0070.0099.53
5.0.10.0010.0139.52
5.0.00.0020.0229.52
4.4.90.0060.0078.79
4.4.80.0020.0128.77
4.4.70.0020.0108.77
4.4.60.0020.0128.77
4.4.50.0020.0128.78
4.4.40.0030.0198.75
4.4.30.0040.0088.77
4.4.20.0040.0088.82
4.4.10.0020.0118.82
4.4.00.0040.0138.78
4.3.110.0020.0118.73
4.3.100.0050.0078.73
4.3.90.0040.0098.71
4.3.80.0050.0118.69
4.3.70.0040.0088.71
4.3.60.0020.0098.71
4.3.50.0030.0108.71
4.3.40.0030.0138.66
4.3.30.0000.0158.04
4.3.20.0020.0118.03
4.3.10.0020.0118.01
4.3.00.0050.01410.48

preferences:
43.68 ms | 400 KiB | 5 Q