3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { private $name; private function __construct($name) { $this->name = $name; } public static function register($name) { return new Person($name); } } $person = Person::register("gnutix");

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.0180.00416.75
8.3.50.0090.01122.05
8.3.40.0110.00718.76
8.3.30.0070.00718.96
8.3.20.0040.00420.14
8.3.10.0080.00023.61
8.3.00.0060.00319.13
8.2.180.0130.00618.13
8.2.170.0070.00722.96
8.2.160.0150.00418.79
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0150.00326.16
8.2.120.0040.00422.08
8.2.110.0060.00322.24
8.2.100.0110.00017.78
8.2.90.0040.00419.14
8.2.80.0080.00017.97
8.2.70.0000.00917.50
8.2.60.0040.00419.53
8.2.50.0040.00418.07
8.2.40.0040.00419.89
8.2.30.0040.00419.78
8.2.20.0040.00417.60
8.2.10.0040.00417.93
8.2.00.0030.00617.68
8.1.280.0160.00325.92
8.1.270.0040.00423.91
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.83
8.1.230.0060.00619.16
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0000.00917.13
8.1.190.0080.00017.18
8.1.180.0110.00018.10
8.1.170.0050.00318.53
8.1.160.0000.01021.93
8.1.150.0040.00418.53
8.1.140.0050.00317.41
8.1.130.0000.00717.70
8.1.120.0000.00717.42
8.1.110.0040.00417.36
8.1.100.0070.00017.32
8.1.90.0000.00717.25
8.1.80.0030.00517.32
8.1.70.0070.00017.27
8.1.60.0060.00317.57
8.1.50.0040.00417.52
8.1.40.0040.00417.42
8.1.30.0040.00417.52
8.1.20.0070.00017.54
8.1.10.0000.00717.34
8.1.00.0030.00617.41
8.0.300.0000.00720.45
8.0.290.0000.00817.16
8.0.280.0000.00718.38
8.0.270.0030.00317.18
8.0.260.0080.00017.19
8.0.250.0000.00716.90
8.0.240.0030.00316.78
8.0.230.0050.00216.75
8.0.220.0030.00316.81
8.0.210.0030.00616.71
8.0.200.0000.00816.81
8.0.190.0050.00316.89
8.0.180.0040.00416.85
8.0.170.0000.00816.75
8.0.160.0040.00316.87
8.0.150.0030.00316.78
8.0.140.0040.00416.68
8.0.130.0030.00313.25
8.0.120.0050.00216.78
8.0.110.0000.00816.78
8.0.100.0050.00316.85
8.0.90.0040.00416.93
8.0.80.0080.00816.86
8.0.70.0040.00416.65
8.0.60.0000.00816.75
8.0.50.0050.00216.80
8.0.30.0070.01216.96
8.0.20.0110.00817.40
8.0.10.0000.00817.06
8.0.00.0110.01016.70
7.4.330.0000.00515.17
7.4.320.0000.00716.51
7.4.300.0030.00316.48
7.4.290.0000.00816.55
7.4.280.0040.00416.49
7.4.270.0030.00316.59
7.4.260.0000.00716.57
7.4.250.0050.00316.61
7.4.240.0020.00516.54
7.4.230.0030.00316.67
7.4.220.0090.00916.64
7.4.210.0060.00816.50
7.4.200.0000.00716.63
7.4.190.0030.00316.46
7.4.160.0100.00616.49
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0110.00716.48
7.4.120.0070.01016.52
7.4.110.0130.00316.41
7.4.100.0090.00916.59
7.4.90.0070.01116.48
7.4.80.0110.00619.39
7.4.70.0060.01016.52
7.4.60.0130.00316.38
7.4.50.0030.00316.26
7.4.40.0040.01222.77
7.4.30.0090.00616.40
7.4.00.0060.00714.73
7.3.330.0000.00513.20
7.3.320.0030.00313.10
7.3.310.0040.00416.19
7.3.300.0000.00716.19
7.3.290.0070.01016.13
7.3.280.0100.00716.20
7.3.270.0030.01317.40
7.3.260.0040.01416.37
7.3.250.0090.00816.19
7.3.240.0170.00316.19
7.3.230.0130.00716.39
7.3.210.0120.00616.51
7.3.200.0150.00319.39
7.3.190.0130.00616.22
7.3.180.0070.00716.32
7.3.170.0060.00916.27
7.3.160.0110.01116.50
7.3.120.0080.00714.57
7.3.110.0140.00314.61
7.3.100.0090.00614.43
7.3.90.0000.01414.60
7.3.80.0070.00714.63
7.3.70.0130.00014.25
7.3.60.0070.00314.80
7.3.50.0060.00914.80
7.3.40.0040.00814.45
7.3.30.0030.01014.44
7.3.20.0040.01116.69
7.3.10.0080.00716.33
7.3.00.0050.01116.31
7.2.330.0090.00916.66
7.2.320.0080.00816.68
7.2.310.0130.00316.48
7.2.300.0060.00916.52
7.2.290.0060.01616.68
7.2.250.0030.01714.70
7.2.240.0100.01015.16
7.2.230.0060.00614.95
7.2.220.0080.00815.05
7.2.210.0030.01315.21
7.2.200.0060.00615.16
7.2.190.0030.01314.88
7.2.180.0100.00714.93
7.2.170.0090.00314.73
7.2.130.0070.01316.18
7.2.120.0060.01316.70
7.2.110.0080.00416.41
7.2.100.0110.00316.61
7.2.90.0040.00716.80
7.2.80.0110.00716.37
7.2.70.0190.00316.56
7.2.60.0070.00816.53
7.2.50.0100.01016.68
7.2.40.0100.00716.71
7.2.30.0110.00416.49
7.2.20.0030.01216.47
7.2.10.0150.00616.75
7.2.00.0080.01117.91
7.1.330.0030.01215.82
7.1.320.0090.00615.48
7.1.310.0040.01115.80
7.1.300.0140.00015.71
7.1.290.0000.01215.50
7.1.280.0000.01515.71
7.1.270.0090.00315.84
7.1.260.0060.00615.66
7.1.250.0160.00815.22
7.1.100.0070.00718.14
7.1.70.0030.00317.22
7.1.60.0030.01719.46
7.1.50.0030.00916.66
7.1.00.0070.07022.34
7.0.200.0050.00516.69
7.0.140.0000.07722.00
7.0.60.0070.07720.02
7.0.50.0000.05317.88
7.0.40.0130.04720.31
7.0.30.0300.07720.17
7.0.20.0330.03720.07
7.0.10.0100.08320.10
7.0.00.0130.07720.41
5.6.280.0100.07021.13
5.6.210.0070.08320.55
5.6.200.0030.08318.15
5.6.190.0030.04320.41
5.6.180.0230.03720.55
5.6.170.0270.06320.39
5.6.160.0070.05320.52
5.6.150.0100.08318.19
5.6.140.0100.08018.18
5.6.130.0100.07718.11
5.6.120.0030.04721.00
5.6.110.0100.08021.00
5.6.100.0000.04721.11
5.6.90.0130.07721.14
5.6.80.0000.07720.44
5.6.70.4200.03720.38
5.5.350.0230.07320.45
5.5.340.0070.07017.94
5.5.330.0130.03320.13
5.5.320.0270.03720.28
5.5.310.0200.07020.35
5.5.300.0070.06018.08
5.5.290.0100.07718.00
5.5.280.0130.08020.80
5.5.270.0070.04720.97
5.5.260.0070.08720.84
5.5.250.0170.07020.72
5.5.240.0230.05720.12
5.4.450.0770.06019.16
5.4.440.0500.07019.16
5.4.430.0800.05719.59
5.4.420.0870.05719.60
5.4.410.0970.04319.46
5.4.400.0130.04719.25
5.4.390.0330.06319.13
5.4.380.0400.04318.63
5.4.370.0600.05318.50
5.4.360.0370.07018.53
5.4.350.0400.05718.80
5.4.340.0370.05318.47
5.4.320.0030.04212.51
5.4.310.0060.03912.50
5.4.300.0070.03612.51
5.4.290.0070.06112.48
5.4.280.0080.05812.38
5.4.270.0110.07612.38
5.4.260.0150.05812.38
5.4.250.0160.10312.39
5.4.240.0160.06612.38
5.4.230.0100.06112.37
5.4.220.0080.05812.38
5.4.210.0070.05312.38
5.4.200.0080.05412.37
5.4.190.0060.05512.37
5.4.180.0070.05212.37
5.4.170.0140.05212.38
5.4.160.0150.04812.38
5.4.150.0120.06212.37
5.4.140.0070.05512.06
5.4.130.0060.05012.04
5.4.120.0090.05312.01
5.4.110.0070.05212.00
5.4.100.0060.05312.00
5.4.90.0100.05712.00
5.4.80.0060.05812.00
5.4.70.0070.05212.00
5.4.60.0060.05211.99
5.4.50.0060.04312.00
5.4.40.0070.05211.99
5.4.30.0090.05011.98
5.4.20.0070.05211.98
5.4.10.0140.05111.98
5.4.00.0080.03811.46
5.3.290.0060.04112.80
5.3.280.0060.04312.71
5.3.270.0070.04212.73
5.3.260.0030.04412.71
5.3.250.0060.04312.72
5.3.240.0110.05112.72
5.3.230.0090.05212.71
5.3.220.0040.05712.68
5.3.210.0110.07312.68
5.3.200.0080.05612.68
5.3.190.0120.04512.68
5.3.180.0160.09512.67
5.3.170.0130.05812.67
5.3.160.0070.04112.67
5.3.150.0100.04412.68
5.3.140.0070.04312.66
5.3.130.0100.04312.66
5.3.120.0120.06012.66
5.3.110.0050.06912.66
5.3.100.0160.07112.11
5.3.90.0160.09012.10
5.3.80.0080.06112.09
5.3.70.0130.07112.09
5.3.60.0120.08112.07
5.3.50.0070.06712.03
5.3.40.0160.08512.02
5.3.30.0050.05311.99
5.3.20.0090.06311.76
5.3.10.0080.05311.73
5.3.00.0110.06711.71
5.2.170.0070.0629.23
5.2.160.0050.0399.22
5.2.150.0060.0369.23
5.2.140.0040.0379.22
5.2.130.0070.0339.18
5.2.120.0050.0339.18
5.2.110.0080.0329.19
5.2.100.0060.0319.18
5.2.90.0110.0289.18
5.2.80.0120.0729.18
5.2.70.0120.0439.18
5.2.60.0060.0349.13
5.2.50.0020.0359.09
5.2.40.0040.0319.07
5.2.30.0050.0339.05
5.2.20.0060.0319.04
5.2.10.0020.0368.95
5.2.00.0050.0308.80
5.1.60.0080.0228.09
5.1.50.0060.0328.09
5.1.40.0070.0448.07
5.1.30.0050.0518.42
5.1.20.0120.0758.44
5.1.10.0140.0588.16
5.1.00.0120.0548.16
5.0.50.0090.0526.64
5.0.40.0080.0276.50
5.0.30.0080.0616.31
5.0.20.0090.0546.29
5.0.10.0130.0416.26
5.0.00.0110.0486.25
4.4.90.0040.0224.78
4.4.80.0050.0214.75
4.4.70.0050.0394.75
4.4.60.0070.0214.76
4.4.50.0030.0234.77
4.4.40.0070.0444.71
4.4.30.0050.0274.76
4.4.20.0090.0404.84
4.4.10.0040.0374.85
4.4.00.0070.0524.76
4.3.110.0070.0214.67
4.3.100.0050.0234.66
4.3.90.0060.0504.64
4.3.80.0090.0434.58
4.3.70.0090.0364.63
4.3.60.0040.0234.63
4.3.50.0030.0324.63
4.3.40.0060.0574.54
4.3.30.0060.0303.30
4.3.20.0070.0393.28
4.3.10.0020.0363.24
4.3.00.0030.03010.54

preferences:
40.11 ms | 401 KiB | 5 Q