3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function createApp() {} } class B extends A { use C; } trait C { public static function createApp() { echo "You should not be here\n"; } } (new B)->createApp();

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.1.130.0030.00320.07
8.1.120.0000.00717.38
8.1.110.0050.00317.38
8.1.100.0000.00717.38
8.1.90.0050.00217.45
8.1.80.0000.00817.32
8.1.70.0000.00717.32
8.1.60.0070.00017.52
8.1.50.0040.00417.34
8.1.40.0060.00317.31
8.1.30.0080.00017.55
8.1.20.0040.00817.41
8.1.10.0060.00317.46
8.1.00.0000.00717.31
8.0.260.0070.00020.04
8.0.250.0070.00016.95
8.0.240.0000.00816.95
8.0.230.0070.00016.92
8.0.220.0050.00316.82
8.0.210.0040.00416.83
8.0.200.0070.00016.82
8.0.190.0040.00416.95
8.0.180.0000.00816.88
8.0.170.0060.00316.91
8.0.160.0000.00716.88
8.0.150.0030.00716.86
8.0.140.0030.00316.86
8.0.130.0030.00313.40
8.0.120.0050.00216.83
8.0.110.0080.00016.68
8.0.100.0000.00716.90
8.0.90.0060.00316.84
8.0.80.0090.00816.87
8.0.70.0040.00416.82
8.0.60.0040.00416.87
8.0.50.0040.00416.79
8.0.30.0190.00617.27
8.0.20.0090.01016.98
8.0.10.0000.00716.89
8.0.00.0100.00716.55
7.4.330.0030.00315.55
7.4.320.0000.00616.41
7.4.300.0030.00316.39
7.4.290.0050.00216.43
7.4.280.0060.00316.40
7.4.270.0000.00716.52
7.4.260.0080.00016.38
7.4.250.0030.00316.38
7.4.240.0060.00216.47
7.4.230.0070.00016.22
7.4.220.0020.00516.30
7.4.210.0040.01216.41
7.4.200.0000.00716.59
7.4.130.0060.01216.47
7.4.120.0110.01616.36
7.4.110.0100.01316.49
7.4.100.0150.00416.54
7.4.90.0030.01416.51
7.4.80.0110.00619.39
7.4.70.0070.01316.57
7.4.60.0090.00916.46
7.4.50.0000.01116.06
7.4.40.0070.01016.45
7.4.00.0080.00714.76
7.3.330.0030.00316.33
7.3.320.0000.00513.29
7.3.310.0030.00316.16
7.3.300.0070.00016.34
7.3.290.0060.00816.21
7.3.280.0070.01316.30
7.3.260.0100.00916.54
7.3.230.0150.00916.44
7.3.210.0080.00816.22
7.3.200.0140.00316.37
7.3.190.0000.01516.21
7.3.180.0110.00416.11
7.3.170.0170.00316.29
7.3.160.0110.00616.38
7.3.120.0050.01414.55
7.3.110.0080.00714.61
7.3.100.0060.00814.61
7.3.90.0100.00714.73
7.3.80.0060.00814.64
7.3.70.0060.00614.58
7.3.60.0080.00714.52
7.3.50.0070.01014.73
7.3.40.0100.00814.72
7.3.30.0050.00914.57
7.3.20.0100.00715.96
7.3.10.0110.00615.99
7.3.00.0080.00716.05
7.2.330.0110.00616.38
7.2.320.0060.00916.33
7.2.310.0220.00316.36
7.2.300.0080.01216.34
7.2.290.0130.00416.34
7.2.250.0100.00514.45
7.2.240.0080.01114.84
7.2.230.0090.00514.77
7.2.220.0060.01114.64
7.2.210.0050.00914.79
7.2.200.0070.00714.71
7.2.190.0080.00714.81
7.2.180.0060.01114.65
7.2.170.0090.00914.76
7.2.160.0030.01414.66
7.2.150.0100.00814.80
7.2.140.0030.01814.82
7.2.130.0070.00915.08
7.2.120.0140.00514.87
7.2.110.0060.01314.90
7.2.100.0150.00414.65
7.2.90.0060.01614.79
7.2.80.0040.01815.05
7.2.70.0120.00315.00
7.2.60.0100.01015.01
7.2.50.0090.01214.91
7.2.40.0120.00814.91
7.2.30.0090.00915.05
7.2.20.0150.00414.64
7.2.10.0060.01314.66
7.2.00.0110.01114.91
7.1.330.0070.00815.01
7.1.320.0120.00514.86
7.1.310.0050.00714.84
7.1.300.0050.00714.94
7.1.290.0070.00814.92
7.1.280.0070.00614.90
7.1.270.0050.01114.97
7.1.260.0070.00814.94
7.1.250.0000.01513.68

preferences:
12.2 ms | 406 KiB | 5 Q