3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface MyInterface { public function execute(\stdClass $arg1 = null, $arg2 = null); } trait MyTrait { public function execute() { echo 'Not this'; } } class MyClass implements MyInterface { use MyTrait { execute as protected commanderExecute; } public function execute(\stdClass $arg1 = null, $arg2 = null) { echo 'Hello'; } } (new MyClass)->execute();

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.0030.01018.30
8.3.50.0120.00918.30
8.3.40.0100.01018.71
8.3.30.0100.00318.90
8.3.20.0080.00020.20
8.3.10.0030.00623.38
8.3.00.0040.00419.01
8.2.180.0090.00616.38
8.2.170.0160.00322.96
8.2.160.0090.00622.13
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00520.87
8.2.110.0080.00320.47
8.2.100.0080.00417.72
8.2.90.0000.00817.61
8.2.80.0040.00418.66
8.2.70.0080.00017.93
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0000.00819.17
8.2.30.0040.00419.14
8.2.20.0000.00817.62
8.2.10.0080.00017.90
8.2.00.0000.00817.72
8.1.280.0180.00025.92
8.1.270.0040.00418.70
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.84
8.1.230.0000.01020.88
8.1.220.0020.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0000.00718.89
8.1.170.0000.00818.46
8.1.160.0000.01018.95
8.1.150.0000.00718.75
8.1.140.0040.00417.35
8.1.130.0000.00717.78
8.1.120.0030.00417.41
8.1.110.0040.00417.37
8.1.100.0000.00717.38
8.1.90.0050.00517.43
8.1.80.0040.00417.21
8.1.70.0000.00817.42
8.1.60.0040.00417.44
8.1.50.0040.00417.51
8.1.40.0000.00717.46
8.1.30.0080.00017.48
8.1.20.0000.00717.53
8.1.10.0040.00417.59
8.1.00.0050.00317.46
8.0.300.0030.00618.77
8.0.290.0000.00716.88
8.0.280.0040.00418.45
8.0.270.0000.00717.30
8.0.260.0000.00717.26
8.0.250.0030.00316.93
8.0.240.0000.00616.91
8.0.230.0000.00716.84
8.0.220.0060.00016.73
8.0.210.0070.00016.71
8.0.200.0040.00416.84
8.0.190.0060.00316.91
8.0.180.0020.00516.81
8.0.170.0000.00816.86
8.0.160.0000.00716.79
8.0.150.0050.00216.82
8.0.140.0040.00416.70
8.0.130.0030.00313.32
8.0.120.0070.00316.70
8.0.110.0000.00816.82
8.0.100.0040.00416.66
8.0.90.0040.00416.80
8.0.80.0040.01116.83
8.0.70.0050.00316.81
8.0.60.0000.00716.80
8.0.50.0040.00416.77
8.0.30.0090.01216.93
8.0.20.0140.01017.40
8.0.10.0040.00416.84
8.0.00.0050.01216.64
7.4.330.0000.00515.03
7.4.320.0020.00516.45
7.4.300.0060.00016.48
7.4.290.0040.00416.41
7.4.280.0030.00516.44
7.4.270.0000.00716.46
7.4.260.0050.00516.40
7.4.250.0080.00016.32
7.4.240.0020.00616.53
7.4.230.0030.00316.63
7.4.220.0080.01116.49
7.4.210.0170.00316.62
7.4.200.0000.00716.28
7.4.160.0060.00916.47
7.4.150.0120.01517.40
7.4.140.0130.00817.86
7.4.130.0080.01016.54
7.4.120.0100.00616.42
7.4.110.0110.01116.36
7.4.100.0150.00616.46
7.4.90.0090.00916.59
7.4.80.0080.00819.39
7.4.70.0120.00416.29
7.4.60.0080.00816.48
7.4.50.0030.00616.46
7.4.40.0200.00416.54
7.4.30.0140.00316.28
7.4.00.0070.01114.83
7.3.330.0020.00213.23
7.3.320.0000.00513.11
7.3.310.0000.00716.30
7.3.300.0030.00316.10
7.3.290.0050.00916.22
7.3.280.0100.00916.21
7.3.270.0030.01417.40
7.3.260.0070.01016.17
7.3.250.0160.01316.48
7.3.240.0100.00716.51
7.3.230.0090.00916.47
7.3.210.0100.01316.39
7.3.200.0100.01019.39
7.3.190.0140.00716.52
7.3.180.0000.01616.27
7.3.170.0060.01016.27
7.3.160.0080.00816.36
7.2.330.0030.01316.55
7.2.320.0030.01316.64
7.2.310.0070.01016.34
7.2.300.0070.01016.38
7.2.290.0130.00416.67
7.2.60.0880.00814.93
7.2.00.0000.01419.22
7.1.200.0070.00715.81
7.1.100.0610.00715.94
7.1.70.0030.00317.07
7.1.60.0100.01019.22
7.1.50.0040.01516.56
7.1.00.0070.07022.43
7.0.200.0050.00516.82
7.0.140.0100.05722.15
7.0.60.0300.05020.07
7.0.50.0070.05317.86
7.0.40.0100.06720.25
7.0.30.0270.05020.30
7.0.20.0270.08020.10
7.0.10.0100.03720.10
7.0.00.0100.08020.29
5.6.280.0030.07321.08
5.6.210.0000.06320.67
5.6.200.0070.05318.25
5.6.190.0070.07320.51
5.6.180.0430.07020.62
5.6.170.0330.07020.62
5.6.160.0070.05720.43
5.6.150.0030.07718.15
5.6.140.0030.04318.17
5.6.130.0070.08718.17
5.6.120.0170.06721.10
5.6.110.0100.07021.04
5.6.100.0070.08320.98
5.6.90.0200.08320.97
5.6.80.0130.06020.39
5.5.350.0200.07720.43
5.5.340.0030.04017.95
5.5.330.0070.08320.21
5.5.320.0500.03320.25
5.5.310.0270.07720.39
5.5.300.0070.04318.04
5.5.290.0070.08318.02
5.5.280.0070.06720.75
5.5.270.0000.04320.98
5.5.260.0100.06020.68
5.5.250.0030.09020.69
5.5.240.0200.05020.28
5.4.450.0670.06019.15
5.4.440.0130.05319.23
5.4.430.0170.05319.22
5.4.420.0230.04719.21
5.4.410.0170.06019.18
5.4.400.0870.05318.90
5.4.390.0630.05719.01
5.4.380.0330.05018.62
5.4.370.0430.04018.61
5.4.360.0370.05318.66
5.4.350.0370.05018.48
5.4.340.0330.06318.62
5.4.320.0230.06318.60
5.4.310.0430.06718.66
5.4.300.0130.06018.70
5.4.290.0300.05718.64
5.4.280.0330.05718.71
5.4.270.0330.04718.72
5.4.260.0330.05718.51
5.4.250.0300.06318.55
5.4.240.0400.06018.60
5.4.230.0400.04318.62
5.4.220.0400.05718.47
5.4.210.0200.06718.59
5.4.200.0470.04016.82
5.4.190.0370.05318.71
5.4.180.0330.05018.62
5.4.170.0200.06018.66
5.4.160.0370.06718.62
5.4.150.0200.06318.61
5.4.140.0230.05016.47
5.4.130.0170.05716.35
5.4.120.0330.04316.27
5.4.110.0200.05016.25
5.4.100.0330.04016.22
5.4.90.0200.05016.32
5.4.80.0300.05316.44
5.4.70.0200.05316.28
5.4.60.0300.04316.23
5.4.50.0200.05016.30
5.4.40.0300.04316.24
5.4.30.0230.04716.25
5.4.20.0270.05316.14
5.4.10.0300.06016.22
5.4.00.0330.05315.71
5.3.290.0200.06714.83
5.3.280.0270.05314.70
5.3.270.0330.04714.64
5.3.260.0300.05014.63
5.3.250.0300.05714.80
5.3.240.0200.06314.60
5.3.230.0330.06714.71
5.3.220.0270.06314.77
5.3.210.0370.07314.58
5.3.200.0300.06014.73
5.3.190.0300.05714.65
5.3.180.0230.06714.60
5.3.170.0270.06314.76
5.3.160.0100.06314.74
5.3.150.0130.05714.73
5.3.140.0200.05714.64
5.3.130.0270.05014.63
5.3.120.0200.06314.71
5.3.110.0330.04014.73
5.3.100.0230.04714.14
5.3.90.0230.05014.07
5.3.80.0270.04714.13
5.3.70.0230.07314.05
5.3.60.0230.05014.05
5.3.50.0170.06013.93
5.3.40.0200.05013.98
5.3.30.0230.07014.01
5.3.20.0200.05013.74
5.3.10.0130.05713.68
5.3.00.0130.05713.75
5.2.170.0170.04311.27
5.2.160.0270.04011.16
5.2.150.0130.04711.19
5.2.140.0170.04711.27
5.2.130.0200.03711.30
5.2.120.0170.03711.13
5.2.110.0130.04311.11
5.2.100.0100.05311.09
5.2.90.0170.04011.21
5.2.80.0230.03711.15
5.2.70.0130.04311.09
5.2.60.0130.04311.03
5.2.50.0170.05311.22
5.2.40.0230.04710.98
5.2.30.0170.05011.00
5.2.20.0100.04710.98
5.2.10.0170.03710.88
5.2.00.0100.04010.91
5.1.60.0200.02310.20
5.1.50.0070.04010.03
5.1.40.0130.03310.00
5.1.30.0100.04010.33
5.1.20.0130.03710.47
5.1.10.0100.04010.18
5.1.00.0130.03310.18
5.0.50.0100.0278.68
5.0.40.0030.0338.39
5.0.30.0000.0508.36
5.0.20.0100.0278.39
5.0.10.0130.0278.36
5.0.00.0070.0438.28
4.4.90.0130.0175.84
4.4.80.0130.0175.89
4.4.70.0070.0275.89
4.4.60.0130.0175.85
4.4.50.0070.0235.82
4.4.40.0100.0335.86
4.4.30.0070.0235.87
4.4.20.0070.0235.97
4.4.10.0100.0205.96
4.4.00.0170.0275.93
4.3.110.0070.0275.83
4.3.100.0070.0275.82
4.3.90.0070.0275.82
4.3.80.0100.0435.81
4.3.70.0100.0275.80
4.3.60.0070.0235.79
4.3.50.0070.0235.77
4.3.40.0030.0375.78
4.3.30.0070.0204.56
4.3.20.0030.0234.66
4.3.10.0030.0234.52
4.3.00.0170.0207.61

preferences:
42.65 ms | 400 KiB | 5 Q