3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Connection { public $server, $username, $password, $db; public function a($server, $username, $password, $db){ echo $server; echo $username; echo $password; echo $db; } } $server="server1"; $username="username1"; $password="password1"; $db="db1"; $conect= new Connection("server1", "username1", "password1", "db1"); $conect->a($server, $username, $password, $db); ?>

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.0120.00318.67
8.3.30.0110.00718.69
8.3.20.0080.00018.73
8.3.10.0060.00320.34
8.3.00.0030.00519.26
8.2.170.0100.01022.96
8.2.160.0150.00018.79
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0130.00018.71
8.2.110.0040.00721.12
8.2.100.0090.00317.78
8.2.90.0060.00319.48
8.2.80.0070.00019.38
8.2.70.0050.00317.63
8.2.60.0040.00418.05
8.2.50.0030.00518.07
8.2.40.0000.00718.16
8.2.30.0040.00417.94
8.2.20.0000.00917.63
8.2.10.0000.00717.62
8.2.00.0030.00617.82
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00622.45
8.1.230.0040.00721.04
8.1.220.0040.00417.74
8.1.210.0060.00618.97
8.1.200.0060.00317.23
8.1.190.0000.00817.41
8.1.180.0050.00318.10
8.1.170.0080.00018.91
8.1.160.0040.00418.82
8.1.150.0030.00718.49
8.1.140.0040.00417.31
8.1.130.0040.00417.88
8.1.120.0000.00717.31
8.1.110.0040.00417.39
8.1.100.0040.00417.29
8.1.90.0020.00517.41
8.1.80.0000.00717.22
8.1.70.0030.00317.29
8.1.60.0030.00617.53
8.1.50.0080.00017.49
8.1.40.0040.00417.54
8.1.30.0030.00517.64
8.1.20.0040.00417.64
8.1.10.0040.00417.52
8.1.00.0050.00217.55
8.0.300.0040.00420.04
8.0.290.0080.00016.63
8.0.280.0030.00318.36
8.0.270.0000.00717.27
8.0.260.0000.00616.75
8.0.250.0040.00416.80
8.0.240.0020.00516.85
8.0.230.0080.00016.81
8.0.220.0030.00316.71
8.0.210.0050.00316.83
8.0.200.0000.00716.88
8.0.190.0070.00016.91
8.0.180.0040.00416.76
8.0.170.0030.00716.77
8.0.160.0070.00016.85
8.0.150.0050.00316.79
8.0.140.0080.00016.75
8.0.130.0000.00513.34
8.0.120.0030.00516.78
8.0.110.0040.00416.76
8.0.100.0050.00216.78
8.0.90.0040.00416.89
8.0.80.0000.01716.74
8.0.70.0050.00316.87
8.0.60.0030.00316.86
8.0.50.0040.00416.67
8.0.30.0090.01217.10
8.0.20.0060.01216.85
8.0.10.0040.00416.75
8.0.00.0120.01016.79
7.4.330.0030.00312.94
7.4.320.0030.00316.35
7.4.300.0030.00316.61
7.4.290.0000.00716.50
7.4.280.0000.00816.65
7.4.270.0060.00316.52
7.4.260.0060.00013.30
7.4.250.0040.00416.58
7.4.240.0000.00716.58
7.4.230.0030.00316.71
7.4.220.0150.00316.43
7.4.210.0000.00016.47
7.4.200.0000.00716.35
7.4.190.0030.00316.55
7.4.160.0130.00316.56
7.4.150.0140.00416.54
7.4.140.0110.00616.45
7.4.130.0120.00916.24
7.4.120.0080.00816.30
7.4.110.0100.00816.72
7.4.100.0060.01016.32
7.4.90.0180.00016.63
7.4.80.0130.01016.55
7.4.70.0130.00316.65
7.4.60.0110.01116.20
7.4.50.0000.00516.36
7.4.40.0110.00216.32
7.4.30.0030.01316.52
7.4.10.0140.00314.59
7.4.00.0050.01014.73
7.3.330.0050.00013.25
7.3.320.0040.00613.22
7.3.310.0000.00716.11
7.3.300.0030.00316.25
7.3.290.0100.00516.27
7.3.280.0090.00616.22
7.3.270.0080.00816.22
7.3.260.0070.01116.17
7.3.250.0110.01016.22
7.3.240.0090.00616.29
7.3.230.0140.00616.22
7.3.210.0060.01116.34
7.3.200.0070.00819.39
7.3.190.0090.00916.20
7.3.180.0090.00616.20
7.3.170.0090.00616.22
7.3.160.0060.00916.15
7.3.130.0070.00714.38
7.3.120.0080.00914.81
7.3.110.0060.01214.72
7.3.100.0000.01214.90
7.3.90.0090.00614.89
7.3.80.0110.00414.72
7.3.70.0080.00814.73
7.3.60.0100.00614.54
7.3.50.0000.01514.91
7.3.40.0060.00614.76
7.3.30.0070.00314.62
7.3.20.0070.00316.80
7.3.10.0060.00616.61
7.3.00.0030.01016.54
7.2.330.0040.01316.43
7.2.320.0140.00616.50
7.2.310.0140.00316.52
7.2.300.0100.01016.68
7.2.290.0140.00416.41
7.2.260.0060.01214.55
7.2.250.0080.00415.06
7.2.240.0070.00714.92
7.2.230.0130.00714.95
7.2.220.0030.01414.96
7.2.210.0060.00615.02
7.2.200.0070.01114.75
7.2.190.0040.00814.84
7.2.180.0000.01414.97
7.2.170.0030.00614.98
7.2.160.0000.00914.97
7.2.150.0130.00316.84
7.2.140.0000.01416.88
7.2.130.0060.00917.00
7.2.120.0030.00616.70
7.2.110.0070.01016.99
7.2.100.0080.00616.90
7.2.90.0070.00416.81
7.2.80.0070.00716.95
7.2.70.0070.00716.80
7.2.60.0030.01416.62
7.2.50.0040.00816.95
7.2.40.0030.01316.79
7.2.30.0030.00917.08
7.2.20.0060.00916.67
7.2.10.0040.00816.89
7.2.00.0030.00918.18
7.1.330.0030.00915.70
7.1.320.0070.00715.55
7.1.310.0060.00915.68
7.1.300.0070.00415.79
7.1.290.0060.00915.78
7.1.280.0030.00715.80
7.1.270.0030.01015.56
7.1.260.0060.00615.71
7.1.250.0090.00015.94
7.1.240.0070.00715.71
7.1.230.0070.00315.68
7.1.220.0060.00915.82
7.1.210.0090.00615.76
7.1.200.0060.00615.85
7.1.190.0030.01015.68
7.1.180.0000.01615.85
7.1.170.0040.00715.63
7.1.160.0030.01015.66
7.1.150.0030.01115.76
7.1.140.0070.00315.89
7.1.130.0030.01015.89
7.1.120.0060.00315.88
7.1.110.0030.00715.73
7.1.100.0060.00615.83
7.1.90.0060.00315.80
7.1.80.0060.00615.75
7.1.70.0060.00716.37
7.1.60.0090.01017.57
7.1.50.0060.00616.27
7.1.40.0060.01015.52
7.1.30.0030.01015.78
7.1.20.0000.00915.73
7.1.10.0070.00715.46
7.1.00.0110.03519.01
7.0.330.0040.00815.20
7.0.320.0060.00915.22
7.0.310.0020.00615.41
7.0.300.0030.00715.11
7.0.290.0060.00615.43
7.0.280.0000.01215.26
7.0.270.0030.00915.20
7.0.260.0000.00915.48
7.0.250.0070.00315.41
7.0.240.0120.00315.55
7.0.230.0030.00915.48
7.0.220.0040.00815.55
7.0.210.0040.00415.40
7.0.200.0000.00816.16
7.0.190.0030.01315.40
7.0.180.0090.00615.40
7.0.170.0060.00615.43
7.0.160.0040.01115.38
7.0.150.0040.01115.42
7.0.140.0040.03918.66
7.0.130.0060.00915.59
7.0.120.0090.03618.71
7.0.110.0060.00615.09
7.0.100.0040.00415.34
7.0.90.0000.01115.43
7.0.80.0030.00715.42
7.0.70.0000.01015.14
7.0.60.0050.04617.65
7.0.50.0060.04316.76
7.0.40.0120.04516.82
7.0.30.0330.03816.74
7.0.20.0170.03016.81
7.0.10.0210.04016.70
7.0.00.0100.03216.85
5.6.400.0000.01013.97
5.6.390.0070.00714.32
5.6.380.0040.00914.26
5.6.370.0090.00614.27
5.6.360.0000.01414.25
5.6.350.0090.00614.68
5.6.340.0000.01214.18
5.6.330.0030.01014.23
5.6.320.0090.00314.55
5.6.310.0060.00614.47
5.6.300.0040.01113.95
5.6.290.0080.00414.38
5.6.280.0000.04117.71
5.6.270.0110.00314.13
5.6.260.0070.00714.49
5.6.250.0100.00614.41
5.6.240.0070.00714.38
5.6.230.0060.00614.35
5.6.220.0070.01014.29
5.6.210.0080.04617.59
5.6.200.0080.03016.22
5.6.190.0020.02917.57
5.6.180.0120.02617.35
5.6.170.0100.02517.47
5.6.160.0020.04517.36
5.6.150.0070.02816.27
5.6.140.0100.03016.27
5.6.130.0030.02516.14
5.6.120.0120.04217.49
5.6.110.0150.03317.69
5.6.100.0050.02317.70
5.6.90.0020.05017.63
5.6.80.0090.03717.37
5.6.70.0190.03717.47
5.6.60.0040.01114.38
5.6.50.0030.00914.49
5.6.40.0040.00414.16
5.6.30.0030.00914.56
5.6.20.0030.00914.10
5.6.10.0000.00914.13
5.6.00.0120.00414.30
5.5.380.0070.00714.28
5.5.370.0120.00414.33
5.5.360.0120.00314.38
5.5.350.0180.04017.23
5.5.340.0050.02716.02
5.5.330.0070.03517.18
5.5.320.0110.04117.22
5.5.310.0190.02717.33
5.5.300.0060.04116.12
5.5.290.0070.02516.09
5.5.280.0030.02617.68
5.5.270.0100.04117.54
5.5.260.0070.02617.36
5.5.250.0100.04017.47
5.5.240.0100.04017.16
5.5.230.0110.00014.23
5.5.220.0040.00814.32
5.5.210.0000.01514.31
5.5.200.0060.00613.97
5.5.190.0040.01114.00
5.5.180.0090.00614.29
5.5.170.0040.00914.07
5.5.160.0060.00914.08
5.5.150.0150.00014.13
5.5.140.0030.00614.25
5.5.130.0030.00614.38
5.5.120.0060.00914.27
5.5.110.0000.01314.11
5.5.100.0070.00714.32
5.5.90.0070.00314.08
5.5.80.0000.01414.38
5.5.70.0030.01314.17
5.5.60.0040.01114.36
5.5.50.0000.01114.34
5.5.40.0100.00713.77
5.5.30.0090.00913.74
5.5.20.0070.01114.31
5.5.10.0070.00414.14
5.5.00.0000.01313.98
5.4.450.0050.03315.27
5.4.440.0070.03015.29
5.4.430.0050.03715.22
5.4.420.0050.03915.24
5.4.410.0020.04715.20
5.4.400.0020.04515.14
5.4.390.0020.02215.16
5.4.380.0050.02214.96
5.4.370.0080.03715.01
5.4.360.0020.02615.23
5.4.350.0100.02515.11
5.4.340.0050.02114.97
5.4.330.0030.00311.10
5.4.320.0070.04115.12
5.4.310.0070.04014.97
5.4.300.0030.02215.09
5.4.290.0030.02315.11
5.4.280.0050.02514.99
5.4.270.0030.02515.13
5.4.260.0030.03515.16
5.4.250.0050.04215.10
5.4.240.0000.03915.02
5.4.230.0050.02515.13
5.4.220.0060.03615.19
5.4.210.0020.03715.11
5.4.200.0090.03814.96
5.4.190.0070.03514.96
5.4.180.0070.04015.08
5.4.170.0040.03515.07
5.4.160.0030.02315.06
5.4.150.0030.02915.04
5.4.140.0000.02413.74
5.4.130.0060.02013.81
5.4.120.0050.02113.74
5.4.110.0070.03813.77
5.4.100.0080.02813.81
5.4.90.0040.02913.74
5.4.80.0050.02713.71
5.4.70.0030.03013.77
5.4.60.0010.02613.72
5.4.50.0050.03713.72
5.4.40.0030.02213.79
5.4.30.0000.03213.76
5.4.20.0070.03813.75
5.4.10.0080.02913.71
5.4.00.0030.03213.46
5.3.290.0100.03812.88
5.3.280.0020.04312.83
5.3.270.0000.04212.84
5.3.260.0070.02712.91
5.3.250.0070.03312.84
5.3.240.0080.02712.84
5.3.230.0050.04312.91
5.3.220.0030.02512.76
5.3.210.0020.02912.84
5.3.200.0030.02612.83
5.3.190.0100.03912.82
5.3.180.0070.02112.84
5.3.170.0070.01812.82
5.3.160.0030.02212.83
5.3.150.0080.01912.83
5.3.140.0050.02312.81
5.3.130.0060.02712.77
5.3.120.0110.04012.83
5.3.110.0020.03512.76
5.3.100.0050.03612.56
5.3.90.0080.03912.58
5.3.80.0060.03612.54
5.3.70.0080.02012.53
5.3.60.0100.03312.56
5.3.50.0050.02412.58
5.3.40.0030.03612.52
5.3.30.0070.03712.49
5.3.20.0020.03512.38
5.3.10.0070.04012.44
5.3.00.0050.02012.30
5.2.170.0030.03311.07
5.2.160.0030.03011.04
5.2.150.0000.04311.15
5.2.140.0000.03311.14
5.2.130.0130.05311.27
5.2.120.0100.05011.18
5.2.110.0030.05711.18
5.2.100.0070.06011.27
5.2.90.0100.06011.07
5.2.80.0070.06311.16
5.2.70.0030.02711.14
5.2.60.0100.03311.12
5.2.50.0030.04011.02
5.2.40.0030.05710.92
5.2.30.0030.05011.04
5.2.20.0030.04310.88
5.2.10.0000.04010.89
5.2.00.0070.03710.75
5.1.60.0070.0479.90
5.1.50.0030.0279.90
5.1.40.0030.0239.94
5.1.30.0000.02710.49
5.1.20.0100.02010.35
5.1.10.0030.02310.22
5.1.00.0030.02310.10
5.0.50.0000.0208.61
5.0.40.0030.0208.36
5.0.30.0000.0378.27
5.0.20.0000.0238.34
5.0.10.0030.0378.18
5.0.00.0000.0338.22
4.4.90.0030.0138.16
4.4.80.0030.0338.16
4.4.70.0000.0338.16
4.4.60.0000.0308.16
4.4.50.0000.0238.16
4.4.40.0000.0538.16
4.4.30.0030.0278.16
4.4.20.0000.0178.16
4.4.10.0000.0178.16
4.4.00.0030.0578.16
4.3.110.0000.0178.16
4.3.100.0000.0178.16
4.3.90.0000.0178.16
4.3.80.0070.0238.16
4.3.70.0000.0178.16
4.3.60.0000.0178.16
4.3.50.0030.0278.16
4.3.40.0030.0408.16
4.3.30.0000.0238.16
4.3.20.0030.0178.16
4.3.10.0000.0178.16
4.3.00.0000.0178.16

preferences:
47.82 ms | 400 KiB | 5 Q