3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SelectUserById { private $container; public function __construct($container) { $this->container = $container; } public function vai() { echo $this->container; } } abstract class QueryFactory { public function __invoke($container) { return new $this->queryNamespace($container); } } final class SelectUserByIdFactory extends QueryFactory { protected $queryNamespace = SelectUserById::class; } $instance = (new SelectUserByIdFactory)('container here'); $instance->vai();

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.0120.00318.56
8.3.50.0030.01416.61
8.3.40.0160.00018.83
8.3.30.0040.01118.79
8.3.20.0090.00018.66
8.3.10.0040.00423.70
8.3.00.0120.00017.59
8.2.180.0060.01318.42
8.2.170.0120.00322.96
8.2.160.0090.00619.14
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00519.27
8.2.120.0040.00426.35
8.2.110.0060.00320.37
8.2.100.0060.00617.91
8.2.90.0040.00417.78
8.2.80.0000.00818.85
8.2.70.0060.00217.92
8.2.60.0000.00817.93
8.2.50.0060.00318.10
8.2.40.0000.00720.64
8.2.30.0040.00419.16
8.2.20.0040.00417.98
8.2.10.0040.00417.89
8.2.00.0000.00818.29
8.1.280.0070.01325.92
8.1.270.0030.00519.87
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0000.01023.93
8.1.230.0060.00623.89
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0000.00917.36
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0000.00818.50
8.1.160.0040.00418.83
8.1.150.0040.00420.65
8.1.140.0000.00719.07
8.1.130.0080.00019.06
8.1.120.0070.00017.32
8.1.110.0000.00717.45
8.1.100.0060.00317.39
8.1.90.0040.00417.45
8.1.80.0040.00417.37
8.1.70.0070.00017.43
8.1.60.0040.00417.54
8.1.50.0060.00317.54
8.1.40.0050.00317.49
8.1.30.0070.00017.62
8.1.20.0040.00417.55
8.1.10.0050.00517.59
8.1.00.0040.00417.45
8.0.300.0040.00419.96
8.0.290.0000.00716.75
8.0.280.0040.00418.44
8.0.270.0000.00717.25
8.0.260.0060.00017.39
8.0.250.0070.00016.84
8.0.240.0000.01017.00
8.0.230.0000.00716.88
8.0.220.0000.00916.80
8.0.210.0070.00016.79
8.0.200.0000.00716.90
8.0.190.0000.00716.92
8.0.180.0000.00816.87
8.0.170.0080.00016.85
8.0.160.0000.00716.84
8.0.150.0000.00716.85
8.0.140.0040.00416.81
8.0.130.0050.00013.26
8.0.120.0080.00016.79
8.0.110.0040.00416.86
8.0.100.0000.00716.89
8.0.90.0000.00816.72
8.0.80.0090.00616.83
8.0.70.0060.00316.71
8.0.60.0000.00716.71
8.0.50.0040.00416.70
8.0.30.0100.00916.80
8.0.20.0110.01017.40
8.0.10.0040.00416.77
8.0.00.0120.00616.79
7.4.330.0000.00516.61
7.4.320.0030.00316.50
7.4.300.0070.00016.61
7.4.290.0030.00516.63
7.4.280.0000.00716.49
7.4.270.0050.00316.63
7.4.260.0050.00316.45
7.4.250.0000.00716.54
7.4.240.0030.00316.62
7.4.230.0070.00016.69
7.4.220.0000.00916.48
7.4.210.0140.00016.51
7.4.200.0000.00716.35
7.4.160.0100.00816.47
7.4.150.0100.00717.40
7.4.140.0150.00517.86
7.4.130.0130.00716.60
7.4.120.0090.01116.41
7.4.110.0030.01316.36
7.4.100.0070.01416.74
7.4.90.0140.00416.48
7.4.80.0180.00019.39
7.4.70.0130.01016.46
7.4.60.0040.01416.49
7.4.50.0070.00716.46
7.4.40.0060.01016.55
7.4.10.0070.01115.16
7.4.00.0100.00614.89
7.3.330.0030.00313.25
7.3.320.0060.00013.07
7.3.310.0070.00016.27
7.3.300.0000.00716.17
7.3.290.0090.00616.20
7.3.280.0060.00716.22
7.3.270.0030.01717.40
7.3.260.0120.00616.40
7.3.250.0140.00616.36
7.3.240.0110.00816.38
7.3.230.0080.00816.42
7.3.210.0160.00016.50
7.3.200.0030.01316.48
7.3.190.0090.00916.31
7.3.180.0080.00816.27
7.3.170.0130.01016.47
7.3.160.0120.00616.42
7.3.130.0030.01414.60
7.3.120.0060.00915.01
7.3.110.0070.00714.60
7.3.100.0070.00714.64
7.3.90.0040.00714.75
7.3.80.0040.00714.71
7.3.70.0060.00914.59
7.3.60.0070.00714.63
7.3.50.0040.00414.91
7.3.40.0070.00714.80
7.3.30.0030.00614.82
7.3.20.0070.00316.27
7.3.10.0060.00916.20
7.3.00.0000.01016.21
7.2.330.0210.00016.69
7.2.320.0070.01016.77
7.2.310.0090.00916.42
7.2.300.0100.01316.68
7.2.290.0040.01416.74
7.2.260.0130.00715.03
7.2.250.0070.01115.23
7.2.240.0090.00614.96
7.2.230.0060.00615.29
7.2.220.0000.01115.14
7.2.210.0000.01015.20
7.2.200.0030.01215.08
7.2.190.0060.00914.85
7.2.180.0040.01115.04
7.2.170.0070.00715.28
7.2.160.0060.00915.07
7.2.150.0130.00316.79
7.2.140.0060.00916.96
7.2.130.0080.00416.89
7.2.120.0030.01316.96
7.2.110.0000.01116.86
7.2.100.0030.01017.10
7.2.90.0000.01417.22
7.2.80.0000.00916.81
7.2.70.0090.00017.14
7.2.60.0070.00517.01
7.2.50.0060.00917.00
7.2.40.0000.01316.67
7.2.30.0030.00616.88
7.2.20.0070.01317.11
7.2.10.0030.01518.46
7.2.00.0110.00718.24
7.1.330.0030.01015.80
7.1.320.0030.01015.87
7.1.310.0110.00315.62
7.1.300.0110.00415.47
7.1.290.0030.01015.98
7.1.280.0030.00915.79
7.1.270.0090.00015.70
7.1.260.0030.00915.54
7.1.250.0000.01615.53
7.1.240.0060.00615.74
7.1.230.0070.00715.64
7.1.220.0030.01015.86
7.1.210.0000.01015.85
7.1.200.0000.01115.82
7.1.190.0030.01015.48
7.1.180.0030.00515.82
7.1.170.0090.00615.85
7.1.160.0100.00015.51
7.1.150.0030.01015.53
7.1.140.0040.01115.56
7.1.130.0050.01417.04
7.1.120.0030.01017.23
7.1.110.0030.01016.83
7.1.100.0030.01116.96
7.1.90.0060.00916.62
7.1.80.0060.01016.99
7.1.70.0050.00916.37
7.1.60.0160.00925.31
7.1.50.0080.01425.25
7.1.40.0110.01125.14
7.1.30.0120.01324.98
7.1.20.0160.01125.09
7.1.10.0050.01116.20
7.1.00.0070.00516.06
7.0.330.0100.00715.09
7.0.320.0070.00715.12
7.0.310.0080.00515.23
7.0.300.0090.00615.04
7.0.290.0060.00615.48
7.0.280.0110.00015.17
7.0.270.0100.00315.48
7.0.260.0030.00915.53
7.0.250.0060.00615.66
7.0.240.0060.00915.43
7.0.230.0000.01115.49
7.0.220.0000.01215.35
7.0.210.0030.01315.40
7.0.200.0120.00615.55
7.0.190.0110.00515.58
7.0.180.0000.01415.16
7.0.170.0030.01015.35
7.0.160.0070.00715.50
7.0.150.0000.01415.59
7.0.140.0030.01015.29
7.0.130.0070.00715.21
7.0.120.0000.01415.45
7.0.110.0030.00915.41
7.0.100.0050.00515.17
7.0.90.0000.00915.46
7.0.80.0000.00915.29
7.0.70.0030.00915.52
7.0.60.0080.00615.38
7.0.50.0050.01015.11
7.0.40.0070.00713.51
7.0.30.0030.00713.48
7.0.20.0040.00413.35
7.0.10.0030.01013.47
7.0.00.0000.01613.55
5.6.400.0080.00413.82
5.6.390.0110.00414.14
5.6.380.0040.01114.38
5.6.370.0070.00714.19
5.6.360.0080.00314.36
5.6.350.0070.00714.34
5.6.340.0060.01014.39
5.6.330.0030.00814.29
5.6.320.0000.01613.99
5.6.310.0060.00613.96
5.6.300.0070.00714.39
5.6.290.0040.00814.39
5.6.280.0070.00714.29
5.6.270.0100.00014.24
5.6.260.0000.00814.11
5.6.250.0100.00314.09
5.6.240.0090.00014.25
5.6.230.0000.01114.12
5.6.220.0030.01014.27
5.6.210.0120.00014.26
5.6.200.0100.00314.05
5.6.190.0060.00914.14
5.6.180.0080.00814.03
5.6.170.0090.00614.04
5.6.160.0040.00714.13
5.6.150.0030.01314.12
5.6.140.0090.00314.26
5.6.130.0000.01214.09
5.6.120.0110.00314.10
5.6.110.0090.00613.93
5.6.100.0090.00314.20
5.6.90.0070.01014.14
5.6.80.0070.00314.18
5.6.70.0000.01414.09
5.6.60.0030.00613.96
5.6.50.0120.00314.14
5.6.40.0040.00414.01
5.6.30.0040.01114.05
5.6.20.0030.01313.92
5.6.10.0120.00314.00
5.6.00.0060.00914.10

preferences:
59.79 ms | 401 KiB | 5 Q