3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { protected $name = "franz"; public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } } class modify { public function __construct($a) { $a->setName('john'); } } $a = new a; print $a->getName(); $mod = new modify($a); print $a->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.40.0160.00018.73
8.3.30.0100.00320.30
8.3.20.0080.00020.57
8.3.10.0080.00020.92
8.3.00.0110.00023.71
8.2.170.0120.00922.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0140.00026.16
8.2.120.0070.00021.11
8.2.110.0060.00319.12
8.2.100.0000.01217.91
8.2.90.0020.00519.05
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00819.37
8.2.20.0000.00717.53
8.2.10.0050.00317.57
8.2.00.0080.00017.52
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00322.47
8.1.230.0070.00420.74
8.1.220.0050.00318.77
8.1.210.0000.00819.04
8.1.200.0000.01017.00
8.1.190.0040.00417.41
8.1.180.0080.00018.10
8.1.170.0000.00918.57
8.1.160.0040.00418.79
8.1.150.0000.00818.53
8.1.140.0040.00417.43
8.1.130.0000.00717.70
8.1.120.0040.00417.45
8.1.110.0050.00317.43
8.1.100.0070.00017.38
8.1.90.0000.00717.36
8.1.80.0040.00317.44
8.1.70.0000.00717.41
8.1.60.0100.00017.59
8.1.50.0040.00417.37
8.1.40.0080.00017.50
8.1.30.0080.00017.68
8.1.20.0000.00817.55
8.1.10.0030.00617.44
8.1.00.0000.00817.52
8.0.300.0070.00019.88
8.0.290.0040.00417.18
8.0.280.0040.00418.40
8.0.270.0000.00717.13
8.0.260.0030.00316.88
8.0.250.0000.00816.96
8.0.240.0000.00717.01
8.0.230.0030.00316.75
8.0.220.0030.00316.89
8.0.210.0050.00316.76
8.0.200.0030.00316.87
8.0.190.0040.00416.75
8.0.180.0030.00416.72
8.0.170.0070.00016.81
8.0.160.0030.00316.83
8.0.150.0040.00416.90
8.0.140.0040.00416.70
8.0.130.0030.00313.25
8.0.120.0030.00516.79
8.0.110.0040.00416.82
8.0.100.0000.00816.88
8.0.90.0000.00716.70
8.0.80.0110.00616.83
8.0.70.0050.00316.79
8.0.60.0070.00016.91
8.0.50.0040.00416.89
8.0.30.0120.00716.99
8.0.20.0170.00217.40
8.0.10.0070.00016.93
8.0.00.0110.00916.70
7.4.330.0000.00514.91
7.4.320.0040.00416.45
7.4.300.0000.00616.58
7.4.290.0000.00716.65
7.4.280.0030.00316.62
7.4.270.0030.00316.58
7.4.260.0030.00313.19
7.4.250.0040.00416.40
7.4.240.0040.00316.61
7.4.230.0040.00416.48
7.4.220.0110.00716.57
7.4.210.0100.00616.62
7.4.200.0070.00016.66
7.4.190.0040.00416.55
7.4.160.0070.01016.41
7.4.150.0170.00717.40
7.4.140.0090.00817.86
7.4.130.0110.00816.54
7.4.120.0080.00816.48
7.4.110.0030.01316.54
7.4.100.0160.00616.46
7.4.90.0150.00316.55
7.4.80.0120.00919.39
7.4.70.0030.01316.30
7.4.60.0130.01016.66
7.4.50.0060.00316.62
7.4.40.0060.00622.77
7.4.30.0090.00616.27
7.4.10.0070.01314.99
7.4.00.0080.01015.06
7.3.330.0000.00513.20
7.3.320.0000.00513.20
7.3.310.0070.00016.28
7.3.300.0040.00416.23
7.3.290.0030.01016.28
7.3.280.0070.01016.24
7.3.270.0100.01017.40
7.3.260.0090.00818.24
7.3.250.0140.00616.49
7.3.240.0140.00416.48
7.3.230.0070.01716.60
7.3.210.0120.00616.48
7.3.200.0140.00319.39
7.3.190.0110.01216.27
7.3.180.0070.01316.30
7.3.170.0070.01316.27
7.3.160.0100.00616.42
7.3.130.0090.00914.75
7.3.120.0040.01314.73
7.3.110.0060.01014.68
7.3.100.0090.00614.78
7.3.90.0100.00014.53
7.3.80.0060.00614.68
7.3.70.0030.00614.82
7.3.60.0090.00614.93
7.3.50.0040.00814.52
7.3.40.0030.01014.82
7.3.30.0030.01314.48
7.3.20.0030.01016.48
7.3.10.0060.00816.46
7.3.00.0030.01016.36
7.2.330.0170.00716.72
7.2.320.0090.01216.60
7.2.310.0070.01716.81
7.2.300.0090.01316.33
7.2.290.0000.01616.63
7.2.260.0120.00615.22
7.2.250.0060.01315.19
7.2.240.0040.01114.84
7.2.230.0060.00315.03
7.2.220.0030.01215.14
7.2.210.0040.01114.68
7.2.200.0120.00015.22
7.2.190.0030.01215.01
7.2.180.0060.00315.12
7.2.170.0070.00714.94
7.2.160.0130.00315.18
7.2.150.0060.00916.99
7.2.140.0070.01117.10
7.2.130.0070.00917.08
7.2.120.0060.00916.76
7.2.110.0050.01116.81
7.2.100.0060.00816.96
7.2.90.0070.00516.83
7.2.80.0070.00716.81
7.2.70.0080.00716.90
7.2.60.0060.00616.94
7.2.50.0050.00717.07
7.2.40.0060.00816.95
7.2.30.0050.00916.86
7.2.20.0050.00716.90
7.2.10.0080.00816.92
7.2.00.0060.00617.73
7.1.330.0030.00915.54
7.1.320.0000.01115.81
7.1.310.0030.01016.08
7.1.300.0060.00915.48
7.1.290.0060.00315.60
7.1.280.0030.01315.74
7.1.270.0070.00715.77
7.1.260.0000.01315.78
7.1.250.0040.00615.78
7.1.240.0070.00715.63
7.1.230.0110.00415.82
7.1.220.0030.00615.78
7.1.210.0070.00715.77
7.1.200.0050.00815.57
7.1.190.0030.01015.57
7.1.180.0040.00715.75
7.1.170.0040.00415.46
7.1.160.0090.00615.59
7.1.150.0040.01115.71
7.1.140.0030.00715.69
7.1.130.0060.00315.82
7.1.120.0070.00715.39
7.1.110.0040.01415.67
7.1.100.0000.01216.67
7.1.90.0000.01215.71
7.1.80.0100.00615.81
7.1.70.0060.00616.47
7.1.60.0070.01217.41
7.1.50.0050.01416.19
7.1.40.0030.00615.55
7.1.30.0000.01015.50
7.1.20.0070.00715.84
7.1.10.0070.00615.66
7.1.00.0030.04219.17
7.0.330.0050.00515.32
7.0.320.0000.00815.43
7.0.310.0030.00915.40
7.0.300.0090.00015.44
7.0.290.0040.00815.16
7.0.280.0050.00515.39
7.0.270.0060.00315.11
7.0.260.0110.00415.13
7.0.250.0080.00315.30
7.0.240.0030.01015.53
7.0.230.0030.00715.57
7.0.220.0040.00715.24
7.0.210.0030.00915.21
7.0.200.0020.00816.03
7.0.190.0030.00615.49
7.0.180.0030.00915.50
7.0.170.0040.01115.37
7.0.160.0030.01015.22
7.0.150.0040.00715.16
7.0.140.0020.04418.70
7.0.130.0030.00515.43
7.0.120.0100.00315.61
7.0.110.0160.00015.37
7.0.100.0050.04117.64
7.0.90.0080.03017.69
7.0.80.0150.04317.57
7.0.70.0110.04617.58
7.0.60.0170.04317.66
7.0.50.0200.02817.94
7.0.40.0060.04516.76
7.0.30.0080.04516.69
7.0.20.0080.03316.76
7.0.10.0090.04416.77
7.0.00.0150.04016.70
5.6.400.0040.00814.44
5.6.390.0070.00714.70
5.6.380.0030.01414.18
5.6.370.0030.01414.44
5.6.360.0110.00414.31
5.6.350.0070.00714.60
5.6.340.0060.00914.49
5.6.330.0050.00314.70
5.6.320.0060.00914.68
5.6.310.0110.00314.24
5.6.300.0030.00914.56
5.6.290.0030.00614.32
5.6.280.0030.04017.84
5.6.270.0140.00014.56
5.6.260.0030.01014.39
5.6.250.0070.03017.52
5.6.240.0070.03517.30
5.6.230.0080.03717.51
5.6.220.0030.03417.57
5.6.210.0050.04517.37
5.6.200.0050.03517.70
5.6.190.0070.03517.71
5.6.180.0060.03917.70
5.6.170.0040.04417.59
5.6.160.0070.05017.63
5.6.150.0080.04217.60
5.6.140.0110.04517.66
5.6.130.0100.02717.70
5.6.120.0070.03017.62
5.6.110.0100.04017.78
5.6.100.0080.03117.61
5.6.90.0030.05017.62
5.6.80.0080.02917.34
5.6.70.0080.04517.35
5.6.60.0030.04817.39
5.6.50.0050.03717.30
5.6.40.0060.02717.32
5.6.30.0100.02317.25
5.6.20.0050.04117.32
5.6.10.0100.03817.36
5.6.00.0090.03717.50
5.5.380.0100.03917.34
5.5.370.0080.03917.40
5.5.360.0100.04117.37
5.5.350.0100.04217.41
5.5.340.0090.04017.69
5.5.330.0050.04317.64
5.5.320.0070.04617.63
5.5.310.0030.04417.44
5.5.300.0070.04617.49
5.5.290.0080.04017.66
5.5.280.0050.03117.71
5.5.270.0080.03017.52
5.5.260.0080.03817.45
5.5.250.0060.03817.47
5.5.240.0130.02317.25
5.5.230.0060.04917.20
5.5.220.0150.03917.20
5.5.210.0120.03317.25
5.5.200.0050.04517.04
5.5.190.0080.03617.23
5.5.180.0060.02617.16
5.5.170.0070.00714.18
5.5.160.0070.02517.33
5.5.150.0070.04417.34
5.5.140.0100.03717.17
5.5.130.0090.04317.30
5.5.120.0080.04117.25
5.5.110.0050.03717.26
5.5.100.0090.04317.12
5.5.90.0120.03717.28
5.5.80.0030.04717.14
5.5.70.0110.02317.11
5.5.60.0080.04217.13
5.5.50.0030.04617.15
5.5.40.0050.04317.22
5.5.30.0060.04317.28
5.5.20.0060.04617.09
5.5.10.0150.03717.06
5.5.00.0080.03317.21
5.4.450.0060.04516.28
5.4.440.0060.02616.24
5.4.430.0070.04216.18
5.4.420.0060.03616.29
5.4.410.0030.04216.21
5.4.400.0060.03616.14
5.4.390.0100.04216.11
5.4.380.0030.04016.09
5.4.370.0030.04315.99
5.4.360.0060.02616.11
5.4.350.0110.03116.14
5.4.340.0020.04115.98
5.4.330.0000.00813.10
5.4.320.0080.03516.11
5.4.310.0050.04016.16
5.4.300.0070.02015.97
5.4.290.0110.03815.97
5.4.280.0100.04316.11
5.4.270.0100.01816.16
5.4.260.0000.04616.09
5.4.250.0080.04116.07
5.4.240.0100.03816.07
5.4.230.0020.04916.06
5.4.220.0080.04116.14
5.4.210.0050.03516.01
5.4.200.0050.04016.07
5.4.190.0080.04015.98
5.4.180.0050.04116.06
5.4.170.0080.02016.11
5.4.160.0080.04016.14
5.4.150.0050.03716.10
5.4.140.0100.03014.76
5.4.130.0050.01814.77
5.4.120.0020.04114.78
5.4.110.0050.04014.79
5.4.100.0070.03314.74
5.4.90.0030.04314.79
5.4.80.0060.03814.73
5.4.70.0030.04114.83
5.4.60.0060.03614.79
5.4.50.0100.03514.75
5.4.40.0060.03214.80
5.4.30.0070.03814.74
5.4.20.0120.03014.78
5.4.10.0070.03414.72
5.4.00.0100.03214.48
5.3.290.0100.03013.92
5.3.280.0080.03913.84
5.3.270.0080.03313.92
5.3.260.0070.03313.88
5.3.250.0010.02913.84
5.3.240.0050.02813.82
5.3.230.0100.01513.92
5.3.220.0060.02113.83
5.3.210.0030.04013.85
5.3.200.0050.02313.80
5.3.190.0080.02313.79
5.3.180.0080.02113.82
5.3.170.0050.04113.80
5.3.160.0020.04113.88
5.3.150.0100.03513.90
5.3.140.0150.03513.83
5.3.130.0000.03213.89
5.3.120.0050.02713.88
5.3.110.0030.04113.81
5.3.100.0040.03913.59
5.3.90.0020.04113.57
5.3.80.0050.02313.56
5.3.70.0030.02313.59
5.3.60.0080.03113.61
5.3.50.0030.03013.59
5.3.40.0080.02013.52
5.3.30.0070.02513.56
5.3.20.0060.03813.44
5.3.10.0050.03713.45
5.3.00.0020.02513.33
5.2.170.0030.06711.22
5.2.160.0130.02311.22
5.2.150.0170.05711.16
5.2.140.0000.06011.08
5.2.130.0070.03311.17
5.2.120.0100.05711.21
5.2.110.0100.05311.20
5.2.100.0030.03011.09
5.2.90.0030.03711.20
5.2.80.0000.06011.15
5.2.70.0100.05011.03
5.2.60.0070.05710.97
5.2.50.0070.05310.95
5.2.40.0030.06011.02
5.2.30.0070.03310.89
5.2.20.0030.06310.88
5.2.10.0100.04710.87
5.2.00.0100.02710.69
5.1.60.0030.0279.99
5.1.50.0070.05010.07
5.1.40.0030.0309.83
5.1.30.0000.03010.46
5.1.20.0030.05710.42
5.1.10.0030.05310.15
5.1.00.0030.03710.07
5.0.50.0030.0378.82
5.0.40.0000.0238.82
5.0.30.0000.0678.82
5.0.20.0070.0408.82
5.0.10.0000.0408.82
5.0.00.0000.0538.82
4.4.90.0070.0238.82
4.4.80.0070.0338.82
4.4.70.0030.0338.82
4.4.60.0030.0308.82
4.4.50.0000.0208.82
4.4.40.0000.0308.82
4.4.30.0100.0308.82
4.4.20.0000.0378.82
4.4.10.0030.0378.82
4.4.00.0000.0408.82
4.3.110.0000.0338.82
4.3.100.0030.0178.82
4.3.90.0070.0308.82
4.3.80.0000.0538.82
4.3.70.0000.0338.82
4.3.60.0000.0178.82
4.3.50.0070.0308.82
4.3.40.0030.0508.82
4.3.30.0000.0408.82
4.3.20.0030.0338.82
4.3.10.0030.0338.82
4.3.00.0000.0308.82

preferences:
44.79 ms | 400 KiB | 5 Q