3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThingDoer { protected $things; public function __construct(string $string = NULL, int $int = 0) { $this->things[] = $string; $this->things[] = $int; } public function do() { print_r($this->things); } } $thing = new ThingDoer(); $thing->do();

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.70.0130.00616.75
8.3.60.0120.00316.50
8.3.50.0110.01016.55
8.3.40.0120.00318.59
8.3.30.0060.00918.41
8.3.20.0000.00720.11
8.3.10.0070.00421.81
8.3.00.0040.00421.80
8.2.180.0110.00416.63
8.2.170.0070.00722.96
8.2.160.0060.00919.08
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.39
8.2.120.0080.00026.35
8.2.110.0030.00722.25
8.2.100.0070.00717.79
8.2.90.0040.00418.13
8.2.80.0000.00817.97
8.2.70.0090.00317.50
8.2.60.0060.00317.80
8.2.50.0080.00018.10
8.2.40.0040.00420.43
8.2.30.0040.00420.98
8.2.20.0060.00618.04
8.2.10.0070.00018.11
8.2.00.0000.00718.00
8.1.280.0060.00925.92
8.1.270.0070.00023.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.01323.92
8.1.230.0040.00821.05
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00718.88
8.1.160.0050.00219.02
8.1.150.0040.00420.61
8.1.140.0000.00819.36
8.1.130.0080.00018.89
8.1.120.0080.00317.31
8.1.110.0000.00717.24
8.1.100.0000.00717.47
8.1.90.0040.00417.23
8.1.80.0000.00717.32
8.1.70.0070.00017.36
8.1.60.0070.00317.55
8.1.50.0030.00517.51
8.1.40.0050.00317.45
8.1.30.0000.00717.67
8.1.20.0000.00817.68
8.1.10.0000.00717.52
8.1.00.0070.00017.47
8.0.300.0040.00420.12
8.0.290.0000.00716.63
8.0.280.0000.00818.43
8.0.270.0070.00017.26
8.0.260.0000.00816.76
8.0.250.0070.00016.83
8.0.240.0080.00016.90
8.0.230.0000.00816.83
8.0.220.0070.00016.86
8.0.210.0040.00416.89
8.0.200.0060.00016.78
8.0.190.0030.00716.77
8.0.180.0040.00416.90
8.0.170.0050.00316.77
8.0.160.0040.00416.79
8.0.150.0040.00416.84
8.0.140.0070.00016.77
8.0.130.0030.00313.25
8.0.120.0050.00316.68
8.0.110.0000.00716.63
8.0.100.0040.00416.70
8.0.90.0050.00216.86
8.0.80.0060.01716.76
8.0.70.0080.00016.72
8.0.60.0000.00816.64
8.0.50.0070.00016.69
8.0.30.0090.01016.97
8.0.20.0130.00517.40
8.0.10.0000.00816.98
8.0.00.0030.01416.87
7.4.330.0050.00015.55
7.4.320.0000.00616.46
7.4.300.0000.00816.52
7.4.290.0000.00716.61
7.4.280.0050.00216.51
7.4.270.0000.00716.63
7.4.260.0030.00316.48
7.4.250.0000.00716.49
7.4.240.0050.00216.60
7.4.230.0030.00316.55
7.4.220.0060.01216.47
7.4.210.0120.00316.55
7.4.200.0020.00516.67
7.4.160.0110.00916.35
7.4.150.0110.00717.40
7.4.140.0070.01017.86
7.4.130.0060.01616.49
7.4.120.0100.01016.47
7.4.110.0090.01216.49
7.4.100.0110.00816.35
7.4.90.0130.00416.43
7.4.80.0060.01119.39
7.4.70.0120.00316.47
7.4.60.0130.00316.45
7.4.50.0120.00316.08
7.4.40.0100.00616.39
7.4.30.0070.01016.40
7.4.10.0000.01615.07
7.4.00.0060.01114.93
7.3.330.0000.00513.24
7.3.320.0000.00513.26
7.3.310.0040.00416.28
7.3.300.0030.00316.26
7.3.290.0060.01016.26
7.3.280.0090.00816.22
7.3.270.0100.00717.40
7.3.260.0050.01316.32
7.3.250.0110.00916.36
7.3.240.0110.01016.52
7.3.230.0100.00716.32
7.3.210.0100.00616.47
7.3.200.0100.00716.38
7.3.190.0030.01416.13
7.3.180.0040.01416.09
7.3.170.0060.01016.32
7.3.160.0030.01316.52
7.3.130.0110.00714.76
7.3.120.0130.00014.71
7.3.110.0130.00314.96
7.3.100.0100.00714.75
7.3.90.0060.00614.74
7.3.80.0100.00314.71
7.3.70.0090.00014.80
7.3.60.0030.00714.83
7.3.50.0040.01114.74
7.3.40.0100.00314.66
7.3.30.0070.00714.59
7.3.20.0000.00916.49
7.3.10.0090.00016.36
7.3.00.0060.00616.38
7.2.330.0090.00916.46
7.2.320.0070.01016.64
7.2.310.0060.01116.75
7.2.300.0060.01216.45
7.2.290.0050.01116.54
7.2.260.0040.01414.93
7.2.250.0120.00614.55
7.2.240.0040.01114.93
7.2.230.0080.00815.01
7.2.220.0000.00915.22
7.2.210.0040.00814.76
7.2.200.0070.00314.90
7.2.190.0070.01114.88
7.2.180.0070.00714.83
7.2.170.0030.01114.98
7.2.160.0060.00615.05
7.2.150.0030.00616.87
7.2.140.0080.00316.70
7.2.130.0030.01316.64
7.2.120.0070.00717.04
7.2.110.0090.00616.79
7.2.100.0060.00917.07
7.2.90.0000.01117.00
7.2.80.0100.00316.95
7.2.70.0000.01716.50
7.2.60.0040.00916.82
7.2.50.0030.00616.88
7.2.40.0000.01217.11
7.2.30.0060.00916.71
7.2.20.0100.00316.95
7.2.10.0030.01516.77
7.2.00.0050.01118.16
7.1.330.0040.01415.94
7.1.320.0090.00015.63
7.1.310.0090.00615.84
7.1.300.0040.01115.83
7.1.290.0030.00915.62
7.1.280.0030.01015.51
7.1.270.0030.01315.82
7.1.260.0000.01315.52
7.1.250.0080.00415.89
7.1.240.0060.00615.52
7.1.230.0070.00415.41
7.1.220.0000.01115.80
7.1.210.0090.00015.63
7.1.200.0060.00315.71
7.1.190.0040.00715.67
7.1.180.0070.00715.55
7.1.170.0000.00815.67
7.1.160.0070.00715.83
7.1.150.0110.00315.81
7.1.140.0100.00315.74
7.1.130.0000.01115.70
7.1.120.0060.00915.88
7.1.110.0070.00415.83
7.1.100.0050.00717.03
7.1.90.0030.00915.58
7.1.80.0110.00315.69
7.1.70.0190.01415.56
7.1.60.0220.00825.35
7.1.50.0200.00725.03
7.1.40.0150.01525.11
7.1.30.0410.00724.96
7.1.20.0170.01424.95
7.1.10.0080.01116.10
7.1.00.0090.00716.11
7.0.330.0030.01015.52
7.0.320.0130.00015.38
7.0.310.0090.00315.32
7.0.300.0080.00415.07
7.0.290.0030.00915.34
7.0.280.0060.00315.30
7.0.270.0070.00715.35
7.0.260.0080.00615.43
7.0.250.0040.01115.35
7.0.240.0000.01215.45
7.0.230.0030.00615.12
7.0.220.0100.00315.33
7.0.210.0080.00415.50
7.0.200.0290.00816.07
7.0.190.0050.01115.86
7.0.180.0120.00615.83
7.0.170.0040.01315.74
7.0.160.0050.01015.86
7.0.150.0050.01015.90
7.0.140.0080.00715.75
7.0.130.0070.01015.96
7.0.120.0050.01016.01
7.0.110.0080.00715.79
7.0.100.0080.00615.81
7.0.90.0000.01415.90
7.0.80.0110.00315.97
7.0.70.0030.01115.83
7.0.60.0040.01315.69
7.0.50.0080.00616.00
7.0.40.0030.01014.88
7.0.30.0050.01015.01
7.0.20.0070.00714.72
7.0.10.0080.00814.89
7.0.00.0100.00514.90
5.6.400.0070.00713.77
5.6.390.0140.00014.18
5.6.380.0060.00314.28
5.6.370.0040.00813.82
5.6.360.0070.00313.89
5.6.350.0000.01314.27
5.6.340.0000.00814.32
5.6.330.0000.01513.90
5.6.320.0070.00714.23
5.6.310.0030.00613.84
5.6.300.0070.00714.29
5.6.290.0040.01114.16
5.6.280.0080.00514.17
5.6.270.0030.01413.83
5.6.260.0100.00314.42
5.6.250.0000.01314.01
5.6.240.0100.00714.04
5.6.230.0040.01114.12
5.6.220.0040.00414.32
5.6.210.0120.00314.17
5.6.200.0070.00713.98
5.6.190.0030.00614.16
5.6.180.0080.00414.03
5.6.170.0110.00414.13
5.6.160.0060.00614.25
5.6.150.0030.00614.33
5.6.140.0060.00913.81
5.6.130.0030.01014.13
5.6.120.0000.01414.16
5.6.110.0040.00714.19
5.6.100.0100.00314.31
5.6.90.0060.00613.76
5.6.80.0030.00913.94
5.6.70.0070.00313.98
5.6.60.0090.00613.86
5.6.50.0060.00613.87
5.6.40.0040.01114.05
5.6.30.0090.00313.93
5.6.20.0060.00913.93
5.6.10.0090.00313.93
5.6.00.0070.00714.12

preferences:
42.4 ms | 401 KiB | 5 Q