3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait MyTrait { public function hello() { echo __CLASS__, "\n"; if (\is_callable(array('parent', __FUNCTION__))) { parent::hello(); } } } class ParentClass { use MyTrait; } class ChildClass extends ParentClass { use MyTrait; } $c = new ChildClass(); $c->hello();

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.0100.01016.63
8.3.50.0110.00418.18
8.3.40.0040.01418.65
8.3.30.0120.00318.84
8.3.20.0040.00419.39
8.3.10.0000.00923.60
8.3.00.0040.00422.51
8.2.180.0120.00616.75
8.2.170.0120.00322.96
8.2.160.0110.00321.11
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00022.13
8.2.120.0080.00026.35
8.2.110.0050.00520.53
8.2.100.0040.00818.03
8.2.90.0000.00817.75
8.2.80.0030.00617.97
8.2.70.0030.00517.63
8.2.60.0050.00317.63
8.2.50.0000.00718.04
8.2.40.0030.00619.35
8.2.30.0020.00520.59
8.2.20.0000.00718.13
8.2.10.0040.00417.99
8.2.00.0020.00519.53
8.1.280.0110.01125.92
8.1.270.0070.01123.96
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00923.97
8.1.230.0040.00819.21
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.01117.24
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00818.89
8.1.150.0050.00318.89
8.1.140.0060.00318.98
8.1.130.0030.00319.02
8.1.120.0000.00717.36
8.1.110.0030.00517.36
8.1.100.0080.00017.49
8.1.90.0000.00817.35
8.1.80.0000.00717.36
8.1.70.0030.00517.49
8.1.60.0030.00617.47
8.1.50.0080.00017.43
8.1.40.0040.00717.42
8.1.30.0040.00417.55
8.1.20.0050.00217.54
8.1.10.0040.00417.56
8.1.00.0000.00817.54
8.0.300.0020.00519.73
8.0.290.0090.00016.75
8.0.280.0000.00718.42
8.0.270.0080.00017.32
8.0.260.0030.00318.41
8.0.250.0030.00616.99
8.0.240.0000.00716.87
8.0.230.0040.00416.81
8.0.220.0070.00016.88
8.0.210.0040.00416.78
8.0.200.0000.00716.97
8.0.190.0050.00316.98
8.0.180.0040.00416.82
8.0.170.0040.00416.84
8.0.160.0040.00416.79
8.0.150.0080.00016.88
8.0.140.0040.00416.88
8.0.130.0030.00313.36
8.0.120.0040.00416.88
8.0.110.0070.00016.95
8.0.100.0030.00316.75
8.0.90.0000.00716.96
8.0.80.0060.01216.86
8.0.70.0050.00316.82
8.0.60.0000.00816.84
8.0.50.0080.00016.91
8.0.30.0100.00917.01
8.0.20.0030.01517.40
8.0.10.0080.00017.00
8.0.00.0100.00816.89
7.4.330.0040.00415.55
7.4.320.0000.00616.53
7.4.300.0030.00316.55
7.4.290.0030.00316.40
7.4.280.0000.00716.48
7.4.270.0000.00816.61
7.4.260.0050.00616.42
7.4.250.0030.00516.39
7.4.240.0000.00816.51
7.4.230.0040.00216.58
7.4.220.0000.00716.40
7.4.210.0070.00716.61
7.4.200.0000.00716.48
7.4.160.0130.00416.52
7.4.140.0140.00617.86
7.4.130.0050.01316.55
7.4.120.0090.00916.51
7.4.110.0060.01316.48
7.4.100.0110.00716.58
7.4.90.0130.00416.46
7.4.80.0100.01419.39
7.4.70.0060.01116.55
7.4.60.0030.01716.42
7.4.50.0110.00716.31
7.4.40.0030.01416.33
7.4.10.0040.01114.73
7.4.00.0070.00815.03
7.3.330.0030.00313.31
7.3.320.0000.00613.12
7.3.310.0070.00016.29
7.3.300.0050.00216.19
7.3.290.0030.00316.35
7.3.280.0130.00616.29
7.3.260.0090.01116.42
7.3.240.0090.00916.43
7.3.230.0060.01216.22
7.3.210.0100.00616.57
7.3.200.0070.01416.43
7.3.190.0160.00016.57
7.3.180.0130.00316.11
7.3.170.0100.00716.36
7.3.160.0060.01016.38
7.3.130.0100.01014.81
7.3.120.0140.00414.53
7.3.110.0030.01414.80
7.3.100.0090.00314.61
7.3.90.0040.00714.80
7.3.80.0070.00314.69
7.3.70.0060.00914.82
7.3.60.0000.01614.84
7.3.50.0000.01214.86
7.3.40.0090.00314.83
7.3.30.0030.01014.93
7.3.20.0060.00316.68
7.3.10.0130.00016.69
7.3.00.0070.01016.67
7.2.330.0060.01216.71
7.2.320.0030.01316.41
7.2.310.0100.00716.77
7.2.300.0080.00816.74
7.2.290.0100.00616.62
7.2.260.0030.01315.11
7.2.250.0090.00915.23
7.2.240.0060.00614.90
7.2.230.0060.00914.79
7.2.220.0060.00914.66
7.2.210.0030.01314.87
7.2.200.0000.01415.05
7.2.190.0110.00414.99
7.2.180.0060.00915.14
7.2.170.0100.00714.76
7.2.160.0070.00315.14
7.2.150.0000.01516.86
7.2.140.0030.01316.90
7.2.130.0030.01316.65
7.2.120.0070.00316.67
7.2.110.0030.00916.81
7.2.100.0000.01516.81
7.2.90.0780.00515.64
7.2.80.1130.01015.52
7.2.70.0830.00716.00
7.2.60.0700.01215.80
7.2.50.0710.01015.95
7.2.40.0710.00915.79
7.2.30.0730.00816.06
7.2.20.0670.01015.85
7.2.10.0890.00515.93
7.2.00.0650.00615.72
7.1.330.0100.00315.73
7.1.320.0030.01215.68
7.1.310.0050.00315.90
7.1.300.0060.00315.60
7.1.290.0040.01115.71
7.1.280.0090.00315.53
7.1.270.0070.00715.64
7.1.260.0100.00615.34
7.1.250.0060.00315.79
7.1.240.0070.00715.52
7.1.230.0030.01015.75
7.1.220.0030.01415.50
7.1.210.0130.00414.86
7.1.200.0660.00814.62
7.1.190.1250.01014.59
7.1.180.0680.00414.73
7.1.170.0630.01014.51
7.1.160.0670.00414.79
7.1.150.1160.01114.63
7.1.140.0640.00314.69
7.1.130.0660.00514.69
7.1.120.0630.00614.71
7.1.110.0630.00914.77
7.1.100.0690.00514.73
7.1.90.1310.00814.57
7.1.80.1010.00714.75
7.1.70.1060.00514.56
7.1.60.0750.00923.58
7.1.50.0200.00923.71
7.1.40.1860.00523.49
7.1.30.2130.01123.72
7.1.20.1670.00523.64
7.1.10.1470.00914.63
7.1.00.0980.00514.49
7.0.330.0000.01215.15
7.0.320.0030.00915.38
7.0.310.0060.00615.25
7.0.300.0070.00315.15
7.0.290.0040.01115.30
7.0.280.0070.00715.35
7.0.270.0040.00815.30
7.0.260.0030.01315.20
7.0.250.0040.01115.26
7.0.240.0040.01115.48
7.0.230.0080.00315.23
7.0.220.0040.00415.29
7.0.210.0030.00715.36
7.0.200.0030.00915.30
7.0.190.0070.00715.17
7.0.180.0000.01415.21
7.0.170.0040.00715.46
7.0.160.0090.00315.25
7.0.150.0040.01115.06
7.0.140.0100.00315.39
7.0.130.0070.00715.46
7.0.120.0060.00615.43
7.0.110.0040.01115.36
7.0.100.0060.00615.32
7.0.90.0000.00815.40
7.0.80.0030.00615.34
7.0.70.0080.00615.50
7.0.60.0030.01015.41
7.0.50.0090.00615.41
7.0.40.0040.00413.41
7.0.30.0040.00813.55
7.0.20.0040.00713.52
7.0.10.0030.01013.47
7.0.00.0110.00413.46
5.6.400.0030.00914.19
5.6.390.0040.00814.39
5.6.380.0030.00914.64
5.6.370.0100.00714.23
5.6.360.0090.00614.31
5.6.350.0060.00314.12
5.6.340.0100.00314.18
5.6.330.0030.00914.39
5.6.320.0000.01714.55
5.6.310.0070.00714.13
5.6.300.0040.00814.31
5.6.290.0000.01114.25
5.6.280.0000.01314.36
5.6.270.0000.01114.49
5.6.260.0030.01014.39
5.6.250.0100.00314.44
5.6.240.0030.00714.25
5.6.230.0040.00714.34
5.6.220.0060.00614.36
5.6.210.0060.00914.27
5.6.200.0000.01014.04
5.6.190.0030.01014.39
5.6.180.0040.00714.25
5.6.170.0100.00314.15
5.6.160.0030.01014.11
5.6.150.0000.01314.41
5.6.140.0090.00614.25
5.6.130.0030.00614.37
5.6.120.0040.00414.35
5.6.110.0060.00614.09
5.6.100.0070.00714.24
5.6.90.0060.00914.29
5.6.80.0070.00714.36
5.6.70.0040.01114.25
5.6.60.0040.00814.09
5.6.50.0040.00714.35
5.6.40.0030.01014.18
5.6.30.0070.00614.15
5.6.20.0060.00614.48
5.6.10.0040.01114.26
5.6.00.0000.00914.13

preferences:
61 ms | 401 KiB | 5 Q