3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo() { echo 'bar'; } } trait footrait { public function qux() { parent::foo(); } } class B extends A { use footrait; public function foo() { $this->qux(); // echo 'baz'; } } $b = new B(); $b->foo();

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.0150.00018.84
8.3.30.0000.01418.84
8.3.20.0020.00520.20
8.3.10.0040.00423.65
8.3.00.0080.00020.86
8.2.170.0030.01022.96
8.2.160.0150.00420.35
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0050.00220.72
8.2.110.0060.00320.58
8.2.100.0000.01118.03
8.2.90.0050.00317.75
8.2.80.0040.00718.78
8.2.70.0050.00317.50
8.2.60.0000.00817.63
8.2.50.0080.00018.05
8.2.40.0000.00817.93
8.2.30.0000.00718.13
8.2.20.0040.00417.70
8.2.10.0070.00018.07
8.2.00.0000.00717.63
8.1.270.0080.00023.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00023.71
8.1.230.0040.00720.82
8.1.220.0000.00918.69
8.1.210.0040.00418.77
8.1.200.0000.00817.25
8.1.190.0000.00817.23
8.1.180.0100.00018.10
8.1.170.0060.00317.62
8.1.160.0040.00422.02
8.1.150.0000.00718.57
8.1.140.0050.00217.34
8.1.130.0070.00017.75
8.1.120.0030.00517.52
8.1.110.0000.00917.44
8.1.100.0020.00517.44
8.1.90.0040.00417.46
8.1.80.0070.00017.34
8.1.70.0030.00317.43
8.1.60.0030.00517.51
8.1.50.0040.00417.53
8.1.40.0030.00517.51
8.1.30.0000.00817.56
8.1.20.0040.00417.70
8.1.10.0080.00017.55
8.1.00.0000.00717.37
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0030.00318.36
8.0.270.0030.00316.82
8.0.260.0030.00317.14
8.0.250.0030.00316.87
8.0.240.0000.00816.99
8.0.230.0000.00816.95
8.0.220.0030.00316.78
8.0.210.0060.00216.79
8.0.200.0000.00716.95
8.0.190.0030.00317.00
8.0.180.0060.00316.89
8.0.170.0000.00817.02
8.0.160.0000.00816.90
8.0.150.0000.00816.75
8.0.140.0030.00516.82
8.0.130.0030.00313.31
8.0.120.0050.00316.82
8.0.110.0030.00516.84
8.0.100.0000.00716.88
8.0.90.0070.00016.77
8.0.80.0030.01016.84
8.0.70.0000.00717.01
8.0.60.0040.00416.88
8.0.50.0060.00316.76
8.0.30.0110.00816.98
8.0.20.0060.01217.40
8.0.10.0040.00416.84
8.0.00.0070.01116.87
7.4.330.0020.00215.00
7.4.320.0000.00616.51
7.4.300.0000.00616.46
7.4.290.0030.00316.50
7.4.280.0070.00316.61
7.4.270.0000.00716.37
7.4.260.0080.00016.48
7.4.250.0030.00516.56
7.4.240.0000.00716.62
7.4.230.0030.00316.70
7.4.220.0060.01316.54
7.4.210.0050.01016.59
7.4.200.0000.00716.39
7.4.190.0070.00016.56
7.4.160.0140.00316.31
7.4.150.0060.01217.40
7.4.140.0130.00517.86
7.4.130.0110.00616.55
7.4.120.0080.00816.44
7.4.110.0130.00316.50
7.4.100.0030.01416.58
7.4.90.0100.01316.49
7.4.80.0040.01319.39
7.4.70.0090.00916.59
7.4.60.0050.01116.55
7.4.50.0030.00616.53
7.4.40.0120.00916.41
7.4.30.0100.00616.36
7.4.10.0030.01414.99
7.4.00.0050.00914.98
7.3.330.0020.00213.32
7.3.320.0000.00513.09
7.3.310.0040.00416.19
7.3.300.0030.00316.24
7.3.290.0070.01116.32
7.3.280.0090.01016.28
7.3.270.0180.00017.40
7.3.260.0130.01016.48
7.3.250.0140.00816.40
7.3.240.0030.01416.21
7.3.230.0030.01316.52
7.3.210.0080.00916.41
7.3.200.0040.01119.39
7.3.190.0060.01516.21
7.3.180.0100.00716.24
7.3.170.0100.00616.50
7.3.160.0090.00916.40
7.3.130.0060.00914.59
7.3.120.0050.01114.98
7.3.110.0040.01514.62
7.3.100.0100.00714.52
7.3.90.0030.01014.75
7.3.80.0060.00614.77
7.3.70.0030.00714.71
7.3.60.0050.00514.67
7.3.50.0090.00614.82
7.3.40.0100.00314.94
7.3.30.0030.00714.57
7.3.20.0080.00816.40
7.3.10.0090.00516.43
7.3.00.0040.01116.75
7.2.330.0170.00016.34
7.2.320.0150.00616.41
7.2.310.0100.00716.59
7.2.300.0130.00316.25
7.2.290.0090.00916.39
7.2.260.0070.01015.07
7.2.250.0040.01414.84
7.2.240.0030.01414.89
7.2.230.0070.01415.14
7.2.220.0060.01614.95
7.2.210.0040.01114.94
7.2.200.0000.01215.02
7.2.190.0040.00415.02
7.2.180.0060.00915.07
7.2.170.0090.00914.88
7.2.160.0060.01014.92
7.2.150.0090.00016.96
7.2.140.0090.00616.86
7.2.130.0020.01216.85
7.2.120.0050.01116.98
7.2.110.0080.00616.96
7.2.100.0040.00816.75
7.2.90.0030.01116.83
7.2.80.0070.00616.77
7.2.70.0020.01416.93
7.2.60.0050.01116.95
7.2.50.0050.01016.95
7.2.40.0080.01016.93
7.2.30.0080.00316.97
7.2.20.0020.01716.88
7.2.10.0080.00616.85
7.2.00.0050.01017.63
7.1.330.0030.01015.70
7.1.320.0090.00615.36
7.1.310.0060.00615.64
7.1.300.0100.00315.72
7.1.290.0030.01015.74
7.1.280.0040.00415.66
7.1.270.0100.00315.50
7.1.260.0060.00315.70
7.1.250.0070.00815.67
7.1.240.0070.00315.49
7.1.230.0080.00515.71
7.1.220.0030.00715.69
7.1.210.0000.01415.78
7.1.200.0060.00615.64
7.1.190.0070.00715.72
7.1.180.0030.01015.50
7.1.170.0030.00915.53
7.1.160.0040.00815.73
7.1.150.0080.00315.69
7.1.140.0030.01115.52
7.1.130.0040.01415.66
7.1.120.0090.00315.59
7.1.110.0030.00915.69
7.1.100.0090.00516.86
7.1.90.0080.00815.73
7.1.80.0070.01015.81
7.1.70.0020.00616.27
7.1.60.0070.01217.42
7.1.50.0120.00316.23
7.1.40.0110.00315.80
7.1.30.0100.00315.81
7.1.20.0000.01415.58
7.1.10.0030.00715.30
7.1.00.0030.04318.99
7.0.330.0030.00715.38
7.0.320.0030.01015.29
7.0.310.0070.00715.06
7.0.300.0100.00315.07
7.0.290.0030.00715.43
7.0.280.0030.00915.38
7.0.270.0070.00415.26
7.0.260.0050.00314.98
7.0.250.0060.00914.99
7.0.240.0150.00315.19
7.0.230.0070.00715.41
7.0.220.0000.01315.28
7.0.210.0080.00615.45
7.0.200.0030.00716.09
7.0.190.0040.01215.03
7.0.180.0070.01115.34
7.0.170.0080.00615.18
7.0.160.0000.01415.09
7.0.150.0030.00715.38
7.0.140.0080.03718.73
7.0.130.0080.00415.11
7.0.120.0070.00315.23
7.0.110.0000.01315.41
7.0.100.0220.03217.75
7.0.90.0290.04217.57
7.0.80.0290.03717.53
7.0.70.0260.04117.61
7.0.60.0330.04017.49
7.0.50.0290.04517.84
7.0.40.0070.04716.61
7.0.30.0040.04716.78
7.0.20.0070.04516.72
7.0.10.0040.04816.72
7.0.00.0030.04716.68
5.6.400.0000.00914.43
5.6.390.0030.00914.25
5.6.380.0040.00413.91
5.6.370.0000.01414.11
5.6.360.0090.00614.21
5.6.350.0110.00414.44
5.6.340.0040.01114.64
5.6.330.0110.00014.29
5.6.320.0100.00714.26
5.6.310.0000.01314.51
5.6.300.0030.01013.84
5.6.290.0040.01114.24
5.6.280.0050.04017.84
5.6.270.0060.00614.26
5.6.260.0040.01214.03
5.6.250.0080.03317.43
5.6.240.0030.03717.52
5.6.230.0080.04517.39
5.6.220.0060.04417.56
5.6.210.0080.04217.46
5.6.200.0050.04317.68
5.6.190.0130.04117.77
5.6.180.0080.02817.53
5.6.170.0070.04117.81
5.6.160.0130.02317.61
5.6.150.0060.04417.46
5.6.140.0080.04317.60
5.6.130.0100.04117.79
5.6.120.0070.04217.62
5.6.110.0070.04417.79
5.6.100.0100.04217.67
5.6.90.0050.05017.65
5.6.80.0070.03817.33
5.6.70.0050.02817.22
5.6.60.0070.04417.50
5.6.50.0120.02217.18
5.6.40.0080.02617.29
5.6.30.0020.03917.33
5.6.20.0100.03817.25
5.6.10.0100.03717.16
5.6.00.0050.04217.50
5.5.380.0070.04217.28
5.5.370.0070.03717.22
5.5.360.0060.04517.41
5.5.350.0070.03917.32
5.5.340.0050.02817.66
5.5.330.0100.04417.50
5.5.320.0100.04017.51
5.5.310.0070.04417.57
5.5.300.0000.04917.53
5.5.290.0120.04317.48
5.5.280.0050.04417.28
5.5.270.0050.04517.42
5.5.260.0020.04717.36
5.5.250.0080.04517.30
5.5.240.0080.03717.28
5.5.230.0100.04317.28
5.5.220.0090.04017.17
5.5.210.0080.03817.20
5.5.200.0070.04017.20
5.5.190.0050.04016.94
5.5.180.0130.03517.21
5.5.170.0060.00914.30
5.5.160.0080.04117.23
5.5.150.0070.03017.18
5.5.140.0070.04517.32
5.5.130.0080.03717.22
5.5.120.0090.03717.17
5.5.110.0100.04217.21
5.5.100.0080.03817.06
5.5.90.0020.03117.12
5.5.80.0060.02816.94
5.5.70.0060.03217.09
5.5.60.0030.02317.13
5.5.50.0030.02917.21
5.5.40.0050.04317.27
5.5.30.0070.02317.03
5.5.20.0070.02217.04
5.5.10.0050.02617.05
5.5.00.0070.01817.06
5.4.450.0100.04415.83
5.4.440.0040.04515.88
5.4.430.0050.03915.83
5.4.420.0070.04215.72
5.4.410.0050.04115.78
5.4.400.0100.03815.56
5.4.390.0050.04215.71
5.4.380.0040.02815.66
5.4.370.0050.04315.56
5.4.360.0080.03915.70
5.4.350.0030.04515.73
5.4.340.0120.02315.74
5.4.330.0000.01012.22
5.4.320.0030.02615.72
5.4.310.0080.03515.56
5.4.300.0080.03715.61
5.4.290.0060.04115.71
5.4.280.0020.04415.55
5.4.270.0070.03315.55
5.4.260.0030.04015.58
5.4.250.0030.02815.72
5.4.240.0020.02715.65
5.4.230.0090.01515.63
5.4.220.0070.02015.55
5.4.210.0070.01815.71
5.4.200.0030.02315.69
5.4.190.0030.02215.54
5.4.180.0020.02115.67
5.4.170.0040.02015.58
5.4.160.0050.01815.66
5.4.150.0020.02515.63
5.4.140.0030.02014.34
5.4.130.0070.01514.30
5.4.120.0020.03114.35
5.4.110.0050.02514.39
5.4.100.0030.02314.34
5.4.90.0080.02514.32
5.4.80.0000.03214.39
5.4.70.0050.01814.34
5.4.60.0060.01914.28
5.4.50.0020.02514.28
5.4.40.0040.02314.40
5.4.30.0090.01514.30
5.4.20.0070.02514.33
5.4.10.0080.01714.31
5.4.00.0030.02114.05
5.3.290.0080.03613.48
5.3.280.0060.02513.40
5.3.270.0020.03713.45
5.3.260.0020.02313.47
5.3.250.0030.02013.42
5.3.240.0060.02313.47
5.3.230.0030.02213.44
5.3.220.0040.01913.43
5.3.210.0030.02113.43
5.3.200.0050.02513.41
5.3.190.0030.02313.44
5.3.180.0050.03213.43
5.3.170.0060.01913.41
5.3.160.0060.01813.36
5.3.150.0050.02413.36
5.3.140.0030.02513.46
5.3.130.0020.02313.46
5.3.120.0060.01913.37
5.3.110.0050.02013.45
5.3.100.0000.02513.12
5.3.90.0000.02413.11
5.3.80.0000.02513.17
5.3.70.0060.01613.15
5.3.60.0000.02313.13
5.3.50.0030.02013.09
5.3.40.0030.02313.05
5.3.30.0030.03113.06
5.3.20.0070.01712.97
5.3.10.0030.01813.00
5.3.00.0030.01812.92
5.2.170.0070.05011.37
5.2.160.0030.02711.37
5.2.150.0030.02711.37
5.2.140.0100.02311.37
5.2.130.0000.03011.37
5.2.120.0000.03011.37
5.2.110.0030.03011.37
5.2.100.0000.03011.37
5.2.90.0070.02311.37
5.2.80.0070.02311.37
5.2.70.0000.03011.37
5.2.60.0030.02711.37
5.2.50.0030.03011.37
5.2.40.0030.02711.37
5.2.30.0030.05711.37
5.2.20.0000.03311.37
5.2.10.0000.05011.37
5.2.00.0000.04311.37
5.1.60.0030.02311.37
5.1.50.0030.03711.37
5.1.40.0100.03311.37
5.1.30.0100.05011.37
5.1.20.0070.03011.37
5.1.10.0070.05011.37
5.1.00.0030.05711.37
5.0.50.0030.02711.37
5.0.40.0000.03311.37
5.0.30.0100.05311.37
5.0.20.0000.04711.37
5.0.10.0000.04011.37
5.0.00.0030.05011.37
4.4.90.0000.01711.37
4.4.80.0000.01711.37
4.4.70.0030.03311.37
4.4.60.0070.03311.37
4.4.50.0000.01311.37
4.4.40.0030.04311.37
4.4.30.0000.03711.37
4.4.20.0000.02711.37
4.4.10.0070.03011.37
4.4.00.0000.05711.37
4.3.110.0030.03311.37
4.3.100.0000.03711.37
4.3.90.0030.03311.37
4.3.80.0030.05011.37
4.3.70.0100.02711.37
4.3.60.0000.03011.37
4.3.50.0070.03011.37
4.3.40.0030.05011.37
4.3.30.0000.03711.37
4.3.20.0030.02311.37
4.3.10.0030.03011.37
4.3.00.0030.03011.37

preferences:
46.97 ms | 400 KiB | 5 Q