3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IAmImmutable { private $name; private function __construct($name) { $this->name = $name; } public function getName() { return $this->name; } } $object = new IAmImmutable('Peter'); var_dump($object->getName()); $object->__construct('Bob'); var_dump($object->getName());

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.0110.00818.56
8.3.50.0110.00921.92
8.3.40.0070.01018.69
8.3.30.0100.00718.67
8.3.20.0140.00020.26
8.3.10.0080.00021.52
8.3.00.0040.00419.38
8.2.180.0160.00318.16
8.2.170.0120.00322.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0060.00317.38
8.2.120.0000.00726.35
8.2.110.0060.00322.25
8.2.100.0040.00717.50
8.2.90.0080.00019.23
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0080.00017.80
8.2.50.0030.00518.07
8.2.40.0040.00419.32
8.2.30.0030.00520.57
8.2.20.0040.00417.62
8.2.10.0040.00418.02
8.2.00.0000.00717.93
8.1.280.0110.00825.92
8.1.270.0090.00023.77
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00422.11
8.1.230.0040.00817.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.13
8.1.190.0040.00417.23
8.1.180.0050.00218.10
8.1.170.0040.00418.52
8.1.160.0050.00221.93
8.1.150.0040.00418.69
8.1.140.0030.00619.51
8.1.130.0040.00417.55
8.1.120.0000.00717.29
8.1.110.0040.00417.35
8.1.100.0000.00717.36
8.1.90.0050.00217.23
8.1.80.0030.00617.30
8.1.70.0000.00717.32
8.1.60.0030.00517.38
8.1.50.0060.00317.48
8.1.40.0050.00317.51
8.1.30.0040.00417.45
8.1.20.0000.00817.47
8.1.10.0040.00417.52
8.1.00.0030.00617.43
8.0.300.0070.00018.77
8.0.290.0070.00016.61
8.0.280.0000.00818.51
8.0.270.0030.00317.13
8.0.260.0060.00017.26
8.0.250.0070.00016.98
8.0.240.0070.00016.91
8.0.230.0000.00716.86
8.0.220.0030.00616.95
8.0.210.0040.00416.93
8.0.200.0030.00316.95
8.0.190.0040.00416.93
8.0.180.0040.00416.97
8.0.170.0000.00816.91
8.0.160.0030.00316.98
8.0.150.0040.00416.74
8.0.140.0000.00716.87
8.0.130.0030.00313.34
8.0.120.0050.00316.84
8.0.110.0040.00416.88
8.0.100.0040.00416.77
8.0.90.0080.00016.86
8.0.80.0030.01216.86
8.0.70.0040.00416.89
8.0.60.0050.00216.80
8.0.50.0040.00416.73
8.0.30.0060.01117.06
8.0.20.0140.00717.40
8.0.10.0040.00416.80
8.0.00.0090.00916.71
7.4.330.0050.00016.65
7.4.320.0000.00616.44
7.4.300.0030.00316.31
7.4.290.0070.00016.47
7.4.280.0080.00016.52
7.4.270.0030.00316.58
7.4.260.0000.00716.34
7.4.250.0030.00316.52
7.4.240.0040.00416.50
7.4.230.0070.00016.44
7.4.220.0120.01216.63
7.4.210.0050.01016.48
7.4.200.0030.00316.21
7.4.160.0000.01716.45
7.4.150.0070.01117.40
7.4.140.0080.01117.86
7.4.130.0110.00716.57
7.4.120.0090.00916.37
7.4.110.0100.01316.50
7.4.100.0030.01816.68
7.4.90.0350.02216.48
7.4.80.0140.00719.39
7.4.70.0060.01316.54
7.4.60.0120.00916.52
7.4.50.0030.00916.44
7.4.40.0060.01016.35
7.4.30.0120.00416.50
7.4.10.0130.00614.81
7.4.00.0080.00814.83
7.3.330.0030.00313.28
7.3.320.0030.00313.30
7.3.310.0020.00516.36
7.3.300.0000.00716.22
7.3.290.0000.00616.17
7.3.280.0040.01116.27
7.3.270.0250.02217.40
7.3.260.0110.00716.37
7.3.250.0140.00616.38
7.3.240.0080.00916.46
7.3.230.0070.01016.39
7.3.210.0100.00616.28
7.3.200.0100.00616.56
7.3.190.0110.00616.33
7.3.180.0100.00716.53
7.3.170.0070.01016.58
7.3.160.0080.00816.29
7.3.130.0100.01014.92
7.3.120.0040.01414.81
7.3.110.0070.01014.68
7.3.100.0070.00714.59
7.3.90.0040.01114.75
7.3.80.0110.00714.97
7.3.70.0100.01014.77
7.3.60.0030.01014.86
7.3.50.0000.01714.82
7.3.40.0060.01214.93
7.3.30.0030.01214.86
7.3.20.0030.00616.56
7.3.10.0090.00616.45
7.3.00.0100.00316.29
7.2.330.0030.01316.49
7.2.320.0100.00916.21
7.2.310.0100.00716.57
7.2.300.0100.01016.27
7.2.290.0080.00816.55
7.2.260.0060.01215.12
7.2.250.0040.01414.75
7.2.240.0070.00614.77
7.2.230.0060.00614.86
7.2.220.0090.00614.54
7.2.210.0070.01414.94
7.2.200.0100.00314.88
7.2.190.0070.00715.00
7.2.180.0100.00614.86
7.2.170.0030.01414.61
7.2.160.0070.00714.97
7.2.150.0080.00416.64
7.2.140.0090.00616.66
7.2.130.0030.00916.77
7.2.120.0000.00816.80
7.2.110.0070.00716.71
7.2.100.0060.00616.95
7.2.90.0030.01016.80
7.2.80.0060.00616.46
7.2.70.0030.01016.74
7.2.60.0020.01516.80
7.2.50.0060.01016.69
7.2.40.0130.00316.85
7.2.30.0090.00616.67
7.2.20.0000.01516.75
7.2.10.0100.00316.72
7.2.00.0110.00717.96
7.1.330.0080.00815.57
7.1.320.0110.00415.73
7.1.310.0040.01515.64
7.1.300.0000.01315.64
7.1.290.0030.01415.61
7.1.280.0030.01515.51
7.1.270.0050.00515.27
7.1.260.0070.00715.54
7.1.250.0000.01215.28
7.1.240.0040.00715.63
7.1.230.0070.00715.62
7.1.220.0060.00615.64
7.1.210.0030.00715.43
7.1.200.0060.00415.65
7.1.190.0080.00615.59
7.1.180.0040.00415.51
7.1.170.0040.01115.57
7.1.160.0030.01015.75
7.1.150.0090.00615.58
7.1.140.0070.00715.75
7.1.130.0100.00315.65
7.1.120.0030.00715.72
7.1.110.0030.00615.79
7.1.100.0040.00816.62
7.1.90.0040.01115.63
7.1.80.0090.00015.70
7.1.70.0070.00516.35
7.1.60.0070.01017.57
7.1.50.0110.00716.26
7.1.40.0080.00415.34
7.1.30.0070.00715.59
7.1.20.0040.01115.47
7.1.10.0030.01015.52
7.1.00.0080.03818.99
7.0.330.0030.00615.28
7.0.320.0080.00815.35
7.0.310.0090.00315.46
7.0.300.0070.00715.32
7.0.290.0040.01115.10
7.0.280.0000.01515.20
7.0.270.0030.01015.07
7.0.260.0070.00715.21
7.0.250.0060.00315.13
7.0.240.0100.00315.46
7.0.230.0070.00715.45
7.0.220.0040.00415.23
7.0.210.0030.00915.32
7.0.200.0060.00316.04
7.0.190.0000.01715.33
7.0.180.0080.00015.48
7.0.170.0040.00715.48
7.0.160.0080.00615.32
7.0.150.0100.00415.39
7.0.140.0000.00915.35
7.0.130.0000.00815.25
7.0.120.0070.00715.29
7.0.110.0000.01115.12
7.0.100.0030.00715.43
7.0.90.0000.00915.22
7.0.80.0040.00814.91
7.0.70.0060.00315.36
7.0.60.0050.04317.68
7.0.50.0060.02016.58
7.0.40.0000.03016.78
7.0.30.0050.02916.79
7.0.20.0150.03816.63
7.0.10.0090.04316.80
7.0.00.0030.04816.82
5.6.400.0090.00914.29
5.6.390.0130.00014.12
5.6.380.0030.01414.43
5.6.370.0110.00014.09
5.6.360.0070.00414.11
5.6.350.0080.00814.35
5.6.340.0000.01113.91
5.6.330.0030.00914.28
5.6.320.0070.00314.34
5.6.310.0000.01114.18
5.6.300.0090.00614.29
5.6.290.0080.00314.26
5.6.280.0070.02017.71
5.6.270.0100.00014.14
5.6.260.0030.00714.33
5.6.250.0040.01114.15
5.6.240.0030.00614.25
5.6.230.0070.00714.30
5.6.220.0030.00914.22
5.6.210.0100.04217.56
5.6.200.0030.02816.26
5.6.190.0020.05317.35
5.6.180.0220.02317.42
5.6.170.0170.04117.41
5.6.160.0090.03517.42
5.6.150.0050.04716.12
5.6.140.0040.02416.12
5.6.130.0060.04316.37
5.6.120.0120.03317.55
5.6.110.0040.02817.64
5.6.100.0080.04117.74
5.6.90.0030.04517.61
5.6.80.0070.04217.24
5.6.70.0000.01414.14
5.6.60.0040.00414.27
5.6.50.0100.00314.14
5.6.40.0030.01014.09
5.6.30.0040.00414.20
5.6.20.0120.00013.91
5.6.10.0130.00314.11
5.6.00.0040.00814.01
5.5.380.0110.00414.11
5.5.370.0140.00014.18
5.5.360.0060.00914.08
5.5.350.0220.03517.17
5.5.340.0030.04015.92
5.5.330.0090.03017.13
5.5.320.0150.04017.28
5.5.310.0150.02417.22
5.5.300.0080.01916.03
5.5.290.0050.03715.94
5.5.280.0050.02317.58
5.5.270.0100.04417.21
5.5.260.0030.03017.39
5.5.250.0020.03917.27
5.5.240.0140.04217.12
5.5.230.0000.01014.07
5.5.220.0070.00713.83
5.5.210.0040.00814.07
5.5.200.0070.00314.10
5.5.190.0080.00413.98
5.5.180.0030.01214.36
5.5.170.0070.01013.99
5.5.160.0040.00413.82
5.5.150.0030.00613.95
5.5.140.0070.00714.22
5.5.130.0000.00813.99
5.5.120.0070.00713.88
5.5.110.0090.00313.93
5.5.100.0130.00314.23
5.5.90.0070.00714.33
5.5.80.0000.01214.41
5.5.70.0100.00313.95
5.5.60.0040.01114.29
5.5.50.0040.01113.75
5.5.40.0040.00814.22
5.5.30.0070.00714.12
5.5.20.0070.00714.20
5.5.10.0030.00914.38
5.5.00.0110.00314.28

preferences:
42.32 ms | 401 KiB | 5 Q