3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __construct() { $this->user_id = 32; $this->user_group = 5; } public function foo() { $this->user_group = 4; return $this->user_group; } } $test = new Test(); var_dump($test->foo());

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.0160.00016.75
8.3.50.0080.01022.82
8.3.40.0070.00718.81
8.3.30.0100.00318.92
8.3.20.0040.00420.16
8.3.10.0050.00323.65
8.3.00.0080.00017.63
8.2.180.0120.00316.87
8.2.170.0090.00622.96
8.2.160.0040.01120.29
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.94
8.2.110.0090.00019.15
8.2.100.0040.00817.84
8.2.90.0060.00319.09
8.2.80.0080.00017.97
8.2.70.0000.00817.48
8.2.60.0080.00017.76
8.2.50.0060.00318.07
8.2.40.0030.00518.16
8.2.30.0000.00818.00
8.2.20.0000.00817.58
8.2.10.0040.00417.87
8.2.00.0060.00317.68
8.1.280.0070.01125.92
8.1.270.0050.00323.96
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.33
8.1.230.0040.00721.02
8.1.220.0000.00818.77
8.1.210.0050.00318.79
8.1.200.0060.00317.23
8.1.190.0000.00817.11
8.1.180.0030.00618.10
8.1.170.0050.00318.52
8.1.160.0000.00721.87
8.1.150.0000.00718.86
8.1.140.0000.00717.30
8.1.130.0030.00317.75
8.1.120.0020.00517.29
8.1.110.0040.00417.38
8.1.100.0030.00317.38
8.1.90.0000.00817.30
8.1.80.0030.00417.40
8.1.70.0000.00717.34
8.1.60.0030.00517.60
8.1.50.0000.00817.55
8.1.40.0000.00817.47
8.1.30.0040.00417.68
8.1.20.0030.00517.48
8.1.10.0080.00017.41
8.1.00.0000.00717.44
8.0.300.0050.00319.89
8.0.290.0040.00416.58
8.0.280.0000.00718.39
8.0.270.0040.00417.11
8.0.260.0030.00317.20
8.0.250.0040.00416.92
8.0.240.0040.00416.80
8.0.230.0000.01016.82
8.0.220.0060.00016.77
8.0.210.0080.00016.84
8.0.200.0000.00716.89
8.0.190.0050.00316.88
8.0.180.0040.00416.85
8.0.170.0040.00416.86
8.0.160.0000.00816.87
8.0.150.0030.00316.88
8.0.140.0040.00416.85
8.0.130.0000.00713.28
8.0.120.0060.00316.63
8.0.110.0040.00416.88
8.0.100.0020.00516.78
8.0.90.0040.00416.70
8.0.80.0110.00616.73
8.0.70.0030.00516.86
8.0.60.0040.00416.67
8.0.50.0050.00316.69
8.0.30.0110.00817.14
8.0.20.0080.01417.40
8.0.10.0000.00716.97
8.0.00.0090.00916.67
7.4.330.0050.00015.06
7.4.320.0030.00316.54
7.4.300.0000.00616.60
7.4.290.0030.00316.59
7.4.280.0000.00816.49
7.4.270.0030.00316.41
7.4.260.0000.00716.59
7.4.250.0000.00716.48
7.4.240.0040.00416.46
7.4.230.0030.00316.62
7.4.220.0100.00716.58
7.4.210.0130.00616.70
7.4.200.0000.00716.70
7.4.160.0130.00316.53
7.4.150.0150.00317.40
7.4.140.0090.01017.86
7.4.130.0070.01016.43
7.4.120.0110.00916.63
7.4.110.0070.01016.52
7.4.100.0080.00816.41
7.4.90.0160.00616.54
7.4.80.0090.00919.39
7.4.70.0090.00916.55
7.4.60.0100.00616.32
7.4.50.0060.00016.50
7.4.40.0080.00816.54
7.4.30.0120.00316.60
7.4.00.0000.01514.60
7.3.330.0060.00013.08
7.3.320.0050.00013.23
7.3.310.0000.00616.33
7.3.300.0000.00616.20
7.3.290.0120.00616.34
7.3.280.0110.00816.27
7.3.270.0170.00717.40
7.3.260.0060.01216.27
7.3.250.0100.01016.38
7.3.240.0070.01016.41
7.3.230.0150.00716.39
7.3.210.0120.00616.50
7.3.200.0100.00619.39
7.3.190.0060.01216.36
7.3.180.0030.01216.53
7.3.170.0040.01116.43
7.3.160.0060.01016.26
7.3.00.0070.00416.43
7.2.330.0130.01016.59
7.2.320.0070.01116.67
7.2.310.0100.00616.74
7.2.300.0040.01216.62
7.2.290.0090.00916.35
7.2.130.0000.01017.06
7.2.120.0060.00916.81
7.2.110.0000.01516.58
7.2.100.0000.01316.93
7.2.90.0000.01316.95
7.2.80.0030.01217.07
7.2.70.0100.00717.04
7.2.60.0030.01016.73
7.2.50.0000.01217.06
7.2.40.0110.00316.95
7.2.30.0030.00716.82
7.2.20.0070.01016.95
7.2.10.0060.00916.96
7.2.00.0060.00518.16
7.1.250.0070.00715.80
7.1.240.0070.00715.74
7.1.230.0040.00815.53
7.1.220.0030.00715.29
7.1.210.0030.00915.76
7.1.200.0080.00715.58
7.1.190.0100.00315.67
7.1.180.0080.00615.86
7.1.170.0110.00015.64
7.1.160.0040.01115.89
7.1.150.0070.01015.64
7.1.140.0120.00315.72
7.1.130.0000.01415.64
7.1.120.0070.00715.85
7.1.110.0000.00915.69
7.1.100.0050.00717.07
7.1.90.0030.00915.76
7.1.80.0040.00415.55
7.1.70.0030.00716.47
7.1.60.0070.01117.56
7.1.50.0110.00616.07
7.1.40.0040.00715.55
7.1.30.0000.01215.40
7.1.20.0070.00415.46
7.1.10.0070.00715.57
7.1.00.0030.04219.10
7.0.330.0030.00915.20
7.0.320.0110.00015.19
7.0.310.0130.00315.34
7.0.300.0030.01015.06
7.0.290.0060.00615.46
7.0.280.0050.00515.25
7.0.270.0060.00615.31
7.0.260.0100.00315.45
7.0.250.0100.00314.99
7.0.240.0050.00515.53
7.0.230.0070.00715.24
7.0.220.0070.00715.27
7.0.210.0130.00015.51
7.0.200.0030.00715.92
7.0.190.0070.00715.20
7.0.180.0000.01315.05
7.0.170.0100.00315.38
7.0.160.0000.01415.06
7.0.150.0060.00615.30
7.0.140.0050.03818.79
7.0.130.0080.00415.19
7.0.120.0030.00615.46
7.0.110.0000.00915.41
7.0.100.0120.00315.32
7.0.90.0070.00715.33
7.0.80.0050.00315.43
7.0.70.0000.01115.17
7.0.60.0030.04717.66
7.0.50.0030.02816.62
7.0.40.0070.04516.74
7.0.30.0140.02316.71
7.0.20.0150.04316.83
7.0.10.0030.03216.79
7.0.00.0030.02516.64
5.6.380.0080.00414.59
5.6.370.0070.01014.25
5.6.360.0000.00913.87
5.6.350.0030.00614.19
5.6.340.0030.01014.56
5.6.330.0100.00614.27
5.6.320.0130.00014.48
5.6.310.0030.00614.24
5.6.300.0060.00914.29
5.6.290.0130.00014.60
5.6.280.0050.04117.44
5.6.270.0030.00713.96
5.6.260.0070.00714.63
5.6.250.0000.01514.28
5.6.240.0000.00914.26
5.6.230.0040.01114.44
5.6.220.0060.00314.36
5.6.210.0060.02917.32
5.6.200.0000.05016.18
5.6.190.0090.02417.48
5.6.180.0210.03817.26
5.6.170.0160.02017.29
5.6.160.0100.04217.57
5.6.150.0050.03816.15
5.6.140.0070.04116.12
5.6.130.0050.02216.22
5.6.120.0070.04017.68
5.6.110.0070.02217.64
5.6.100.0000.04117.76
5.6.90.0080.02517.72
5.6.80.0120.02717.24
5.6.70.0090.00014.18
5.6.60.0090.00314.18
5.6.50.0040.00714.21
5.6.40.0000.00914.24
5.6.30.0040.00414.17
5.6.20.0040.00414.25
5.6.10.0060.00614.46
5.6.00.0040.01114.15
5.5.380.0060.00311.32
5.5.370.0030.00711.18
5.5.360.0080.00011.33
5.5.350.0130.02415.89
5.5.340.0000.04514.56
5.5.330.0110.04015.77
5.5.320.0070.03915.77
5.5.310.0210.03815.76
5.5.300.0060.04114.66
5.5.290.0000.02814.60
5.5.280.0020.02716.16
5.5.270.0130.03715.95
5.5.260.0050.04515.98
5.5.250.0080.03815.93
5.5.240.0030.02015.72
5.5.230.0070.00311.18
5.5.220.0040.00811.18
5.5.210.0110.00011.18
5.5.200.0060.00611.18
5.5.190.0060.00311.20
5.5.180.0040.00411.18
5.5.170.0040.00811.18
5.5.160.0030.00511.18
5.5.150.0080.00311.24
5.5.140.0030.00311.18
5.5.130.0000.01011.18
5.5.120.0040.00711.18
5.5.110.0080.00011.18
5.5.100.0070.00011.20
5.5.90.0090.00011.18
5.5.80.0000.01111.18
5.5.70.0030.00911.18
5.5.60.0000.01111.21
5.5.50.0040.00411.18
5.5.40.0090.00011.18
5.5.30.0070.00311.25
5.5.20.0070.00011.28
5.5.10.0000.00911.18
5.5.00.0000.00811.18
5.4.450.0400.03015.26
5.4.440.0130.03015.23
5.4.430.0100.03215.39
5.4.420.0050.03615.39
5.4.410.0140.02715.35
5.4.400.0080.03115.16
5.4.390.0070.03415.12
5.4.380.0050.03614.98
5.4.370.0050.02314.83
5.4.360.0000.02714.90
5.4.350.0070.02611.60
5.4.340.0080.02211.60
5.4.330.0030.00311.18
5.4.320.0060.02111.84
5.4.310.0070.02711.84
5.4.300.0060.02511.84
5.4.290.0060.02711.84
5.4.280.0060.02911.79
5.4.270.0040.02711.79
5.4.260.0060.02811.79
5.4.250.0090.02711.79
5.4.240.0050.02811.79
5.4.230.0070.02611.78
5.4.220.0070.02611.79
5.4.210.0050.02711.78
5.4.200.0070.02711.78
5.4.190.0060.02511.78
5.4.180.0050.02711.78
5.4.170.0070.02611.79
5.4.160.0040.02711.78
5.4.150.0040.02711.78
5.4.140.0080.02011.62
5.4.130.0070.01911.62
5.4.120.0060.02511.60
5.4.110.0060.02011.60
5.4.100.0120.01511.59
5.4.90.0060.02111.59
5.4.80.0080.01911.60
5.4.70.0060.02011.60
5.4.60.0060.02011.59
5.4.50.0030.02411.59
5.4.40.0050.01911.59
5.4.30.0070.02111.59
5.4.20.0020.02511.59
5.4.10.0010.02211.59
5.4.00.0040.02011.33
5.3.290.0050.02111.99
5.3.280.0120.01311.94
5.3.270.0070.02111.95
5.3.260.0040.02611.95
5.3.250.0070.02211.95
5.3.240.0020.02311.95
5.3.230.0040.02411.94
5.3.220.0020.02411.93
5.3.210.0090.01811.93
5.3.200.0130.01411.93
5.3.190.0090.01711.93
5.3.180.0030.02211.92
5.3.170.0080.01911.92
5.3.160.0050.02111.92
5.3.150.0070.01911.93
5.3.140.0070.01911.92
5.3.130.0050.02111.92
5.3.120.0040.02311.92
5.3.110.0060.02511.92
5.3.100.0070.02711.65
5.3.90.0050.03211.64
5.3.80.0050.02711.64
5.3.70.0050.02111.64
5.3.60.0050.02111.63
5.3.50.0050.02011.60
5.3.40.0050.02111.60
5.3.30.0050.02211.58
5.3.20.0070.02011.47
5.3.10.0050.01811.45
5.3.00.0050.02011.45
5.2.170.0020.01910.20
5.2.160.0040.01910.20
5.2.150.0050.01810.20
5.2.140.0040.02010.20
5.2.130.0020.02310.18
5.2.120.0040.02010.18
5.2.110.0030.02110.18
5.2.100.0050.01610.18
5.2.90.0090.01310.18
5.2.80.0050.01810.18
5.2.70.0020.01910.18
5.2.60.0060.01510.15
5.2.50.0080.01510.14
5.2.40.0070.01610.13
5.2.30.0040.01610.11
5.2.20.0060.01610.10
5.2.10.0020.01810.06
5.2.00.0040.0179.99
5.1.60.0050.0149.63
5.1.50.0020.0179.63
5.1.40.0040.0139.62
5.1.30.0040.0159.80
5.1.20.0040.0159.81
5.1.10.0020.0169.67
5.1.00.0050.0159.67
5.0.50.0060.0108.91
5.0.40.0020.0198.84
5.0.30.0040.0238.75
5.0.20.0050.0118.73
5.0.10.0050.0128.71
5.0.00.0050.0168.71
4.4.90.0040.0097.98
4.4.80.0020.0097.96
4.4.70.0040.0097.97
4.4.60.0010.0117.96
4.4.50.0030.0097.97
4.4.40.0010.0157.94
4.4.30.0040.0097.97
4.4.20.0040.0078.01
4.4.10.0010.0118.01
4.4.00.0040.0157.97
4.3.110.0050.0087.92
4.3.100.0050.0067.92
4.3.90.0020.0107.91
4.3.80.0040.0137.88
4.3.70.0020.0097.90
4.3.60.0010.0107.90
4.3.50.0030.0097.90
4.3.40.0020.0167.86
4.3.30.0020.0117.24
4.3.20.0020.0117.23
4.3.10.0010.0097.21
4.3.00.0050.0169.15

preferences:
43.21 ms | 401 KiB | 5 Q