3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Common\Interfaces; interface Locale { const RU = 'ru_RU'; const EN = 'en_EN'; } var_dump(Common\Interfaces\Locale::RU); die; abstract class T { static public $instanses; final private function __construct(){ } public static function getInstance() { if (!(static::$instanses instanceof static)) { static::$instanses = new static; } return static::$instanses; } } class A extends T { static public $instanses; } class B extends A { static public $instanses; } $t = A::getInstance(); var_dump($t); $t1 = B::getInstance(); var_dump($t1); new B(); ?>

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.0190.00316.75
8.3.50.0170.00321.99
8.3.40.0040.01118.72
8.3.30.0000.01418.74
8.3.20.0040.00420.20
8.3.10.0040.00423.52
8.3.00.0000.00819.26
8.2.180.0110.00718.41
8.2.170.0040.01122.96
8.2.160.0060.00920.25
8.2.150.0090.00024.18
8.2.140.0090.00024.66
8.2.130.0030.00617.38
8.2.120.0040.00426.35
8.2.110.0030.00620.53
8.2.100.0080.00417.91
8.2.90.0050.00319.08
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0030.00517.92
8.2.50.0030.00618.07
8.2.40.0000.00819.34
8.2.30.0000.00720.73
8.2.20.0060.00617.81
8.2.10.0000.00718.01
8.2.00.0070.00018.00
8.1.280.0050.01025.92
8.1.270.0000.01222.02
8.1.260.0050.00328.09
8.1.250.0050.00328.09
8.1.240.0030.00624.02
8.1.230.0040.00817.66
8.1.220.0030.00617.76
8.1.210.0050.00518.77
8.1.200.0070.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.83
8.1.160.0050.00222.07
8.1.150.0040.00418.68
8.1.140.0000.00919.52
8.1.130.0040.00417.55
8.1.120.0040.00417.42
8.1.110.0040.00417.29
8.1.100.0000.00817.39
8.1.90.0030.00417.44
8.1.80.0030.00517.31
8.1.70.0000.00717.32
8.1.60.0000.00917.41
8.1.50.0090.00017.41
8.1.40.0040.00417.48
8.1.30.0050.00517.44
8.1.20.0080.00017.54
8.1.10.0030.00617.56
8.1.00.0060.00317.34
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.37
8.0.270.0030.00317.27
8.0.260.0030.00317.28
8.0.250.0000.00717.04
8.0.240.0000.00716.90
8.0.230.0040.00416.94
8.0.220.0030.00316.96
8.0.210.0000.00716.99
8.0.200.0000.00717.00
8.0.190.0040.00417.09
8.0.180.0070.00017.04
8.0.170.0030.00517.08
8.0.160.0000.00817.02
8.0.150.0030.00416.84
8.0.140.0000.00016.91
8.0.130.0000.00513.39
8.0.120.0040.00416.99
8.0.110.0000.00716.98
8.0.100.0080.00017.03
8.0.90.0000.00716.91
8.0.80.0090.00616.85
8.0.70.0000.00816.79
8.0.60.0000.00817.08
8.0.50.0040.00416.86
8.0.30.0110.00817.06
8.0.20.0110.00917.40
8.0.10.0060.00316.89
8.0.00.0110.00616.58
7.4.330.0020.00216.84
7.4.320.0030.00316.55
7.4.300.0060.00016.55
7.4.290.0000.00716.59
7.4.280.0030.00616.37
7.4.270.0030.00316.56
7.4.260.0070.00016.53
7.4.250.0040.00416.56
7.4.240.0040.00416.52
7.4.230.0000.00716.64
7.4.220.0080.01216.57
7.4.210.0060.01016.64
7.4.200.0040.00416.31
7.4.160.0090.00916.32
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0120.00516.50
7.4.120.0090.00916.44
7.4.110.0120.00616.53
7.4.100.0110.00516.41
7.4.90.0100.00716.40
7.4.80.0040.01319.39
7.4.70.0100.00716.57
7.4.60.0160.00016.49
7.4.50.0150.00016.57
7.4.40.0140.00316.73
7.4.30.0060.01116.52
7.4.00.0090.00615.13
7.3.330.0000.00513.23
7.3.320.0030.00313.14
7.3.310.0030.00516.30
7.3.300.0000.00716.30
7.3.290.0060.01016.33
7.3.280.0110.00616.29
7.3.270.0100.00717.40
7.3.260.0120.00616.45
7.3.250.0040.01416.40
7.3.240.0090.00916.35
7.3.230.0140.00316.39
7.3.210.0120.01216.56
7.3.200.0120.00616.32
7.3.190.0040.01116.47
7.3.180.0100.00616.34
7.3.170.0070.01016.31
7.3.160.0060.00916.49
7.3.120.0110.00714.72
7.3.110.0060.01314.89
7.3.100.0000.01714.97
7.3.90.0060.00614.85
7.3.80.0060.00815.13
7.3.70.0070.00314.97
7.3.60.0120.00014.68
7.3.50.0000.01414.96
7.3.40.0060.00614.46
7.3.30.0100.00614.78
7.3.20.0060.00916.50
7.3.10.0070.00716.62
7.3.00.0070.00716.49
7.2.330.0120.00616.74
7.2.320.0120.01216.78
7.2.310.0130.00516.67
7.2.300.0070.01116.45
7.2.290.0100.00616.58
7.2.250.0030.01614.85
7.2.240.0100.00715.04
7.2.230.0060.00915.16
7.2.220.0040.01114.98
7.2.210.0130.00314.91
7.2.200.0000.00914.87
7.2.190.0120.00615.07
7.2.180.0000.01415.00
7.2.170.0110.00715.05
7.2.160.0060.01015.04
7.2.150.0000.01416.71
7.2.140.0070.01117.03
7.2.130.0070.00816.79
7.2.120.0060.00716.87
7.2.110.0030.00916.61
7.2.100.0030.01016.72
7.2.90.0030.00916.83
7.2.80.0030.01116.78
7.2.70.0030.01216.90
7.2.60.0100.00416.84
7.2.50.0080.00616.76
7.2.40.0070.00516.73
7.2.30.0070.00716.86
7.2.20.0070.00416.80
7.2.10.0020.01216.69
7.2.00.0040.00717.60
7.1.330.0080.00815.78
7.1.320.0030.01015.80
7.1.310.0090.00015.71
7.1.300.0040.01215.68
7.1.290.0070.01015.67
7.1.280.0070.00415.65
7.1.270.0000.01815.41
7.1.260.0000.01315.71
7.1.250.0030.01115.67
7.1.240.0090.00415.50
7.1.230.0000.01115.44
7.1.220.0060.00815.77
7.1.210.0000.01215.35
7.1.200.0070.00515.62
7.1.190.0030.00915.76
7.1.180.0070.00715.57
7.1.170.0080.00815.61
7.1.160.0100.00315.74
7.1.150.0000.01215.65
7.1.140.0040.01115.41
7.1.130.0110.00315.71
7.1.120.0000.00815.71
7.1.110.0060.01015.69
7.1.100.0050.01016.60
7.1.90.0110.00315.47
7.1.80.0030.00615.76
7.1.70.0050.00716.35
7.1.60.0090.01117.66
7.1.50.0120.00016.30
7.1.40.0040.00715.56
7.1.30.0040.00815.52
7.1.20.0040.00415.61
7.1.10.0000.01415.60
7.1.00.0050.04119.05
7.0.330.0060.00615.41
7.0.320.0060.00815.33
7.0.310.0000.01315.37
7.0.300.0040.00415.06
7.0.290.0030.00915.16
7.0.280.0040.00715.06
7.0.270.0090.00915.20
7.0.260.0030.00715.33
7.0.250.0000.01615.09
7.0.240.0070.00715.27
7.0.230.0070.00315.10
7.0.220.0140.00015.48
7.0.210.0100.00315.18
7.0.200.0180.00514.90
7.0.190.0040.00415.45
7.0.180.0030.00915.38
7.0.170.0100.00315.16
7.0.160.0060.00615.45
7.0.150.0000.01315.32
7.0.140.0130.00315.35
7.0.130.0100.00314.96
7.0.120.0090.00615.40
7.0.110.0030.00815.43
7.0.100.0040.00715.49
7.0.90.0000.01315.25
7.0.80.0030.01114.98
7.0.70.0060.00615.29
7.0.60.0200.02517.60
7.0.50.0050.04316.55
7.0.40.0070.04516.87
7.0.30.0050.05016.81
7.0.20.0200.04516.74
7.0.10.0100.04216.86
7.0.00.0100.03816.81
5.6.400.0060.00614.54
5.6.390.0100.00514.29
5.6.380.0070.01114.07
5.6.370.0150.00014.16
5.6.360.0000.01514.17
5.6.350.0000.01314.46
5.6.340.0030.01014.48
5.6.330.0000.01814.24
5.6.320.0040.01114.16
5.6.310.0040.01114.47
5.6.300.0080.00814.23
5.6.290.0030.01014.46
5.6.280.0050.02017.68
5.6.270.0060.00314.32
5.6.260.0060.00613.86
5.6.250.0100.00313.93
5.6.240.0030.01014.16
5.6.230.0030.01013.94
5.6.220.0090.00613.82
5.6.210.0070.04717.40
5.6.200.0070.04716.27
5.6.190.0100.04317.39
5.6.180.1430.02017.37
5.6.170.0130.04417.33
5.6.160.0020.03017.33
5.6.150.0080.04116.08
5.6.140.0030.04916.18
5.6.130.0040.02916.17
5.6.120.0100.02317.62
5.6.110.0030.04217.44
5.6.100.0090.04017.61
5.6.90.0080.03617.58
5.6.80.0060.04517.23
5.6.70.0060.00314.13
5.6.60.0070.00713.92
5.6.50.0040.01114.06
5.6.40.0040.00414.01
5.6.30.0040.01214.02
5.6.20.0090.00614.14
5.6.10.0040.01413.86
5.6.00.0060.00914.06
5.5.380.0030.00714.19
5.5.370.0040.00414.03
5.5.360.0060.00913.80
5.5.350.0170.03217.19
5.5.340.0080.04515.89
5.5.330.0060.03117.42
5.5.320.0030.03717.06
5.5.310.0200.02517.23
5.5.300.0030.02515.90
5.5.290.0030.04816.05
5.5.280.0080.04417.44
5.5.270.0070.04517.52
5.5.260.0080.03017.41
5.5.250.0120.03017.25
5.5.240.0130.04317.02
5.5.230.0030.00914.29
5.5.220.0100.00314.21
5.5.210.0000.01214.09
5.5.200.0070.00714.02
5.5.190.0060.00314.18
5.5.180.0060.00814.17
5.5.170.0040.00713.82
5.5.160.0090.00613.97
5.5.150.0070.01013.73
5.5.140.0060.00813.84
5.5.130.0060.00814.27
5.5.120.0060.00613.73
5.5.110.0040.00813.91
5.5.100.0070.00413.95
5.5.90.0000.01314.09
5.5.80.0070.00713.97
5.5.70.0080.00613.98
5.5.60.0090.00614.11
5.5.50.0060.00914.04
5.5.40.0090.00014.18
5.5.30.0070.00713.98
5.5.20.0100.00313.83
5.5.10.0000.00914.04
5.5.00.0060.00913.81

preferences:
71.4 ms | 401 KiB | 5 Q