3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Bar { } class Foo { use Bar; public static function dump() { var_dump('parent::class: ' . parent::class, 'self::class: ' . self::class, 'static::class: ' . static::class); } } Foo::dump();

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.0070.01116.50
8.3.50.0090.00921.97
8.3.40.0120.00318.81
8.3.30.0100.00318.92
8.3.20.0040.00420.21
8.3.10.0000.00823.56
8.3.00.0050.00319.07
8.2.180.0060.00916.38
8.2.170.0040.01122.96
8.2.160.0060.01020.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00020.92
8.2.110.0060.00322.07
8.2.100.0110.00019.32
8.2.90.0040.00419.09
8.2.80.0050.00517.97
8.2.70.0030.00517.50
8.2.60.0080.00317.80
8.2.50.0030.00618.07
8.2.40.0030.00619.82
8.2.30.0040.00418.20
8.2.20.0070.00017.47
8.2.10.0020.00517.80
8.2.00.0050.00217.56
8.1.280.0090.00625.92
8.1.270.0000.00823.83
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00923.99
8.1.230.0090.00319.00
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0080.00418.34
8.1.160.0040.00421.94
8.1.150.0080.00018.47
8.1.140.0090.00017.18
8.1.130.0030.00317.71
8.1.120.0000.00717.25
8.1.110.0070.00017.21
8.1.100.0070.00017.34
8.1.90.0040.00417.38
8.1.80.0040.00317.29
8.1.70.0030.00517.27
8.1.60.0050.00317.45
8.1.50.0000.00817.30
8.1.40.0040.00717.39
8.1.30.0000.00817.36
8.1.20.0070.00017.52
8.1.10.0040.00417.38
8.1.00.0000.00817.34
8.0.300.0040.00418.77
8.0.290.0030.00516.93
8.0.280.0070.00018.18
8.0.270.0030.00317.13
8.0.260.0000.00617.11
8.0.250.0070.00016.89
8.0.240.0030.00316.84
8.0.230.0030.00316.86
8.0.220.0030.00316.67
8.0.210.0060.00016.86
8.0.200.0030.00316.78
8.0.190.0000.00816.83
8.0.180.0000.00716.89
8.0.170.0020.00516.79
8.0.160.0000.00716.70
8.0.150.0040.00416.71
8.0.140.0030.00316.68
8.0.130.0030.00313.27
8.0.120.0050.00316.79
8.0.110.0000.00816.79
8.0.100.0000.00716.68
8.0.90.0040.00416.72
8.0.80.0110.00916.76
8.0.70.0030.00516.71
8.0.60.0070.00016.85
8.0.50.0000.00716.64
8.0.30.0120.00616.96
8.0.20.0110.00817.40
8.0.10.0040.00416.76
8.0.00.0060.01516.54
7.4.330.0050.00015.08
7.4.320.0000.00616.45
7.4.300.0040.00416.43
7.4.290.0030.00316.41
7.4.280.0060.00316.44
7.4.270.0040.00416.46
7.4.260.0000.00716.43
7.4.250.0000.00716.44
7.4.240.0040.00416.38
7.4.230.0030.00316.32
7.4.220.0070.01316.45
7.4.210.0160.00316.54
7.4.200.0000.00716.51
7.4.190.0030.00316.61
7.4.160.0170.00016.42
7.4.150.0070.01017.40
7.4.140.0200.00317.86
7.4.130.0100.00616.65
7.4.120.0050.01116.48
7.4.110.0030.01316.45
7.4.100.0120.00616.69
7.4.90.0100.01016.20
7.4.80.0100.00719.39
7.4.70.0130.00616.59
7.4.60.0090.00916.36
7.4.50.0050.00316.34
7.4.40.0130.00716.53
7.4.30.0000.01516.30
7.4.00.0070.01014.85
7.3.330.0060.00013.23
7.3.320.0030.00313.23
7.3.310.0070.00016.26
7.3.300.0070.00016.28
7.3.290.0100.01016.37
7.3.280.0120.00616.33
7.3.270.0070.01017.40
7.3.260.0070.01016.43
7.3.250.0130.00816.30
7.3.240.0030.01216.58
7.3.230.0030.01516.39
7.3.210.0080.00816.48
7.3.200.0000.02119.39
7.3.190.0060.01316.38
7.3.180.0110.00716.51
7.3.170.0060.00916.48
7.3.160.0160.00016.41
7.3.120.0070.00714.92
7.3.110.0060.01314.52
7.3.100.0110.00815.01
7.3.90.0070.00714.51
7.3.80.0030.01014.70
7.3.70.0070.00414.70
7.3.60.0040.01114.67
7.3.50.0090.00614.91
7.3.40.0000.01314.89
7.3.30.0090.00614.77
7.3.20.0070.00716.77
7.3.10.0100.00216.57
7.3.00.0080.00916.58
7.2.330.0060.01416.50
7.2.320.0140.01016.56
7.2.310.0140.00416.39
7.2.300.0170.00016.48
7.2.290.0000.01716.44
7.2.250.0070.01014.82
7.2.240.0100.01014.89
7.2.230.0040.01115.09
7.2.220.0060.00915.01
7.2.210.0090.00615.22
7.2.200.0130.00314.50
7.2.190.0030.01314.98
7.2.180.0050.00514.78
7.2.170.0040.00714.59
7.2.160.0040.01214.77
7.2.150.0100.00716.93
7.2.140.0040.00716.73
7.2.130.0100.00516.81
7.2.120.0080.01116.64
7.2.110.0120.00416.70
7.2.100.0090.00916.51
7.2.90.0110.00316.81
7.2.80.0060.01016.76
7.2.70.0090.01016.76
7.2.60.0060.00716.75
7.2.50.0130.00316.87
7.2.40.0100.00516.62
7.2.30.0050.01016.82
7.2.20.0080.00716.58
7.2.10.0080.00616.62
7.2.00.0070.00717.58
7.1.330.0090.00915.58
7.1.320.0110.00415.91
7.1.310.0030.01015.87
7.1.300.0070.00715.74
7.1.290.0040.00815.62
7.1.280.0090.00615.50
7.1.270.0030.00915.39
7.1.260.0070.00715.56
7.1.250.0140.00115.75
7.1.240.0100.00615.68
7.1.230.0100.00415.53
7.1.220.0060.00815.46
7.1.210.0080.00815.41
7.1.200.0090.00415.53
7.1.190.0090.00915.73
7.1.180.0060.00915.43
7.1.170.0070.01115.64
7.1.160.0070.00915.56
7.1.150.0080.00515.67
7.1.140.0090.00915.70
7.1.130.0080.00815.65
7.1.120.0050.00815.58
7.1.110.0090.00715.79
7.1.100.0110.00416.41
7.1.90.0080.00515.59
7.1.80.0070.00815.50
7.1.70.0080.00516.07
7.1.60.0080.01117.02
7.1.50.0050.01115.98
7.1.40.0090.00515.67
7.1.30.0050.00915.73
7.1.20.0100.00515.75
7.1.10.0090.00615.57
7.1.00.0090.02917.81
7.0.330.0070.00715.22
7.0.320.0050.00815.15
7.0.310.0120.00715.28
7.0.300.0130.00515.38
7.0.290.0050.01215.14
7.0.280.0110.00615.23
7.0.270.0110.00815.10
7.0.260.0080.00915.33
7.0.250.0060.01015.40
7.0.240.0120.00215.23
7.0.230.0060.00915.16
7.0.220.0050.01015.24
7.0.210.0100.00515.17
7.0.200.0380.00615.05
7.0.190.0100.00515.20
7.0.180.0100.00615.38
7.0.170.0090.00515.26
7.0.160.0110.00515.18
7.0.150.0070.01415.19
7.0.140.0080.03117.57
7.0.130.0150.00515.23
7.0.120.0140.00715.21
7.0.110.0110.03416.88
7.0.100.0110.02516.80
7.0.90.0130.02716.68
7.0.80.0300.02516.88
7.0.70.0330.02616.81
7.0.60.0290.03116.88
7.0.50.0310.02817.10
7.0.40.0090.03115.47
7.0.30.0080.03315.64
7.0.20.0140.02615.61
7.0.10.0180.01415.56
7.0.00.0100.02215.64
5.6.400.0060.00914.16
5.6.390.0040.01214.17
5.6.380.0040.01114.26
5.6.370.0070.00914.32
5.6.360.0070.00714.18
5.6.350.0070.00914.31
5.6.340.0080.00614.21
5.6.330.0070.00613.99
5.6.320.0040.01114.20
5.6.310.0050.00814.10
5.6.300.0060.00814.30
5.6.290.0040.01114.33
5.6.280.0060.03116.44
5.6.270.0050.00914.21
5.6.260.0080.02716.40
5.6.250.0070.03116.32
5.6.240.0090.03116.18
5.6.230.0120.02916.44
5.6.220.0070.02416.38
5.6.210.0040.03416.40
5.6.200.0070.03016.49
5.6.190.0050.03516.43
5.6.180.0090.01816.36
5.6.170.0030.03516.45
5.6.160.0080.02816.40
5.6.150.0100.03216.53
5.6.140.0070.02816.35
5.6.130.0070.03016.50
5.6.120.0050.02316.42
5.6.110.0090.02316.38
5.6.100.0100.02916.33
5.6.90.0030.02116.41
5.6.80.0020.03616.08
5.6.70.0090.02816.18
5.6.60.0070.02716.20
5.6.50.0040.03016.18
5.6.40.0070.03216.29
5.6.30.0100.02816.18
5.6.20.0080.03016.36
5.6.10.0090.02816.22
5.6.00.0080.03316.16
5.5.380.0100.02915.33
5.5.370.0070.02915.26
5.5.360.0100.03015.22
5.5.350.0060.02215.24
5.5.340.0070.02615.26
5.5.330.0060.03215.30
5.5.320.0080.02515.24
5.5.310.0080.02015.31
5.5.300.0070.03115.39
5.5.290.0080.02815.21
5.5.280.0030.03215.24
5.5.270.0060.03215.46
5.5.260.0080.03015.30
5.5.250.0100.02915.31
5.5.240.0070.02615.21
5.5.230.0040.03315.11
5.5.220.0100.02615.04
5.5.210.0080.02315.01
5.5.200.0090.02014.97
5.5.190.0100.02915.09
5.5.180.0080.02814.98
5.5.170.0050.00712.49
5.5.160.0080.02914.88
5.5.150.0060.03015.01
5.5.140.0070.01614.94
5.5.130.0080.03014.94
5.5.120.0040.03015.06
5.5.110.0080.02914.91
5.5.100.0080.02914.95
5.5.90.0060.02815.08
5.5.80.0050.03215.06
5.5.70.0060.03014.99
5.5.60.0070.02214.94
5.5.50.0060.03115.18
5.5.40.0040.03315.03
5.5.30.0060.03015.04
5.5.20.0050.03114.90
5.5.10.0070.02814.91
5.5.00.0030.03014.82
5.4.450.0040.02713.62
5.4.440.0060.03113.73
5.4.430.0090.02313.71
5.4.420.0030.03213.71
5.4.410.0040.02713.63
5.4.400.0050.02613.58
5.4.390.0080.02813.54
5.4.380.0070.02713.50
5.4.370.0080.02313.46
5.4.360.0050.02513.49
5.4.350.0060.03013.55
5.4.340.0060.02313.62
5.4.330.0060.00310.71
5.4.320.0040.03013.32
5.4.310.0030.03013.58
5.4.300.0030.03113.58
5.4.290.0030.02013.43
5.4.280.0050.02813.49
5.4.270.0040.01813.43
5.4.260.0110.02213.53
5.4.250.0050.03113.37
5.4.240.0070.02213.37
5.4.230.0050.02613.49
5.4.220.0080.02013.54
5.4.210.0040.01613.51
5.4.200.0050.02813.53
5.4.190.0070.02813.53
5.4.180.0100.02513.46
5.4.170.0070.02713.60
5.4.160.0070.02413.57
5.4.150.0030.03113.46
5.4.140.0040.01912.71
5.4.130.0020.03112.46
5.4.120.0090.01712.56
5.4.110.0080.02512.58
5.4.100.0050.02612.59
5.4.90.0090.02612.70
5.4.80.0090.02612.78
5.4.70.0060.02912.54
5.4.60.0060.02112.54
5.4.50.0020.02012.61
5.4.40.0090.02512.70
5.4.30.0060.02812.59
5.4.20.0010.02812.65
5.4.10.0080.02712.74
5.4.00.0030.02712.51
5.3.290.0100.01611.65
5.3.280.0040.02811.55
5.3.270.0030.03011.60
5.3.260.0060.02511.59
5.3.250.0060.02611.65
5.3.240.0060.01711.40
5.3.230.0040.03011.58
5.3.220.0050.03011.57
5.3.210.0020.03011.60
5.3.200.0020.03111.65
5.3.190.0040.02911.67
5.3.180.0060.02811.65
5.3.170.0030.03011.69
5.3.160.0060.02811.60
5.3.150.0040.02911.66
5.3.140.0050.02811.65
5.3.130.0050.03011.67
5.3.120.0040.01811.65
5.3.110.0040.02011.67
5.3.100.0110.02411.44
5.3.90.0050.02611.44
5.3.80.0060.02811.47
5.3.70.0060.02711.46
5.3.60.0060.02511.46
5.3.50.0070.02211.40
5.3.40.0070.02411.41
5.3.30.0020.02711.33
5.3.20.0020.03011.25
5.3.10.0040.02411.16
5.3.00.0060.01911.12
5.2.170.0020.02310.67
5.2.160.0070.02710.60
5.2.150.0020.03410.53
5.2.140.0070.03210.61
5.2.130.0120.02710.68
5.2.120.0030.02710.62
5.2.110.0050.03210.54
5.2.100.0090.03110.66
5.2.90.0040.03110.63
5.2.80.0100.02710.63
5.2.70.0040.03610.59
5.2.60.0070.02810.55
5.2.50.0060.03310.52
5.2.40.0090.02710.62
5.2.30.0030.02710.62
5.2.20.0110.02910.46
5.2.10.0120.03010.47
5.2.00.0040.03410.46
5.1.60.0030.02910.46
5.1.50.0060.02110.46
5.1.40.0070.02810.46
5.1.30.0090.02910.46
5.1.20.0030.02910.46
5.1.10.0020.02910.46
5.1.00.0090.02210.46
5.0.50.0050.02310.46
5.0.40.0060.02210.46
5.0.30.0050.03510.46
5.0.20.0030.02510.46
5.0.10.0060.02210.46
5.0.00.0030.02810.46
4.4.90.0070.01710.46
4.4.80.0050.01610.46
4.4.70.0040.01710.46
4.4.60.0020.02210.46
4.4.50.0030.02010.46
4.4.40.0080.02010.46
4.4.30.0020.02210.46
4.4.20.0020.01110.46
4.4.10.0050.01510.46
4.4.00.0050.02310.46
4.3.110.0020.02010.46
4.3.100.0040.01910.46
4.3.90.0040.01410.46
4.3.80.0040.01510.46
4.3.70.0040.01710.46
4.3.60.0040.01910.46
4.3.50.0030.01810.46
4.3.40.0030.02810.46
4.3.30.0040.01910.46
4.3.20.0010.02110.46
4.3.10.0040.01510.46
4.3.00.0030.01810.46

preferences:
52.45 ms | 401 KiB | 5 Q