3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; trait aTrait { protected function one() { echo "a-one "; } public function two() { echo "a-two "; } public function three() { return defined('static::DELETED_AT') ? static::DELETED_AT : 'deleted_at'; } } namespace Bar; use Foo\aTrait as bTrait; trait aTrait { use bTrait { one as originalOne; two as originalGetQualifiedDeletedAtColumn; } protected function one() { echo "b-one"; $this->originalOne(); } public function two() { if (true) { return $this->three(); } $this->originalGetQualifiedDeletedAtColumn(); } } namespace Baz; use Bar\atrait; class Base { use aTrait; const DELETED_AT = 'DELETETIMESTAMP'; } class Test extends Base { public function __construct() { $this->one(); } } $test = new Test();

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.0150.00616.50
8.3.50.0160.00521.11
8.3.40.0140.00418.66
8.3.30.0000.01418.92
8.3.20.0040.00420.16
8.3.10.0040.00421.89
8.3.00.0060.00317.46
8.2.180.0180.00318.46
8.2.170.0070.00722.96
8.2.160.0030.01020.53
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00319.23
8.2.110.0080.00020.57
8.2.100.0120.00017.78
8.2.90.0050.00518.03
8.2.80.0030.00617.97
8.2.70.0060.00317.25
8.2.60.0040.00717.93
8.2.50.0030.00618.07
8.2.40.0050.00319.91
8.2.30.0000.00718.16
8.2.20.0030.00517.77
8.2.10.0040.00418.08
8.2.00.0070.00017.60
8.1.280.0140.00725.92
8.1.270.0040.00720.20
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0100.00022.13
8.1.230.0040.00720.95
8.1.220.0030.00517.80
8.1.210.0000.00818.89
8.1.200.0030.00617.23
8.1.190.0080.00017.23
8.1.180.0060.00318.10
8.1.170.0030.00520.28
8.1.160.0000.00821.94
8.1.150.0070.00018.91
8.1.140.0030.00617.45
8.1.130.0070.00017.89
8.1.120.0030.00317.35
8.1.110.0030.00617.48
8.1.100.0020.00517.39
8.1.90.0070.00017.47
8.1.80.0070.00017.48
8.1.70.0030.00317.49
8.1.60.0000.00917.63
8.1.50.0050.00317.54
8.1.40.0030.00617.44
8.1.30.0030.00617.66
8.1.20.0040.00417.67
8.1.10.0040.00417.62
8.1.00.0040.00417.55
8.0.300.0040.00420.03
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0000.00717.27
8.0.260.0060.00317.13
8.0.250.0070.00016.87
8.0.240.0030.00316.97
8.0.230.0030.00517.01
8.0.220.0030.00316.88
8.0.210.0000.00716.85
8.0.200.0000.00616.98
8.0.190.0060.00317.04
8.0.180.0070.00016.95
8.0.170.0040.00416.95
8.0.160.0000.00816.96
8.0.150.0000.00716.89
8.0.140.0040.00416.88
8.0.130.0030.00313.23
8.0.120.0040.00416.78
8.0.110.0050.00216.92
8.0.100.0040.00416.92
8.0.90.0040.00416.93
8.0.80.0130.01016.87
8.0.70.0050.00216.97
8.0.60.0040.00416.80
8.0.50.0000.00716.78
8.0.30.0130.00917.17
8.0.20.0080.01217.40
8.0.10.0000.00817.11
8.0.00.0140.00516.70
7.4.330.0000.00515.03
7.4.320.0000.00616.45
7.4.300.0000.00616.53
7.4.290.0070.00016.59
7.4.280.0000.00816.59
7.4.270.0050.00216.58
7.4.260.0000.00716.61
7.4.250.0040.00416.38
7.4.240.0030.00316.59
7.4.230.0030.00316.65
7.4.220.0030.01616.66
7.4.210.0030.01416.62
7.4.200.0030.00316.71
7.4.160.0140.00716.50
7.4.150.0090.01517.40
7.4.140.0070.01217.86
7.4.130.0080.01316.63
7.4.120.0140.00316.47
7.4.110.0130.00516.46
7.4.100.0070.01016.39
7.4.90.0070.01016.48
7.4.80.0060.01019.39
7.4.70.0090.00916.52
7.4.60.0060.01016.52
7.4.50.0000.00916.52
7.4.40.0100.00616.33
7.4.30.0130.01016.28
7.4.00.0070.00714.80
7.3.330.0050.00013.29
7.3.320.0070.00713.17
7.3.310.0050.00316.33
7.3.300.0020.00516.29
7.3.290.0030.00316.32
7.3.280.0090.00816.32
7.3.270.0200.00617.40
7.3.260.0110.00716.24
7.3.250.0100.00816.48
7.3.240.0120.01216.29
7.3.230.0140.00416.39
7.3.210.0140.00716.44
7.3.200.0090.01219.39
7.3.190.0090.00616.25
7.3.180.0130.00716.55
7.3.170.0070.01016.45
7.3.160.0140.00716.59
7.2.330.0070.01016.41
7.2.320.0090.00916.66
7.2.310.0110.00816.40
7.2.300.0120.00616.77
7.2.290.0100.01316.53
7.2.00.0030.00919.01
7.1.100.0040.00817.94
7.1.70.0080.00017.04
7.1.60.0110.01419.50
7.1.50.0290.01116.99
7.1.00.0130.06722.45
7.0.200.0500.00714.68
7.0.140.0000.05722.13
7.0.60.0030.06719.93
7.0.50.0000.05017.90
7.0.40.0100.08320.11
7.0.30.0300.05320.07
7.0.20.0230.07320.19
7.0.10.0070.08020.06
7.0.00.0070.04020.07
5.6.280.0130.06321.17
5.6.210.0170.07020.66
5.6.200.0070.03718.25
5.6.190.0070.05720.61
5.6.180.0370.07020.47
5.6.170.0370.08020.52
5.6.160.0030.04320.44
5.6.150.0130.07318.14
5.6.140.0070.07018.16
5.6.130.0000.07318.18
5.6.120.0070.06020.99
5.6.110.0100.08321.02
5.6.100.0100.08321.01
5.6.90.0000.04720.98
5.6.80.0170.06320.43
5.6.70.3530.03320.37
5.5.350.0100.08320.34
5.5.340.0030.04317.93
5.5.330.0170.05320.18
5.5.320.0300.07720.28
5.5.310.0230.09020.27
5.5.300.0070.03717.97
5.5.290.0100.08017.95
5.5.280.0070.08320.81
5.5.270.0070.07720.77
5.5.260.0000.04320.66
5.5.250.0000.04320.59
5.5.240.0000.08020.17
5.4.450.0300.06019.39
5.4.440.1070.06019.55
5.4.430.0970.07319.36
5.4.420.0200.05319.23
5.4.410.0100.07719.02
5.4.400.0630.05018.52
5.4.390.0470.05018.54
5.4.380.2000.05318.59
5.4.370.0870.05318.59
5.4.360.0270.06318.50
5.4.350.0300.05718.48
5.4.340.0370.05018.73
5.4.320.0300.06018.51
5.4.310.0400.06318.57
5.4.300.0330.05718.78
5.4.290.0330.05318.56
5.4.280.0230.06018.62
5.4.270.0200.05018.53
5.4.260.0100.05718.52
5.4.250.0230.06718.63
5.4.240.0300.05718.59
5.4.230.0300.05718.63
5.4.220.0330.05718.71
5.4.210.0500.04718.47
5.4.200.0430.04316.71
5.4.190.0330.05718.55
5.4.180.0470.04718.61
5.4.170.0370.05718.82
5.4.160.0430.05318.56
5.4.150.0370.05718.45
5.4.140.0400.07016.21
5.4.130.0470.06316.31
5.4.120.0330.06716.29
5.4.110.0630.04016.35
5.4.100.0430.05316.30
5.4.90.0330.06716.24
5.4.80.0500.05316.37
5.4.70.0500.06716.44
5.4.60.0500.05716.30
5.4.50.0330.08016.27
5.4.40.0600.06716.19
5.4.30.0430.04716.26
5.4.20.0470.04716.41
5.4.10.0370.04716.42
5.4.00.0430.07015.76
5.3.290.0470.05714.61
5.3.280.0470.06014.49
5.3.270.0470.06314.64
5.3.260.0330.07314.57
5.3.250.0400.06314.68
5.3.240.0370.07314.52
5.3.230.0230.07014.60
5.3.220.0270.07714.57
5.3.210.0430.05014.68
5.3.200.0200.05314.66
5.3.190.0530.06014.59
5.3.180.0300.07014.61
5.3.170.0630.05014.55
5.3.160.0530.07014.56
5.3.150.0430.07714.64
5.3.140.0670.07014.61
5.3.130.0330.08014.51
5.3.120.0530.07314.46
5.3.110.0400.05714.46
5.3.100.0470.04714.04
5.3.90.0170.06714.09
5.3.80.0330.05013.99
5.3.70.0200.05313.91
5.3.60.0300.07014.03
5.3.50.0370.06013.86
5.3.40.2170.06313.94
5.3.30.0370.06013.86
5.3.20.0370.06013.78
5.3.10.0100.07313.61
5.3.00.1100.05713.71
5.2.170.1030.04711.14
5.2.160.1000.04711.19
5.2.150.0530.04711.12
5.2.140.0270.05311.20
5.2.130.1630.05311.05
5.2.120.0230.04011.06
5.2.110.1170.05011.13
5.2.100.0370.04711.06
5.2.90.1600.05011.11
5.2.80.0370.04011.09
5.2.70.0370.04711.25
5.2.60.0300.03711.02
5.2.50.1170.03311.05
5.2.40.0230.04311.00
5.2.30.0330.04711.01
5.2.20.2570.04010.93
5.2.10.0230.05010.96
5.2.00.0230.04310.77
5.1.60.0100.03710.05
5.1.50.0300.04310.06
5.1.40.1400.0309.95
5.1.30.0100.04310.47
5.1.20.0230.04010.37
5.1.10.0270.04310.06
5.1.00.0300.05310.10
5.0.50.0100.0408.65
5.0.40.0500.0338.40
5.0.30.0130.0538.29
5.0.20.0100.0378.31
5.0.10.1600.0338.20
5.0.00.0130.0408.17
4.4.90.0200.0235.95
4.4.80.0100.0335.86
4.4.70.0100.0235.85
4.4.60.0170.0335.92
4.4.50.0130.0235.88
4.4.40.0200.0405.90
4.4.30.0130.0275.90
4.4.20.0130.0175.96
4.4.10.0170.0205.93
4.4.00.0030.0405.94
4.3.110.0800.0235.84
4.3.100.0100.0235.79
4.3.90.0100.0235.86
4.3.80.0070.0335.79
4.3.70.0230.0235.77
4.3.60.3130.0305.78
4.3.50.0030.0275.82
4.3.40.0330.0175.75
4.3.30.0030.0274.59
4.3.20.0100.0274.59
4.3.10.0100.0274.63
4.3.00.0100.0206.88

preferences:
51.09 ms | 401 KiB | 5 Q