3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait MyTrait { public function traitFunction() { return parent::otherFunction(); } } class MyClass { public function foo() { return 'bar'; } public static function derp() { return $this->foo(); } } MyClass::derp();

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.0090.00616.50
8.3.50.0120.00616.26
8.3.40.0150.00318.65
8.3.30.0060.00918.49
8.3.20.0050.00220.30
8.3.10.0000.00723.54
8.3.00.0050.00322.40
8.2.180.0090.00916.75
8.2.170.0070.00722.96
8.2.160.0100.00321.88
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00017.63
8.2.110.0060.00319.18
8.2.100.0080.00417.38
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0050.00317.25
8.2.60.0060.00317.80
8.2.50.0030.00518.07
8.2.40.0040.00421.10
8.2.30.0090.00019.61
8.2.20.0040.00417.58
8.2.10.0000.00718.01
8.2.00.0040.00417.98
8.1.280.0110.00625.92
8.1.270.0090.00020.20
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0090.00021.17
8.1.230.0060.00617.42
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00417.22
8.1.190.0030.00517.22
8.1.180.0000.00818.10
8.1.170.0030.00518.57
8.1.160.0030.00421.86
8.1.150.0000.00718.60
8.1.140.0040.00417.39
8.1.130.0000.00717.56
8.1.120.0000.00717.22
8.1.110.0040.00417.24
8.1.100.0030.00517.35
8.1.90.0030.00417.20
8.1.80.0030.00517.31
8.1.70.0000.00717.20
8.1.60.0040.00417.50
8.1.50.0040.00417.51
8.1.40.0000.00817.44
8.1.30.0030.00517.54
8.1.20.0000.00717.60
8.1.10.0000.01017.40
8.1.00.0080.00017.41
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.37
8.0.270.0030.00517.18
8.0.260.0060.00017.09
8.0.250.0070.00016.97
8.0.240.0070.00016.98
8.0.230.0050.00316.83
8.0.220.0070.00016.81
8.0.210.0000.00716.73
8.0.200.0000.00716.90
8.0.190.0000.00916.91
8.0.180.0040.00416.90
8.0.170.0040.00416.91
8.0.160.0000.00716.79
8.0.150.0000.00716.90
8.0.140.0040.00416.73
8.0.130.0020.00513.32
8.0.120.0030.00516.72
8.0.110.0000.00716.85
8.0.100.0040.00416.91
8.0.90.0000.00716.88
8.0.80.0030.02016.98
8.0.70.0040.00416.90
8.0.60.0000.00816.70
8.0.50.0000.00716.68
8.0.30.0090.00917.00
8.0.20.0110.00817.40
8.0.10.0000.00916.73
8.0.00.0090.00816.78
7.4.330.0000.00515.08
7.4.320.0030.00316.38
7.4.300.0030.00316.45
7.4.290.0030.00616.57
7.4.280.0000.00816.49
7.4.270.0030.00316.47
7.4.260.0030.00316.43
7.4.250.0000.00716.41
7.4.240.0020.00516.46
7.4.230.0040.00416.39
7.4.220.0100.00616.33
7.4.210.0140.00716.56
7.4.200.0030.00316.59
7.4.160.0100.00616.70
7.4.150.0000.01817.40
7.4.140.0140.00717.86
7.4.130.0080.01216.45
7.4.120.0070.01016.39
7.4.110.0060.01116.54
7.4.100.0120.00616.54
7.4.90.0120.00416.48
7.4.80.0130.00319.39
7.4.70.0070.01016.32
7.4.60.0110.00816.37
7.4.50.0050.00016.64
7.4.40.0000.02116.34
7.4.30.0140.00716.45
7.4.00.0090.00615.03
7.3.330.0080.00013.14
7.3.320.0000.00613.32
7.3.310.0050.00216.29
7.3.300.0070.00016.32
7.3.290.0100.00716.36
7.3.280.0080.00916.35
7.3.270.0120.00617.40
7.3.260.0140.01116.53
7.3.250.0030.01416.41
7.3.240.0100.00716.59
7.3.230.0090.00616.46
7.3.210.0070.01016.52
7.3.200.0150.00416.59
7.3.190.0090.00416.39
7.3.180.0070.00816.34
7.3.170.0090.01416.43
7.3.160.0090.01116.29
7.3.120.0070.01115.04
7.3.110.0100.00714.79
7.3.100.0070.00714.71
7.3.90.0040.01114.74
7.3.80.0070.01414.75
7.3.70.0030.01014.81
7.3.60.0070.00314.89
7.3.50.0040.00814.39
7.3.40.0040.01214.64
7.3.30.0000.01314.71
7.3.20.0070.01016.68
7.3.10.0060.00616.67
7.3.00.0090.00916.54
7.2.330.0080.01516.60
7.2.320.0070.01116.48
7.2.310.0150.00916.26
7.2.300.0080.00816.37
7.2.290.0090.00616.66
7.2.250.0100.01015.06
7.2.240.0150.00415.04
7.2.230.0000.01115.03
7.2.220.0030.00714.79
7.2.210.0070.00715.06
7.2.200.0040.01114.93
7.2.190.0030.01114.93
7.2.180.0070.01114.84
7.2.170.0130.00314.66
7.2.60.0110.00016.70
7.2.50.0130.00316.81
7.2.00.0070.01119.48
7.1.330.0000.01415.69
7.1.320.0060.00815.31
7.1.310.0030.00615.39
7.1.300.0110.00415.81
7.1.290.0110.00015.56
7.1.280.0070.01015.74
7.1.270.0130.00015.68
7.1.260.0070.00715.74
7.1.200.0070.00715.39
7.1.70.0040.00417.03
7.1.60.0120.01219.18
7.1.50.0070.01016.86
7.1.00.0030.07722.43
7.0.200.0090.00616.42
7.0.60.0070.06719.88
7.0.50.0070.04017.86
7.0.40.0030.09020.21
7.0.30.0200.05720.12
7.0.20.0270.08720.23
7.0.10.0030.04320.25
7.0.00.0000.04720.23
5.6.280.0000.03321.13
5.6.210.0000.06020.46
5.6.200.0070.07718.23
5.6.190.0100.05020.48
5.6.180.0370.05720.52
5.6.170.0200.04320.55
5.6.160.0100.08020.49
5.6.150.0070.08718.29
5.6.140.0030.06718.24
5.6.130.0030.05718.15
5.6.120.0070.05720.95
5.6.110.0130.05721.00
5.6.100.0070.08020.98
5.6.90.0170.06320.95
5.6.80.0070.08720.36
5.5.350.2630.04020.31
5.5.340.0000.04318.05
5.5.330.0070.07320.13
5.5.320.0270.07720.37
5.5.310.0230.03720.25
5.5.300.0030.04017.93
5.5.290.0070.06717.99
5.5.280.0030.08720.69
5.5.270.0070.05020.80
5.5.260.0030.05320.87
5.5.250.0030.04720.59
5.5.240.0000.08720.04
5.4.450.0630.07019.60
5.4.440.0670.06019.55
5.4.430.0900.06719.33
5.4.420.0830.07019.62
5.4.410.0700.05319.42
5.4.400.0800.05318.98
5.4.390.0900.06019.37
5.4.380.0800.06319.16
5.4.370.0570.05319.14
5.4.360.0630.05319.25
5.4.350.0300.05019.05
5.4.340.0100.06319.03
5.4.320.0030.06019.14
5.4.310.0570.04719.27
5.4.300.0570.05719.12
5.4.290.0670.06719.14
5.4.280.0370.05719.23
5.4.270.0200.05319.36
5.4.260.0170.06719.16
5.4.250.0500.05719.20
5.4.240.0570.05318.97
5.4.230.0600.05319.24
5.4.220.0730.05319.01
5.4.210.0600.05319.09
5.4.200.0700.04016.91
5.4.190.0570.05319.12
5.4.180.0830.06319.05
5.4.170.0830.06719.11
5.4.160.0770.05318.97
5.4.150.0670.05318.96
5.4.140.1030.05716.57
5.4.130.0670.05716.32
5.4.120.0870.05316.44
5.4.110.1030.04716.44
5.4.100.0800.05316.53
5.4.90.1030.05316.40
5.4.80.0730.05016.43
5.4.70.0830.05716.58
5.4.60.0730.05316.32
5.4.50.0700.04716.49
5.4.40.0600.04716.27
5.4.30.0530.06016.24
5.4.20.0130.06716.48
5.4.10.0130.05016.35
5.4.00.0430.05316.02
5.3.290.0670.06014.65
5.3.280.0770.05314.53
5.3.270.0800.05014.54
5.3.260.0730.05314.54
5.3.250.0800.04714.46
5.3.240.0700.06014.45
5.3.230.0670.05714.70
5.3.220.0700.05014.41
5.3.210.0630.06014.54
5.3.200.0630.04714.36
5.3.190.0570.06014.55
5.3.180.0870.06314.39
5.3.170.0770.04714.66
5.3.160.0730.05014.41
5.3.150.0630.05714.40
5.3.140.0700.05714.56
5.3.130.0900.06014.50
5.3.120.0700.04714.48
5.3.110.0700.05014.64
5.3.100.0630.05014.02
5.3.90.0700.06014.04
5.3.80.0670.06713.97
5.3.70.0130.05313.86
5.3.60.0230.04313.88
5.3.50.0200.06013.82
5.3.40.0700.05313.82
5.3.30.0700.06013.86
5.3.20.0770.05313.48
5.3.10.0870.04313.61
5.3.00.0800.06313.43
5.2.170.0700.03710.99
5.2.160.0530.04011.19
5.2.150.0830.05311.30
5.2.140.0630.06311.30
5.2.130.0670.03710.96
5.2.120.0530.04311.05
5.2.110.0730.04710.93
5.2.100.0570.04310.94
5.2.90.0600.03310.99
5.2.80.0500.04710.94
5.2.70.0600.04311.03
5.2.60.0670.03711.09
5.2.50.0670.03311.17
5.2.40.0400.04310.86
5.2.30.0370.04310.91
5.2.20.0400.04011.00
5.2.10.0370.04010.75
5.2.00.0400.05710.66
5.1.60.0370.03310.02
5.1.50.0630.0309.92
5.1.40.0530.0439.91
5.1.30.0400.05010.25
5.1.20.0600.03710.30
5.1.10.0430.03710.12
5.1.00.0370.0439.95
5.0.50.0200.0408.70
5.0.40.0200.0278.24
5.0.30.0270.0478.14
5.0.20.0230.0378.35
5.0.10.0330.0278.14
5.0.00.0300.0378.06
4.4.90.0170.0236.59
4.4.80.0170.0276.60
4.4.70.0270.0206.60
4.4.60.0270.0176.60
4.4.50.0200.0236.60
4.4.40.0230.0336.61
4.4.30.0370.0176.61
4.4.20.0300.0176.62
4.4.10.0170.0276.63
4.4.00.0200.0336.64
4.3.110.0130.0276.66
4.3.100.0230.0276.66
4.3.90.0170.0236.66
4.3.80.0230.0306.68
4.3.70.0300.0136.68
4.3.60.0370.0276.69
4.3.50.0170.0236.70
4.3.40.0170.0376.70
4.3.30.0100.0236.71
4.3.20.0130.0206.71
4.3.10.0130.0206.72
4.3.00.0100.0237.04

preferences:
52.54 ms | 400 KiB | 5 Q