3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace hippos; trait test { public static function getClassName() { return 'hi hippo'; } } namespace lions; trait test { public static function getClassName() { return 'hi giraffe'; } } namespace girrafe; use lions\test; use hippos\test as hipposTest; class lemons { use hipposTest, test { test::getClassName as myGetClassName; } public function sup() { var_dump(method_exists('lemons', 'getClassName')); var_dump(method_exists(get_class(), 'getClassName')); var_dump(method_exists(get_class(), 'myGetClassName')); echo $this->getClassName(); echo $this->myGetClassName(); } } (new \girrafe\lemons)->sup();

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.0110.00316.73
8.3.50.0320.00521.99
8.3.40.0070.00718.71
8.3.30.0070.00718.67
8.3.20.0050.00320.34
8.3.10.0040.00423.67
8.3.00.0040.00419.20
8.2.180.0090.00618.29
8.2.170.0120.00322.96
8.2.160.0100.00320.50
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0060.00617.63
8.2.120.0040.00426.35
8.2.110.0070.00322.07
8.2.100.0050.00517.66
8.2.90.0030.00519.22
8.2.80.0000.00817.97
8.2.70.0030.00517.38
8.2.60.0070.00317.65
8.2.50.0000.00818.07
8.2.40.0000.00919.29
8.2.30.0040.00420.72
8.2.20.0000.00717.63
8.2.10.0030.00518.05
8.2.00.0000.00718.02
8.1.280.0100.00725.92
8.1.270.0000.00822.24
8.1.260.0040.00428.09
8.1.250.0030.00328.09
8.1.240.0060.00319.42
8.1.230.0070.00417.54
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0000.00816.88
8.1.180.0000.00718.10
8.1.170.0040.00420.39
8.1.160.0080.00022.10
8.1.150.0030.00518.86
8.1.140.0000.00819.46
8.1.130.0000.00717.67
8.1.120.0000.00717.45
8.1.110.0040.00417.30
8.1.100.0030.00617.46
8.1.90.0030.00517.31
8.1.80.0030.00617.43
8.1.70.0000.00717.33
8.1.60.0060.00317.45
8.1.50.0000.00817.41
8.1.40.0040.00417.48
8.1.30.0060.00317.57
8.1.20.0050.00317.63
8.1.10.0050.00317.41
8.1.00.0080.00017.21
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00818.29
8.0.270.0070.00017.23
8.0.260.0030.00317.16
8.0.250.0000.00717.04
8.0.240.0000.00716.88
8.0.230.0030.00517.01
8.0.220.0070.00016.96
8.0.210.0050.00316.84
8.0.200.0030.00316.87
8.0.190.0030.00516.97
8.0.180.0000.00816.98
8.0.170.0040.00416.89
8.0.160.0040.00416.96
8.0.150.0080.00016.88
8.0.140.0060.00316.95
8.0.130.0040.00313.40
8.0.120.0030.00616.77
8.0.110.0040.00416.91
8.0.100.0030.00316.78
8.0.90.0070.00016.91
8.0.80.0060.00916.92
8.0.70.0000.00716.80
8.0.60.0000.00716.96
8.0.50.0000.00716.80
8.0.30.0070.01017.16
8.0.20.0100.00817.40
8.0.10.0000.00816.98
8.0.00.0070.01416.72
7.4.330.0050.00015.08
7.4.320.0060.00016.49
7.4.300.0030.00316.43
7.4.290.0000.00716.57
7.4.280.0070.00016.54
7.4.270.0080.00016.49
7.4.260.0000.00916.52
7.4.250.0000.00716.54
7.4.240.0020.00516.54
7.4.230.0000.00716.30
7.4.220.0100.00716.55
7.4.210.0090.00916.51
7.4.200.0000.00716.48
7.4.160.0070.00716.35
7.4.150.0070.01017.40
7.4.140.0150.01017.86
7.4.130.0090.00916.46
7.4.120.0060.01116.42
7.4.110.0140.00616.50
7.4.100.0150.00316.46
7.4.90.0080.00816.20
7.4.80.0090.00919.39
7.4.70.0070.01016.21
7.4.60.0050.01316.46
7.4.50.0040.00016.35
7.4.40.0150.00616.27
7.4.30.0070.01516.48
7.4.00.0080.00815.00
7.3.330.0030.00313.29
7.3.320.0030.00313.27
7.3.310.0030.00316.30
7.3.300.0000.00616.25
7.3.290.0000.00716.29
7.3.280.0110.00716.23
7.3.270.0090.00917.40
7.3.260.0050.01116.32
7.3.250.0090.01016.45
7.3.240.0090.00716.39
7.3.230.0040.01316.39
7.3.210.0100.01016.37
7.3.200.0140.00416.35
7.3.190.0130.00916.45
7.3.180.0100.01016.50
7.3.170.0000.01616.34
7.3.160.0060.00916.41
7.3.10.0060.00316.35
7.3.00.0030.00616.38
7.2.330.0110.00716.57
7.2.320.0070.01216.49
7.2.310.0070.01016.57
7.2.300.0040.01316.62
7.2.290.0060.03316.30
7.2.130.0070.00716.67
7.2.120.0040.00416.82
7.2.110.0080.00616.71
7.2.100.0040.00716.61
7.2.90.0080.00316.74
7.2.80.0040.00417.03
7.2.70.0030.00916.80
7.2.60.0050.00616.71
7.2.50.0080.00316.58
7.2.40.0060.00616.66
7.2.30.0000.01116.44
7.2.20.0060.00616.64
7.2.10.0060.00316.90
7.2.00.0030.01017.81
7.1.250.0040.00415.63
7.1.200.0030.01015.63
7.1.100.0070.00417.91
7.1.70.0040.00416.93
7.1.60.0000.01419.48
7.1.50.0070.01616.80
7.1.00.0030.07722.36
7.0.200.0180.00614.44
7.0.60.0100.05719.90
7.0.50.0100.08017.88
7.0.40.0030.07020.24
7.0.30.0230.05320.21
7.0.20.0330.07720.16
7.0.10.0030.04320.24
7.0.00.0070.04320.07
5.6.280.0030.07321.15
5.6.210.0130.06720.63
5.6.200.0100.04718.24
5.6.190.0030.09020.50
5.6.180.0330.07020.63
5.6.170.0400.06720.47
5.6.160.0100.06720.57
5.6.150.0170.05018.29
5.6.140.0070.04718.21
5.6.130.0130.03318.23
5.6.120.0100.04721.04
5.6.110.0000.05021.02
5.6.100.0070.05021.12
5.6.90.0030.04721.04
5.6.80.0100.05020.36
5.5.350.3470.03320.51
5.5.340.0000.05718.04
5.5.330.0030.04320.19
5.5.320.0270.05720.14
5.5.310.0270.06320.32
5.5.300.0130.07317.95
5.5.290.0070.06718.04
5.5.280.0000.04720.86
5.5.270.0030.04020.63
5.5.260.0070.08020.74
5.5.250.0100.08020.55
5.5.240.0230.07020.28

preferences:
44.36 ms | 401 KiB | 5 Q