3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { private $noise; public function __construct(string $noise) { $this->noise = $noise; } public function bark() { print $this->noise; } } $dog = new Dog("woooof!"); $dog->bark();

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.0070.00716.38
8.3.60.0040.01118.39
8.3.50.0160.00621.15
8.3.40.0190.00318.67
8.3.30.0090.00618.54
8.3.20.0150.00420.26
8.3.10.0070.00023.53
8.3.00.0030.00522.41
8.2.190.0130.00316.58
8.2.180.0220.00016.38
8.2.170.0090.00622.96
8.2.160.0060.00920.43
8.2.150.0130.00324.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0060.00317.63
8.2.110.0090.00020.47
8.2.100.0100.00317.75
8.2.90.0000.00819.24
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0030.00517.93
8.2.50.0030.00518.07
8.2.40.0000.00921.18
8.2.30.0000.00819.91
8.2.20.0040.00417.68
8.2.10.0050.00217.99
8.2.00.0040.00418.06
8.1.280.0070.01125.92
8.1.270.0080.00020.38
8.1.260.0070.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00319.21
8.1.230.0110.00017.66
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0080.00018.44
8.1.160.0090.00023.73
8.1.150.0040.00418.73
8.1.140.0040.00417.38
8.1.130.0040.00417.62
8.1.120.0000.00717.37
8.1.110.0040.00417.26
8.1.100.0040.00417.42
8.1.90.0040.00417.39
8.1.80.0070.00017.27
8.1.70.0030.00317.28
8.1.60.0040.00417.46
8.1.50.0040.00417.50
8.1.40.0000.00817.53
8.1.30.0030.00517.47
8.1.20.0000.00717.50
8.1.10.0000.00817.57
8.1.00.0000.00817.38
8.0.300.0000.00818.77
8.0.290.0030.00316.63
8.0.280.0040.00418.41
8.0.270.0070.00017.17
8.0.260.0060.00017.17
8.0.250.0000.00716.91
8.0.240.0060.00316.93
8.0.230.0070.00016.82
8.0.220.0000.00716.84
8.0.210.0000.00716.81
8.0.200.0030.00316.77
8.0.190.0030.00616.86
8.0.180.0000.00816.74
8.0.170.0040.00416.73
8.0.160.0040.00416.79
8.0.150.0070.00016.78
8.0.140.0030.00516.79
8.0.130.0040.00413.29
8.0.120.0040.00416.80
8.0.110.0030.00516.87
8.0.100.0070.00016.67
8.0.90.0040.00416.77
8.0.80.0030.01216.81
8.0.70.0000.00716.70
8.0.60.0000.00716.71
8.0.50.0040.00416.89
8.0.30.0100.00917.10
8.0.20.0100.00717.40
8.0.10.0000.00716.97
8.0.00.0110.00716.85
7.4.330.0000.00515.09
7.4.320.0000.00616.42
7.4.300.0030.00316.50
7.4.290.0000.00716.59
7.4.280.0070.00016.57
7.4.270.0040.00416.51
7.4.260.0020.00516.50
7.4.250.0080.00016.46
7.4.240.0070.00116.54
7.4.230.0000.00716.60
7.4.220.0030.01216.63
7.4.210.0070.00716.71
7.4.200.0050.00316.38
7.4.160.0030.01316.37
7.4.150.0140.00417.40
7.4.140.0140.00917.86
7.4.130.0050.01316.47
7.4.120.0160.00316.38
7.4.110.0130.00616.36
7.4.100.0010.01016.48
7.4.90.0060.01216.40
7.4.80.0030.01619.39
7.4.70.0110.00616.42
7.4.60.0060.00916.50
7.4.50.0040.00416.43
7.4.40.0100.00616.53
7.4.30.0090.00916.42
7.4.00.0040.01114.70
7.3.330.0070.00013.25
7.3.320.0030.00313.23
7.3.310.0070.00016.06
7.3.300.0000.00716.29
7.3.290.0030.01016.23
7.3.280.0130.00416.28
7.3.270.0140.00317.40
7.3.260.0120.01216.30
7.3.250.0100.00916.44
7.3.240.0170.00016.46
7.3.230.0160.00616.39
7.3.210.0080.00816.31
7.3.200.0030.01319.39
7.3.190.0030.01416.31
7.3.180.0080.00816.59
7.3.170.0080.00816.37
7.3.160.0090.00916.16
7.3.00.0070.00716.33
7.2.330.0090.00916.64
7.2.320.0130.00416.79
7.2.310.0060.01116.62
7.2.300.0120.00416.78
7.2.290.0130.00716.62
7.2.130.0060.01216.85
7.2.120.0100.00317.09
7.2.110.0120.00016.67
7.2.100.0110.00416.62
7.2.90.0060.01016.86
7.2.80.0000.01416.61
7.2.70.0040.01116.84
7.2.60.0070.00816.85
7.2.50.0000.01616.95
7.2.40.0000.01216.91
7.2.30.0040.01117.02
7.2.20.0030.01317.00
7.2.10.0000.01116.91
7.2.00.0080.00518.17
7.1.250.0030.01315.75
7.1.240.0030.00915.59
7.1.230.0030.00615.57
7.1.220.0070.00715.33
7.1.210.0050.00515.71
7.1.200.0000.01115.51
7.1.190.0060.00315.33
7.1.180.0100.00315.79
7.1.170.0030.01015.77
7.1.160.0000.01015.67
7.1.150.0040.01115.73
7.1.140.0060.00615.74
7.1.130.0070.00715.45
7.1.120.0110.00315.62
7.1.110.0030.01015.75
7.1.100.0060.00917.00
7.1.90.0030.01015.57
7.1.80.0030.00715.77
7.1.70.0070.00616.27
7.1.60.0020.01717.94
7.1.50.0080.00716.25
7.1.40.0080.00415.45
7.1.30.0040.01115.55
7.1.20.0000.01115.56
7.1.10.0040.01115.23
7.1.00.0100.03518.92
7.0.330.0080.00015.26
7.0.320.0060.00315.30
7.0.310.0040.00815.45
7.0.300.0000.01115.52
7.0.290.0080.00415.30
7.0.280.0090.00615.55
7.0.270.0070.00415.31
7.0.260.0060.00615.32
7.0.250.0100.00315.45
7.0.240.0000.00915.35
7.0.230.0130.00015.43
7.0.220.0070.00715.23
7.0.210.0030.00615.16
7.0.200.0180.00615.06
7.0.190.0090.00315.46
7.0.180.0030.00615.48
7.0.170.0030.00615.49
7.0.160.0060.00315.25
7.0.150.0090.00315.17
7.0.140.0040.01115.21
7.0.130.0030.01215.21
7.0.120.0030.00615.58
7.0.110.0000.00815.08
7.0.100.0070.00715.46
7.0.90.0070.00015.22
7.0.80.0080.00015.29
7.0.70.0060.00615.50
7.0.60.0070.03717.52
7.0.50.0030.04316.69
7.0.40.0020.02816.78
7.0.30.0180.04016.76
7.0.20.0180.03316.70
7.0.10.0070.04716.88
7.0.00.0050.04716.85
5.6.380.0130.00014.45
5.6.370.0100.00314.36
5.6.360.0060.00714.30
5.6.350.0080.00414.23
5.6.340.0080.00314.22
5.6.330.0070.01014.25
5.6.320.0060.00614.25
5.6.310.0030.01014.23
5.6.300.0060.00314.32
5.6.290.0060.00913.91
5.6.280.0050.01817.74
5.6.270.0040.01114.16
5.6.260.0070.00414.25
5.6.250.0030.01414.45
5.6.240.0070.00714.26
5.6.230.0000.01314.22
5.6.220.0000.00814.21
5.6.210.0120.04317.37
5.6.200.0050.04716.18
5.6.190.0080.03417.20
5.6.180.0190.04017.42
5.6.170.0130.04617.38
5.6.160.0070.03217.46
5.6.150.0080.02016.03
5.6.140.0060.04516.12
5.6.130.0080.01816.15
5.6.120.0100.03717.58
5.6.110.0070.04217.66
5.6.100.0030.04917.62
5.6.90.0110.04117.58
5.6.80.0080.04517.19
5.6.70.0040.01114.19
5.6.60.0040.00814.25
5.6.50.0080.00814.16
5.6.40.0080.00414.16
5.6.30.0030.00613.98
5.6.20.0080.00014.22
5.6.10.0080.00413.89
5.6.00.0080.00814.19
5.5.380.0070.00310.90
5.5.370.0000.00810.90
5.5.360.0030.00310.90
5.5.350.1880.01815.63
5.5.340.0080.03514.46
5.5.330.0050.02715.69
5.5.320.0120.02415.63
5.5.310.0220.04015.63
5.5.300.0120.03414.61
5.5.290.0060.04214.49
5.5.280.0070.02016.00
5.5.270.0050.03715.95
5.5.260.0070.04316.06
5.5.250.0050.04515.91
5.5.240.0140.03515.47
5.5.230.0090.00010.90
5.5.220.0030.00310.90
5.5.210.0030.00311.04
5.5.200.0040.00411.00
5.5.190.0000.00510.90
5.5.180.0080.00410.90
5.5.170.0000.00510.93
5.5.160.0080.00010.99
5.5.150.0060.00610.94
5.5.140.0060.00310.90
5.5.130.0000.00910.90
5.5.120.0030.00310.90
5.5.110.0000.01011.07
5.5.100.0000.00611.18
5.5.90.0030.00711.16
5.5.80.0000.00710.90
5.5.70.0000.01211.09
5.5.60.0000.00610.90
5.5.50.0050.00010.90
5.5.40.0050.00510.95
5.5.30.0040.00411.12
5.5.20.0030.00311.05
5.5.10.0030.01010.91
5.5.00.0030.00610.94
5.4.450.1830.02115.17
5.4.440.1720.02415.16
5.4.430.1850.02215.08
5.4.420.1870.02315.26
5.4.410.1860.02015.12
5.4.400.1670.02214.94
5.4.390.1420.02214.87
5.4.380.1900.01514.88
5.4.370.1680.02315.02
5.4.360.1870.02515.11
5.4.350.1770.01815.10
5.4.340.1160.03414.98
5.4.330.0030.00610.90
5.4.320.2150.02414.92
5.4.310.2180.02314.88
5.4.300.2200.02315.13
5.4.290.2200.02115.04
5.4.280.2130.01914.92
5.4.270.2230.01815.06
5.4.260.1900.02214.99
5.4.250.0200.03215.01
5.4.240.0980.03315.13
5.4.230.2030.02014.85
5.4.220.2200.01815.10
5.4.210.1980.02015.03
5.4.200.2230.02714.85
5.4.190.2320.02714.88
5.4.180.2030.02014.93
5.4.170.2180.02215.06
5.4.160.2140.02014.91
5.4.150.2180.02215.02
5.4.140.2130.02213.70
5.4.130.2180.02013.63
5.4.120.2110.01713.68
5.4.110.2200.02113.59
5.4.100.2180.02113.72
5.4.90.2210.01713.63
5.4.80.1400.02013.72
5.4.70.1280.01813.63
5.4.60.0070.00311.02
5.4.50.0060.00610.90
5.4.40.0050.00010.90
5.4.30.0000.00510.90
5.4.20.0000.01010.98
5.4.10.0000.01010.90
5.4.00.0000.00510.90

preferences:
48.85 ms | 401 KiB | 5 Q