3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $id; public function __construct(){ static $counter = 0; $this->id = $counter; ++$counter; } } $collection = [new Foo(), new Foo(), new Foo(), new Foo()]; print_r(array_column($collection, 'id'));

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.130.0030.00718.39
8.3.120.0060.00320.86
8.3.110.0060.00316.63
8.3.100.0160.00018.31
8.3.90.0120.00326.77
8.3.80.0030.00618.30
8.3.70.0140.00716.63
8.3.60.0080.00818.53
8.3.50.0060.00818.59
8.3.40.0120.00318.92
8.3.30.0090.00618.89
8.3.20.0000.00820.75
8.3.10.0000.00723.66
8.3.00.0000.00720.76
8.2.250.0060.01318.18
8.2.240.0090.00618.87
8.2.230.0080.00020.94
8.2.220.0000.00924.06
8.2.210.0070.00026.77
8.2.200.0140.00018.29
8.2.190.0100.00716.58
8.2.180.0090.00625.92
8.2.170.0070.00719.08
8.2.160.0070.01022.96
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0100.00020.96
8.2.110.0030.00720.40
8.2.100.0090.00317.78
8.2.90.0080.00017.63
8.2.80.0060.00318.82
8.2.70.0000.00817.63
8.2.60.0000.00917.50
8.2.50.0080.00017.55
8.2.40.0050.00321.25
8.2.30.0000.00719.36
8.2.20.0040.00418.10
8.2.10.0030.00518.92
8.2.00.0000.00719.28
8.1.300.0120.00320.23
8.1.290.0040.00430.84
8.1.280.0100.01425.92
8.1.270.0090.00020.77
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00620.24
8.1.230.0120.00017.89
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0030.00617.65
8.1.180.0090.00018.10
8.1.170.0000.00818.74
8.1.160.0030.00520.28
8.1.150.0040.00418.93
8.1.140.0030.00618.84
8.1.130.0030.00520.07
8.1.120.0000.00717.51
8.1.110.0000.00817.34
8.1.100.0080.00017.38
8.1.90.0040.00417.39
8.1.80.0040.00417.36
8.1.70.0020.00517.50
8.1.60.0000.00917.66
8.1.50.0030.00717.54
8.1.40.0040.00417.54
8.1.30.0040.00417.66
8.1.20.0000.00817.70
8.1.10.0000.00817.54
8.1.00.0040.00417.48
8.0.300.0060.00318.77
8.0.290.0060.00316.62
8.0.280.0050.00318.45
8.0.270.0030.00316.72
8.0.260.0030.00520.07
8.0.250.0060.00017.01
8.0.240.0000.00716.95
8.0.230.0030.00316.84
8.0.220.0040.00416.90
8.0.210.0070.00016.87
8.0.200.0030.00316.99
8.0.190.0040.00416.94
8.0.180.0050.00316.97
8.0.170.0000.00916.91
8.0.160.0040.00416.87
8.0.150.0000.00716.69
8.0.140.0000.00716.89
8.0.130.0050.00013.31
8.0.120.0070.00016.85
8.0.110.0050.00316.72
8.0.100.0000.00716.79
8.0.90.0040.00416.73
8.0.80.0040.01416.94
8.0.70.0000.00716.87
8.0.60.0040.00416.95
8.0.50.0040.00416.77
8.0.30.0100.00717.14
8.0.20.0100.00917.05
8.0.10.0180.01117.15
8.0.00.0120.00616.89
7.4.330.0030.00315.55
7.4.320.0070.00016.65
7.4.300.0060.00016.37
7.4.290.0030.00316.65
7.4.280.0040.00416.50
7.4.270.0040.00416.42
7.4.260.0030.00313.27
7.4.250.0070.00016.48
7.4.240.0040.00416.52
7.4.230.0000.00716.67
7.4.220.0050.00216.52
7.4.210.0070.00716.57
7.4.200.0030.00316.41
7.4.140.0160.00616.54
7.4.130.0100.00816.45
7.4.120.0080.01316.53
7.4.110.0130.00916.45
7.4.100.0140.00616.58
7.4.90.0100.01216.51
7.4.80.0070.01217.93
7.4.70.0180.00816.51
7.4.60.0130.00516.51
7.4.50.0140.00516.51
7.4.40.0090.01116.38
7.4.30.0100.01316.29
7.4.20.0130.00416.46
7.4.10.0080.01216.42
7.4.00.0040.01215.62
7.3.330.0040.00416.39
7.3.320.0000.00513.26
7.3.310.0070.00016.32
7.3.300.0070.00016.16
7.3.290.0080.00816.33
7.3.260.0110.00816.41
7.3.250.0100.01016.29
7.3.240.0070.01116.39
7.3.230.0120.00916.49
7.3.220.0160.00416.44
7.3.210.0110.01216.40
7.3.200.0090.00916.30
7.3.190.0140.00616.42
7.3.180.0150.00716.34
7.3.170.0100.01116.31
7.3.160.0070.01416.25
7.3.150.0130.01016.46
7.3.140.0150.00416.50
7.3.130.0120.01616.16
7.3.120.0160.00615.45
7.3.110.0090.00815.03
7.3.100.0090.00815.06
7.3.90.0100.00914.97
7.3.80.0070.01015.02
7.3.70.0100.01015.16
7.3.60.0100.00815.03
7.3.50.0120.00714.94
7.3.40.0090.00915.08
7.3.30.0070.01115.14
7.3.20.0120.00615.18
7.3.10.0090.00915.20
7.3.00.0120.00615.02
7.2.340.0210.01116.54
7.2.330.0160.01116.58
7.2.320.0190.00516.60
7.2.310.0220.01016.68
7.2.300.0120.01316.58
7.2.290.0200.01416.51
7.2.280.0180.01516.51
7.2.270.0140.01816.30
7.2.260.0290.00316.62
7.2.250.0290.00716.26
7.2.240.0120.00915.32
7.2.230.0110.00915.40
7.2.220.0070.01415.33
7.2.210.0120.00815.25
7.2.200.0140.00815.38
7.2.190.0110.01115.30
7.2.180.0130.00915.26
7.2.170.0130.01015.30
7.2.160.0160.00615.34
7.2.150.0140.01015.45
7.2.140.0130.00915.34
7.2.130.0150.00715.35
7.2.120.0140.00915.42
7.2.110.0120.01115.35
7.2.100.0110.01015.24
7.2.90.0150.00915.48
7.2.80.0110.01315.36
7.2.70.0100.01215.41
7.2.60.0230.00615.35
7.2.50.0170.01215.41
7.2.40.0120.00815.28
7.2.30.0170.00815.35
7.2.20.0140.00815.29
7.2.10.0150.00715.40
7.2.00.0150.00815.37
7.1.330.0060.01214.36
7.1.320.0280.00914.22
7.1.310.0100.01014.35
7.1.300.0100.01114.35
7.1.290.0150.00614.34
7.1.280.0140.00714.43
7.1.270.0120.00814.41
7.1.260.0240.00614.22
7.1.250.0140.00714.36
7.1.240.0150.00714.46
7.1.230.0190.00414.41
7.1.220.0080.01514.31
7.1.210.0120.00914.53
7.1.200.0130.00814.46
7.1.190.0090.01614.39
7.1.180.0110.01114.46
7.1.170.0140.00814.41
7.1.160.0150.00714.45
7.1.150.0120.01214.47
7.1.140.0140.01114.46
7.1.130.0150.00514.47
7.1.120.0150.00714.36
7.1.110.0100.01214.49
7.1.100.0140.00914.37
7.1.90.0140.00714.41
7.1.80.0110.01114.50
7.1.70.0120.00914.47
7.1.60.0170.00414.54
7.1.50.0150.00614.32
7.1.40.0140.00614.58
7.1.30.0110.01214.35
7.1.20.0150.00514.37
7.1.10.0150.00614.47
7.1.00.0150.01014.37
7.0.330.0180.00814.13
7.0.320.0110.01014.19
7.0.310.0050.01514.08
7.0.300.0150.00814.19
7.0.290.0090.01014.16
7.0.280.0130.00914.11
7.0.270.0110.00914.06
7.0.260.0190.00613.94
7.0.250.0130.00814.18
7.0.240.0140.00714.12
7.0.230.0120.01214.06
7.0.220.0170.00514.13
7.0.210.0100.01113.98
7.0.200.0150.00714.17
7.0.190.0110.00913.98
7.0.180.0110.01114.04
7.0.170.0120.00814.04
7.0.160.0160.00514.09
7.0.150.0130.00914.08
7.0.140.0130.00714.24
7.0.130.0130.01114.15
7.0.120.0120.00814.08
7.0.110.0150.00714.07
7.0.100.0150.00514.13
7.0.90.0130.00714.21
7.0.80.0120.00914.10
7.0.70.0090.01114.06
7.0.60.0160.00614.05
7.0.50.0200.00214.19
7.0.40.0140.00814.12
7.0.30.0120.00914.17
7.0.20.0110.00914.10
7.0.10.0130.00714.08
7.0.00.0240.01014.23
5.6.400.0130.01014.84
5.6.390.0150.00914.97
5.6.380.0130.00914.89
5.6.370.0140.00814.86
5.6.360.0120.01114.89
5.6.350.0100.01314.83
5.6.340.0110.01214.86
5.6.330.0120.01214.87
5.6.320.0130.01114.74
5.6.310.0160.00814.84
5.6.300.0130.00914.86
5.6.290.0160.00814.82
5.6.280.0140.01015.09
5.6.270.0120.01014.81
5.6.260.0110.01014.86
5.6.250.0090.01214.75
5.6.240.0140.00814.89
5.6.230.0140.01114.85
5.6.220.0140.00814.93
5.6.210.0110.01214.75
5.6.200.0140.00814.88
5.6.190.0130.00914.89
5.6.180.0120.00915.04
5.6.170.0070.01314.84
5.6.160.0110.01114.75
5.6.150.0140.00614.85
5.6.140.0110.01014.95
5.6.130.0120.01214.77
5.6.120.0120.01014.88
5.6.110.0120.01114.84
5.6.100.0140.00914.87
5.6.90.0150.01014.86
5.6.80.0100.01214.87
5.6.70.0130.00914.82
5.6.60.0150.00714.80
5.6.50.0090.01314.95
5.6.40.0120.00814.80
5.6.30.0090.01314.71
5.6.20.0110.01014.74
5.6.10.0080.01214.86
5.6.00.0110.00914.85
5.5.380.0150.01114.94
5.5.370.0180.01014.76
5.5.360.0160.01014.75
5.5.350.0200.00514.59
5.5.340.0160.00914.60
5.5.330.0200.00914.74
5.5.320.0120.01014.70
5.5.310.0170.00614.75
5.5.300.0140.00814.56
5.5.290.0180.00914.82
5.5.280.0120.01114.81
5.5.270.0100.01114.78
5.5.260.0160.00814.75
5.5.250.0130.00914.58
5.5.240.0090.01314.69
5.5.230.0090.01314.70
5.5.220.0150.00914.80
5.5.210.0160.00714.79
5.5.200.0140.00814.65
5.5.190.0150.00514.76
5.5.180.0140.01014.79
5.5.170.0180.00514.80
5.5.160.0170.00714.64
5.5.150.0140.00714.89
5.5.140.0120.01014.68
5.5.130.0180.00414.82
5.5.120.0100.01414.81
5.5.110.0120.00914.86
5.5.100.0150.00814.63
5.5.90.0130.00914.61
5.5.80.0130.01014.83
5.5.70.0140.00814.59
5.5.60.0140.01014.61
5.5.50.0100.01114.45
5.5.40.0180.00614.66
5.5.30.0170.00614.42
5.5.20.0110.01214.72
5.5.10.0150.00714.68
5.5.00.0120.01414.33
5.4.450.0120.00911.55
5.4.440.0150.00811.47
5.4.430.0100.00811.61
5.4.420.0130.00611.53
5.4.410.0110.00711.56
5.4.400.0130.00811.46
5.4.390.0070.01211.53
5.4.380.0090.00911.46
5.4.370.0090.00911.54
5.4.360.0110.00711.43
5.4.350.0130.00611.46
5.4.340.0150.00311.54
5.4.330.0130.00411.53
5.4.320.0130.00611.35
5.4.310.0120.00511.43
5.4.300.0090.00811.54
5.4.290.0130.00711.48
5.4.280.0110.00711.46
5.4.270.0130.00511.46
5.4.260.0120.00511.41
5.4.250.0120.00611.52
5.4.240.0150.00311.31
5.4.230.0130.00411.53
5.4.220.0110.00411.40
5.4.210.0130.00411.59
5.4.200.0140.00511.49
5.4.190.0130.00711.52
5.4.180.0140.00411.59
5.4.170.0100.01011.42
5.4.160.0100.00911.42
5.4.150.0140.00711.62
5.4.140.0120.00611.37
5.4.130.0120.00711.56
5.4.120.0150.00411.46
5.4.110.0130.00711.59
5.4.100.0070.00911.63
5.4.90.0090.00811.57
5.4.80.0100.00611.57
5.4.70.0120.00711.46
5.4.60.0060.01011.49
5.4.50.0090.00811.53
5.4.40.0110.00911.54
5.4.30.0100.00711.48
5.4.20.0110.00511.47
5.4.10.0120.00511.53
5.4.00.0090.00711.41
5.3.290.0130.00611.33
5.3.280.0070.00911.25
5.3.270.0110.00811.25
5.3.260.0060.01211.21
5.3.250.0150.00511.15
5.3.240.0110.00611.17
5.3.230.0150.00411.24
5.3.220.0140.00411.21
5.3.210.0130.00611.09
5.3.200.0090.00711.25
5.3.190.0100.00711.24
5.3.180.0100.00811.23
5.3.170.0130.00711.35
5.3.160.0110.00611.31
5.3.150.0140.00511.31
5.3.140.0140.00511.22
5.3.130.0130.00511.30
5.3.120.0110.00511.36
5.3.110.0120.00511.33
5.3.100.0110.00811.26
5.3.90.0120.00711.29
5.3.80.0130.00411.22
5.3.70.0090.00911.23
5.3.60.0090.00811.34
5.3.50.0090.00811.13
5.3.40.0090.00911.23
5.3.30.0140.00311.19
5.3.20.0120.00511.12
5.3.10.0090.00711.16
5.3.00.0140.00411.04
5.2.170.0090.00410.59
5.2.160.0120.00310.60
5.2.150.0100.00410.61
5.2.140.0080.00810.58
5.2.130.0090.00610.58
5.2.120.0090.00510.60
5.2.110.0090.00710.60
5.2.100.0060.01010.59
5.2.90.0090.00610.58
5.2.80.0110.00410.58
5.2.70.0070.00910.58
5.2.60.0110.00410.58
5.2.50.0150.00310.58
5.2.40.0090.00710.61
5.2.30.0090.00510.58
5.2.20.0090.00710.58
5.2.10.0080.00610.58
5.2.00.0090.00510.58
5.1.60.0070.00610.58
5.1.50.0090.00310.58
5.1.40.0060.00610.58
5.1.30.0070.00410.58
5.1.20.0090.00410.58
5.1.10.0080.00410.58
5.1.00.0080.00510.58
5.0.50.0080.00410.58
5.0.40.0090.00210.58
5.0.30.0100.00210.58
5.0.20.0050.00510.58
5.0.10.0040.00510.58
5.0.00.0070.00310.58
4.4.90.0060.00410.58
4.4.80.0070.00110.58
4.4.70.0060.00310.58
4.4.60.0050.00410.58
4.4.50.0080.00110.58
4.4.40.0030.00510.58
4.4.30.0040.00410.58
4.4.20.0030.00410.58
4.4.10.0060.00210.58
4.4.00.0040.00410.58
4.3.110.0070.00110.58
4.3.100.0040.00410.58
4.3.90.0070.00010.58
4.3.80.0030.00410.58
4.3.70.0040.00410.58
4.3.60.0060.00310.58
4.3.50.0070.00110.58
4.3.40.0050.00310.58
4.3.30.0040.00410.58
4.3.20.0060.00210.58
4.3.10.0060.00210.58
4.3.00.0030.00410.58

preferences:
29.13 ms | 403 KiB | 5 Q