3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Users{ public $user; public $pass; function setUser($user){ $this->user = $user; } function setPass($pass){ $this->pass = $pass; } function getUser(){ return $this->user; } function getPass(){ return $this->pass; } } $user = new Users(); $user->setUser('Anderson'); echo $user->getUser();

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.0000.01518.67
8.3.30.0140.00018.84
8.3.20.0040.00418.73
8.3.10.0060.00318.73
8.3.00.0100.00017.25
8.2.170.0000.02022.96
8.2.160.0160.00018.78
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.24
8.2.110.0040.00822.11
8.2.100.0000.01117.72
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0060.00317.46
8.2.60.0080.00018.05
8.2.50.0000.00818.03
8.2.40.0040.00419.35
8.2.30.0030.00517.63
8.2.20.0030.00617.50
8.2.10.0080.00017.56
8.2.00.0070.00017.63
8.1.270.0000.00723.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00620.96
8.1.230.0080.00417.71
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0080.00017.00
8.1.180.0000.00818.10
8.1.170.0000.00817.62
8.1.160.0040.00418.94
8.1.150.0000.00818.61
8.1.140.0000.00717.40
8.1.130.0000.00717.32
8.1.120.0000.00717.43
8.1.110.0040.00417.31
8.1.100.0000.00717.30
8.1.90.0000.00717.42
8.1.80.0070.00017.40
8.1.70.0030.00317.43
8.1.60.0050.00317.59
8.1.50.0000.00917.39
8.1.40.0040.00417.41
8.1.30.0080.00017.52
8.1.20.0000.00817.67
8.1.10.0070.00017.59
8.1.00.0030.00517.59
8.0.300.0030.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.49
8.0.270.0030.00317.31
8.0.260.0000.00616.83
8.0.250.0060.00316.99
8.0.240.0030.00316.94
8.0.230.0040.00316.92
8.0.220.0030.00316.75
8.0.210.0040.00416.84
8.0.200.0030.00316.80
8.0.190.0000.00816.91
8.0.180.0040.00416.90
8.0.170.0030.00516.69
8.0.160.0080.00016.71
8.0.150.0080.00016.83
8.0.140.0050.00316.84
8.0.130.0000.00713.22
8.0.120.0030.00516.70
8.0.110.0050.00216.79
8.0.100.0050.00316.88
8.0.90.0030.00316.66
8.0.80.0130.00316.80
8.0.70.0000.00716.80
8.0.60.0040.00416.80
8.0.50.0000.00816.87
8.0.30.0110.00717.28
8.0.20.0140.00817.28
8.0.10.0070.00017.08
8.0.00.0080.01016.67
7.4.330.0030.00312.88
7.4.320.0030.00316.47
7.4.300.0030.00316.51
7.4.290.0030.00316.61
7.4.280.0080.00016.53
7.4.270.0000.00616.57
7.4.260.0030.00313.31
7.4.250.0040.00416.49
7.4.240.0030.00316.53
7.4.230.0000.00716.31
7.4.220.0070.01316.47
7.4.210.0160.00316.62
7.4.200.0000.00716.60
7.4.190.0040.00416.32
7.4.160.0030.01316.57
7.4.150.0090.00916.55
7.4.140.0070.01117.86
7.4.130.0070.01716.37
7.4.120.0070.01016.57
7.4.110.0080.00816.50
7.4.100.0080.01216.72
7.4.90.0090.00916.59
7.4.80.0030.02019.39
7.4.70.0060.01116.60
7.4.60.0100.00716.37
7.4.50.0000.00516.62
7.4.40.0140.00316.39
7.4.30.0060.00916.25
7.4.10.0110.00714.89
7.4.00.0060.01114.94
7.3.330.0000.00613.10
7.3.320.0060.00013.14
7.3.310.0030.00316.05
7.3.300.0030.00316.25
7.3.290.0070.00716.26
7.3.280.0050.00916.25
7.3.270.0060.01216.40
7.3.260.0100.01316.27
7.3.240.0080.00816.20
7.3.230.0090.00916.41
7.3.210.0030.01316.19
7.3.200.0120.00616.32
7.3.190.0070.01416.23
7.3.180.0030.01316.46
7.3.170.0130.00316.43
7.3.160.0040.01316.52
7.3.130.0030.01514.70
7.3.120.0070.00914.79
7.3.110.0130.00614.54
7.3.100.0070.01014.44
7.3.90.0090.00614.72
7.3.80.0090.00314.87
7.3.70.0120.00014.68
7.3.60.0000.01514.70
7.3.50.0040.00714.70
7.3.40.0050.00514.79
7.3.30.0070.00714.82
7.3.20.0090.00316.43
7.3.10.0070.01016.48
7.3.00.0060.00616.29
7.2.330.0140.00316.64
7.2.320.0030.01616.80
7.2.310.0180.00616.48
7.2.300.0030.01516.55
7.2.290.0040.01316.66
7.2.260.0100.01015.10
7.2.250.0060.01215.25
7.2.240.0000.01315.38
7.2.230.0070.01015.09
7.2.220.0060.00915.02
7.2.210.0030.01315.13
7.2.200.0040.00814.81
7.2.190.0000.01614.74
7.2.180.0000.01815.05
7.2.170.0030.00615.16
7.2.160.0030.00815.03
7.2.150.0000.01516.59
7.2.140.0070.00316.47
7.2.130.0060.00917.07
7.2.120.0060.00916.98
7.2.110.0090.00617.11
7.2.100.0100.00716.82
7.2.90.0070.00716.68
7.2.80.0030.01016.77
7.2.70.0070.00317.08
7.2.60.0100.00316.72
7.2.50.0040.00817.05
7.2.40.0100.00317.11
7.2.30.0030.00716.88
7.2.20.0030.01216.80
7.2.10.0040.01117.19
7.2.00.0050.01018.19
7.1.330.0030.01315.92
7.1.320.0100.00315.72
7.1.310.0060.00615.56
7.1.300.0140.00315.76
7.1.290.0040.00815.54
7.1.280.0090.00315.54
7.1.270.0110.00015.41
7.1.260.0070.00715.77
7.1.250.0030.00615.77
7.1.240.0030.01015.71
7.1.230.0060.00915.57
7.1.220.0000.01415.28
7.1.210.0030.00915.66
7.1.200.0000.01415.67
7.1.190.0040.00715.68
7.1.180.0070.01015.67
7.1.170.0030.00615.91
7.1.160.0030.01015.59
7.1.150.0000.01215.53
7.1.140.0060.00615.73
7.1.130.0070.00715.56
7.1.120.0030.00915.79
7.1.110.0070.00715.70
7.1.100.0050.00816.92
7.1.90.0060.00315.82
7.1.80.0030.00715.88
7.1.70.0040.00716.24
7.1.60.0090.01017.52
7.1.50.0050.00916.27
7.1.40.0100.00615.63
7.1.30.0160.00015.70
7.1.20.0000.01115.49
7.1.10.0100.00415.67
7.1.00.0050.03918.89
7.0.330.0060.00315.37
7.0.320.0030.00715.41
7.0.310.0030.00615.37
7.0.300.0130.00315.11
7.0.290.0030.00915.41
7.0.280.0080.00315.43
7.0.270.0000.01215.13
7.0.260.0030.00715.45
7.0.250.0130.00015.48
7.0.240.0130.00015.32
7.0.230.0060.00615.45
7.0.220.0060.00615.39
7.0.210.0040.00715.44
7.0.200.0050.00416.14
7.0.190.0100.00315.52
7.0.180.0040.00715.15
7.0.170.0030.01315.27
7.0.160.0060.00915.47
7.0.150.0000.01315.50
7.0.140.0050.03718.74
7.0.130.0100.00715.33
7.0.120.0050.04018.60
7.0.110.0000.01015.50
7.0.100.0080.00315.39
7.0.90.0040.01215.45
7.0.80.0090.00915.54
7.0.70.0090.00615.03
7.0.60.0000.03417.62
7.0.50.0110.04016.59
7.0.40.0080.04216.76
7.0.30.0120.02516.82
7.0.20.0200.03716.72
7.0.10.0080.04716.82
7.0.00.0040.03416.85
5.6.400.0090.00614.41
5.6.390.0030.01014.63
5.6.380.0000.01514.34
5.6.370.0070.01014.43
5.6.360.0040.00814.45
5.6.350.0040.00414.44
5.6.340.0000.00914.72
5.6.330.0090.00614.36
5.6.320.0030.01014.30
5.6.310.0000.00914.52
5.6.300.0090.00014.45
5.6.290.0000.01814.29
5.6.280.0030.04317.75
5.6.270.0060.00914.35
5.6.260.0060.00614.27
5.6.250.0040.00714.59
5.6.240.0030.01614.34
5.6.230.0110.00714.63
5.6.220.0040.01114.62
5.6.210.0130.04017.44
5.6.200.0060.02616.20
5.6.190.0100.04717.57
5.6.180.0260.03117.46
5.6.170.0160.04217.59
5.6.160.0070.04117.55
5.6.150.0060.02316.31
5.6.140.0060.02616.22
5.6.130.0030.02916.46
5.6.120.0100.03817.90
5.6.110.0050.02217.56
5.6.100.0120.04317.64
5.6.90.0070.04017.70
5.6.80.0110.04217.40
5.6.70.0040.01114.17
5.6.60.0040.00814.19
5.6.50.0080.00414.50
5.6.40.0070.00714.45
5.6.30.0030.00914.27
5.6.20.0030.01014.13
5.6.10.0110.00314.41
5.6.00.0070.00714.12
5.5.380.0070.01013.99
5.5.370.0060.01014.45
5.5.360.0100.00314.52
5.5.350.2200.02017.55
5.5.340.0060.03716.18
5.5.330.0120.04117.26
5.5.320.0080.03017.27
5.5.310.0150.02917.63
5.5.300.0070.02316.26
5.5.290.0020.03516.22
5.5.280.0050.02817.53
5.5.270.0020.03517.42
5.5.260.0080.04417.52
5.5.250.0080.04117.37
5.5.240.0120.03517.18
5.5.230.0070.00714.27
5.5.220.0060.00314.11
5.5.210.0030.00814.39
5.5.200.0040.00814.13
5.5.190.0000.01413.88
5.5.180.0000.01714.36
5.5.170.0060.00314.07
5.5.160.0070.00714.36
5.5.150.0090.00014.25
5.5.140.0030.01014.47
5.5.130.0070.00714.10
5.5.120.0040.01114.32
5.5.110.0080.00814.27
5.5.100.0080.00814.27
5.5.90.0080.00814.35
5.5.80.0070.00314.32
5.5.70.0040.00414.54
5.5.60.0070.01014.27
5.5.50.0090.00314.27
5.5.40.0060.00613.80
5.5.30.0070.00714.25
5.5.20.0120.00314.41
5.5.10.0080.00314.44
5.5.00.0040.00714.12
5.4.450.0210.02615.59
5.4.440.0270.03615.77
5.4.430.0340.03215.68
5.4.420.0300.02315.77
5.4.410.0300.03415.70
5.4.400.0360.03215.52
5.4.390.0250.03015.53
5.4.380.0290.03315.49
5.4.370.0300.03915.55
5.4.360.0310.03015.48
5.4.350.0270.02515.64
5.4.340.0280.02715.62
5.4.330.0040.00711.98
5.4.320.0250.03315.49
5.4.310.0300.03715.61
5.4.300.0210.02215.53
5.4.290.0220.02315.52
5.4.280.0170.02715.53
5.4.270.0170.02615.53
5.4.260.0200.02015.48
5.4.250.0250.02115.53
5.4.240.0170.02415.48
5.4.230.0180.02315.53
5.4.220.0180.02115.57
5.4.210.0170.02415.41
5.4.200.0240.01915.60
5.4.190.0240.01615.53
5.4.180.0150.02415.39
5.4.170.0220.01815.60
5.4.160.0160.02315.47
5.4.150.0180.02615.60
5.4.140.0200.02114.33
5.4.130.0160.02314.24
5.4.120.0210.02114.18
5.4.110.0180.02014.22
5.4.100.0180.02514.13
5.4.90.0240.01514.27
5.4.80.0170.02214.29
5.4.70.0220.03614.17
5.4.60.0300.02814.16
5.4.50.0230.02814.23
5.4.40.0200.03614.20
5.4.30.0170.02414.18
5.4.20.0380.01314.20
5.4.10.0230.02614.23
5.4.00.0300.03313.88
5.3.290.0270.03713.36
5.3.280.0200.02013.33
5.3.270.0230.01813.33
5.3.260.0150.02513.25
5.3.250.0150.02513.28
5.3.240.0180.02313.35
5.3.230.0180.02213.24
5.3.220.0230.02013.28
5.3.210.0180.02213.36
5.3.200.0170.02213.23
5.3.190.0180.02713.24
5.3.180.0230.02313.23
5.3.170.0220.02313.28
5.3.160.0270.03013.32
5.3.150.0240.03113.31
5.3.140.0270.03013.35
5.3.130.0280.03313.27
5.3.120.0230.02613.28
5.3.110.0280.02513.27
5.3.100.0280.03713.01
5.3.90.0260.03513.09
5.3.80.0270.03012.96
5.3.70.0250.03213.11
5.3.60.0260.03213.02
5.3.50.0220.02412.92
5.3.40.0350.03012.95
5.3.30.0300.02812.95
5.3.20.0240.03712.80
5.3.10.0200.03312.93
5.3.00.0270.02012.92
5.2.170.0430.03011.07
5.2.160.0430.03311.13
5.2.150.0500.05011.08
5.2.140.0430.05011.23
5.2.130.0570.02311.02
5.2.120.0400.03711.23
5.2.110.0370.02311.23
5.2.100.0330.03711.20
5.2.90.0330.03311.27
5.2.80.0400.04711.02
5.2.70.0400.03711.02
5.2.60.0430.05711.27
5.2.50.0500.05310.92
5.2.40.0370.05311.11
5.2.30.0400.05010.89
5.2.20.0370.04710.92
5.2.10.0330.05311.03
5.2.00.0370.03010.77
5.1.60.0300.02710.10
5.1.50.0400.04310.10
5.1.40.0370.02710.10
5.1.30.0370.04310.35
5.1.20.0330.03710.44
5.1.10.0300.04310.10
5.1.00.0400.04310.10
5.0.50.0270.03710.10
5.0.40.0130.04710.10
5.0.30.0230.05710.10
5.0.20.0270.02310.10
5.0.10.0170.02310.10
5.0.00.0170.05710.10
4.4.90.0270.02310.10
4.4.80.0170.03310.10
4.4.70.0130.03710.10
4.4.60.0230.02010.10
4.4.50.0170.01710.10
4.4.40.0170.05310.10
4.4.30.0130.03310.10
4.4.20.0170.02310.10
4.4.10.0170.02310.10
4.4.00.0270.03710.10
4.3.110.0170.03710.10
4.3.100.0170.03310.10
4.3.90.0130.02010.10
4.3.80.0170.05310.10
4.3.70.0230.02710.10
4.3.60.0200.03310.10
4.3.50.0200.03010.10
4.3.40.0230.04710.10
4.3.30.0100.03310.10
4.3.20.0100.02310.10
4.3.10.0070.02010.10
4.3.00.0070.02010.10

preferences:
45.6 ms | 400 KiB | 5 Q