3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait byField { public static $a=array(array('byField', 'trFu')); static function trFu($v) {return $v-1;} } class cl { use byField; } $o=new cl(); echo $o->a[0](22);

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.0200.00318.43
8.3.50.0040.01118.02
8.3.40.0090.00619.00
8.3.30.0040.01118.85
8.3.20.0070.00020.16
8.3.10.0040.00423.48
8.3.00.0080.00019.85
8.2.180.0150.00716.75
8.2.170.0070.01422.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00421.01
8.2.120.0000.00726.35
8.2.110.0060.00320.39
8.2.100.0060.00617.93
8.2.90.0040.00419.29
8.2.80.0030.00517.97
8.2.70.0050.00317.75
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0030.00621.02
8.2.30.0000.00820.65
8.2.20.0000.00717.79
8.2.10.0050.00218.15
8.2.00.0080.00018.09
8.1.280.0030.01425.92
8.1.270.0000.00918.87
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00323.97
8.1.230.0040.00817.79
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0040.00420.43
8.1.160.0040.00420.67
8.1.150.0040.00418.80
8.1.140.0040.00419.57
8.1.130.0000.00817.70
8.1.120.0000.00717.35
8.1.110.0000.00717.48
8.1.100.0000.00817.45
8.1.90.0050.00217.36
8.1.80.0000.00817.35
8.1.70.0030.00317.23
8.1.60.0080.00017.44
8.1.50.0030.00517.41
8.1.40.0030.00617.52
8.1.30.0000.00917.63
8.1.20.0000.00817.54
8.1.10.0000.00917.51
8.1.00.0000.00817.34
8.0.300.0020.00518.77
8.0.290.0000.00716.75
8.0.280.0070.00018.50
8.0.270.0000.00817.30
8.0.260.0080.00017.17
8.0.250.0030.00316.98
8.0.240.0040.00416.95
8.0.230.0070.00016.94
8.0.220.0060.00016.84
8.0.210.0050.00316.94
8.0.200.0070.00016.89
8.0.190.0000.00717.05
8.0.180.0040.00416.90
8.0.170.0060.00317.04
8.0.160.0030.00516.95
8.0.150.0030.00316.86
8.0.140.0060.00316.95
8.0.130.0030.00313.37
8.0.120.0070.00016.79
8.0.110.0030.00617.02
8.0.100.0050.00316.89
8.0.90.0040.00416.93
8.0.80.0120.01017.01
8.0.70.0050.00216.93
8.0.60.0040.00416.75
8.0.50.0030.00316.99
8.0.30.0120.00617.09
8.0.20.0100.01117.40
8.0.10.0040.00417.10
8.0.00.0110.00816.81
7.4.330.0060.00016.83
7.4.320.0000.00616.50
7.4.300.0000.00716.49
7.4.290.0000.00716.50
7.4.280.0040.00416.60
7.4.270.0030.00316.48
7.4.260.0070.00016.34
7.4.250.0050.00216.45
7.4.240.0040.00416.50
7.4.230.0000.00716.57
7.4.220.0090.00616.53
7.4.210.0130.00716.61
7.4.200.0030.00516.71
7.4.160.0080.00816.70
7.4.150.0070.01017.40
7.4.140.0110.00817.86
7.4.130.0100.01016.71
7.4.120.0100.01016.44
7.4.110.0150.01116.49
7.4.100.0090.00916.55
7.4.90.0100.01016.57
7.4.80.0120.00619.39
7.4.70.0120.00316.59
7.4.60.0030.01216.55
7.4.50.0030.01016.59
7.4.40.0090.00916.63
7.4.30.0060.01116.59
7.4.00.0060.01014.92
7.3.330.0050.00013.28
7.3.320.0030.00313.43
7.3.310.0000.00716.18
7.3.300.0000.00616.39
7.3.290.0040.01116.34
7.3.280.0060.00816.34
7.3.270.0150.00417.40
7.3.260.0110.01116.51
7.3.250.0050.01316.38
7.3.240.0060.01416.38
7.3.230.0070.01016.39
7.3.210.0070.01016.60
7.3.200.0090.00616.40
7.3.190.0100.00616.26
7.3.180.0070.01416.28
7.3.170.0100.00616.29
7.3.160.0150.00616.39
7.3.120.0070.01014.82
7.3.110.0090.00614.81
7.3.100.0090.00714.83
7.3.90.0070.00714.80
7.3.80.0090.00514.57
7.3.70.0070.00514.68
7.3.60.0070.00914.65
7.3.50.0070.01014.63
7.3.40.0040.00714.84
7.3.30.0090.00714.73
7.3.20.0050.01216.72
7.3.10.0060.00616.47
7.3.00.0040.00716.63
7.2.330.0090.01516.71
7.2.320.0120.00616.78
7.2.310.0090.00616.73
7.2.300.0060.00916.76
7.2.290.0090.01216.64
7.2.250.0100.00714.98
7.2.240.0060.00615.03
7.2.230.0020.01215.01
7.2.220.0070.00814.98
7.2.210.0050.01015.10
7.2.200.0080.00615.15
7.2.190.0030.01214.95
7.2.180.0100.00414.88
7.2.170.0080.00814.99
7.2.160.0040.01214.71
7.2.150.0000.01217.03
7.2.140.0060.00916.69
7.2.130.0070.00816.84
7.2.120.0050.00916.72
7.2.110.0100.01016.64
7.2.100.0140.00716.80
7.2.90.0130.00616.82
7.2.80.0150.00616.74
7.2.70.0120.00616.74
7.2.60.0070.01116.73
7.2.50.0140.00916.85
7.2.40.0110.01416.61
7.2.30.0110.01116.67
7.2.20.0100.00516.66
7.2.10.0250.00816.74
7.2.00.0070.00817.67
7.1.330.0040.01115.78
7.1.320.0070.00815.66
7.1.310.0060.00815.91
7.1.300.0020.01015.99
7.1.290.0050.00615.66
7.1.280.0040.00715.60
7.1.270.0060.00915.87
7.1.260.0100.00715.72
7.1.250.0060.01115.75
7.1.200.0270.00315.96
7.1.100.0140.00718.05
7.1.70.0030.01317.38
7.1.60.0070.01719.13
7.1.50.0060.00616.78
7.1.00.0030.07722.28
7.0.200.0060.00316.78
7.0.60.0030.07319.93
7.0.50.0070.03717.89
7.0.40.0070.05019.97
7.0.30.0230.08720.11
7.0.20.0230.08020.24
7.0.10.0070.08020.07
7.0.00.0070.09020.22
5.6.280.0030.06721.00
5.6.210.0130.07020.55
5.6.200.0100.07318.27
5.6.190.0100.04020.45
5.6.180.0330.04720.49
5.6.170.0270.08020.39
5.6.160.0100.07320.71
5.6.150.0030.04718.23
5.6.140.0030.04318.23
5.6.130.0000.09018.21
5.6.120.0130.05720.96
5.6.110.0070.08720.98
5.6.100.0130.06321.07
5.6.90.0200.07021.13
5.6.80.0100.07720.49
5.5.350.0100.08020.39
5.5.340.0030.08717.95
5.5.330.0030.04720.39
5.5.320.0300.04320.30
5.5.310.0330.05020.26
5.5.300.0030.04318.01
5.5.290.0100.07318.00
5.5.280.0200.07020.77
5.5.270.0000.08320.96
5.5.260.0200.06720.87
5.5.250.0130.07720.55
5.5.240.0100.04020.13

preferences:
49.43 ms | 401 KiB | 5 Q