3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; public function __construct($bar) { $this->bar = $bar; } public function bar() { return $this->bar; } } $foo = new Foo(); var_dump($foo->bar());

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.4.20.0130.00717.79
8.4.10.0090.00017.80
8.3.150.0110.00718.98
8.3.140.0090.00918.98
8.3.130.0040.00418.39
8.3.120.0060.00320.83
8.3.110.0090.00920.94
8.3.100.0060.00318.43
8.3.90.0070.00726.77
8.3.80.0070.00318.68
8.3.70.0090.00918.31
8.3.60.0100.00618.31
8.3.50.0150.00521.95
8.3.40.0070.00718.83
8.3.30.0070.00719.27
8.3.20.0080.00020.25
8.3.10.0000.00721.73
8.3.00.0080.00019.68
8.2.260.0080.00016.69
8.2.250.0140.00018.25
8.2.240.0090.00918.76
8.2.230.0030.00522.58
8.2.220.0070.00024.06
8.2.210.0140.00426.77
8.2.200.0060.00318.54
8.2.190.0110.00416.58
8.2.180.0090.00916.38
8.2.170.0140.00022.96
8.2.160.0040.01120.39
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.44
8.2.110.0060.00322.11
8.2.100.0060.00617.71
8.2.90.0080.00018.16
8.2.80.0000.00917.97
8.2.70.0030.00617.38
8.2.60.0000.00917.79
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0040.00417.88
8.2.20.0050.00317.60
8.2.10.0050.00318.08
8.2.00.0070.00017.60
8.1.310.0030.01516.44
8.1.300.0140.00418.25
8.1.290.0000.01118.88
8.1.280.0110.00425.92
8.1.270.0080.00022.20
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00019.05
8.1.230.0070.00421.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00717.35
8.1.190.0000.00817.39
8.1.180.0000.00818.53
8.1.170.0050.00318.63
8.1.160.0030.00321.95
8.1.150.0050.00318.87
8.1.140.0050.00217.33
8.1.130.0040.00419.95
8.1.120.0030.00317.27
8.1.110.0070.00017.34
8.1.100.0030.00317.27
8.1.90.0040.00417.37
8.1.80.0040.00417.29
8.1.70.0060.00317.27
8.1.60.0030.00617.59
8.1.50.0080.00017.48
8.1.40.0000.00817.35
8.1.30.0060.00317.54
8.1.20.0020.00517.66
8.1.10.0070.00017.54
8.1.00.0040.00417.40
8.0.300.0070.00020.09
8.0.290.0000.00816.93
8.0.280.0030.00318.39
8.0.270.0070.00017.21
8.0.260.0030.00318.36
8.0.250.0000.00716.95
8.0.240.0040.00416.92
8.0.230.0030.00316.85
8.0.220.0090.00016.78
8.0.210.0000.00716.81
8.0.200.0030.00316.84
8.0.190.0000.00916.84
8.0.180.0070.00316.93
8.0.170.0040.00416.88
8.0.160.0030.00316.88
8.0.150.0040.00416.75
8.0.140.0040.00416.79
8.0.130.0000.00613.30
8.0.120.0000.00716.86
8.0.110.0040.00416.81
8.0.100.0040.00416.92
8.0.90.0000.00716.96
8.0.80.0160.00616.89
8.0.70.0070.00016.81
8.0.60.0040.00416.73
8.0.50.0000.00716.71
8.0.30.0060.01217.02
8.0.20.0120.00917.40
8.0.10.0040.00417.00
8.0.00.0110.00616.92
7.4.330.0000.00515.13
7.4.320.0030.00316.48
7.4.300.0000.00616.44
7.4.290.0000.00716.40
7.4.280.0030.00516.54
7.4.270.0030.00516.54
7.4.260.0030.00516.54
7.4.250.0040.00416.27
7.4.240.0060.00216.52
7.4.230.0050.00216.20
7.4.220.0100.01016.60
7.4.210.0090.00616.50
7.4.200.0000.00716.25
7.4.160.0070.01016.63
7.4.150.0070.01017.40
7.4.140.0110.00917.86
7.4.130.0120.00516.49
7.4.120.0130.00916.48
7.4.110.0060.01116.47
7.4.100.0130.00416.56
7.4.90.0130.00316.47
7.4.80.0070.01719.39
7.4.70.0060.00916.47
7.4.60.0030.01316.40
7.4.50.0000.00816.64
7.4.40.0030.01416.48
7.4.30.0180.00416.44
7.4.00.0050.01214.99
7.3.330.0030.00413.36
7.3.320.0060.00013.15
7.3.310.0000.00716.52
7.3.300.0000.00716.22
7.3.290.0030.00316.38
7.3.280.0070.01116.36
7.3.270.0130.00317.40
7.3.260.0100.00616.40
7.3.250.0080.00816.41
7.3.240.0080.00816.63
7.3.230.0130.00316.55
7.3.210.0140.00316.37
7.3.200.0100.01319.39
7.3.190.0130.00616.54
7.3.180.0030.01716.55
7.3.170.0090.01316.35
7.3.160.0060.00916.43
7.3.120.0000.01614.73
7.3.110.0060.01214.88
7.3.100.0060.01314.97
7.3.90.0000.01214.84
7.3.80.0040.01214.82
7.3.70.0030.01214.79
7.3.60.0100.00014.45
7.3.50.0030.00714.89
7.3.40.0100.00314.85
7.3.30.0070.00714.48
7.3.20.0030.01016.57
7.3.10.0090.00016.55
7.3.00.0090.00616.63
7.2.330.0080.00816.60
7.2.320.0070.01016.27
7.2.310.0150.00316.27
7.2.300.0070.00916.50
7.2.290.0000.01716.75
7.2.250.0080.01114.83
7.2.240.0070.01114.44
7.2.230.0070.00714.85
7.2.220.0110.00314.75
7.2.210.0090.00614.73
7.2.200.0090.00314.99
7.2.190.0000.01114.61
7.2.180.0030.01014.88
7.2.170.0040.01214.64
7.2.160.0040.01114.92
7.2.150.0120.00016.59
7.2.140.0090.00316.49
7.2.130.0060.00616.74
7.2.120.0040.01116.65
7.2.110.0060.00916.67
7.2.100.0100.00616.73
7.2.90.0040.00716.79
7.2.80.0040.01216.53
7.2.70.0030.01016.72
7.2.60.0030.00916.77
7.2.50.0000.00916.56
7.2.40.0040.01216.92
7.2.30.0060.00916.68
7.2.20.0060.00616.59
7.2.10.0070.01016.73
7.2.00.0050.00817.76
7.1.330.0030.01415.75
7.1.320.0000.01215.65
7.1.310.0120.00015.41
7.1.300.0030.01015.64
7.1.290.0030.00615.69
7.1.280.0100.00015.31
7.1.270.0030.00915.58
7.1.260.0060.00315.61
7.1.250.0060.00315.61
7.1.240.0040.00815.39
7.1.230.0000.01015.53
7.1.220.0090.00315.66
7.1.210.0080.00415.56
7.1.200.0060.00615.61
7.1.190.0090.00615.49
7.1.180.0030.00715.72
7.1.170.0100.00615.29
7.1.160.0030.01015.66
7.1.150.0110.00415.57
7.1.140.0000.00815.31
7.1.130.0030.01015.46
7.1.120.0080.00815.31
7.1.110.0030.00615.71
7.1.100.0060.00516.63
7.1.90.0060.00915.69
7.1.80.0030.01115.63
7.1.70.0040.01016.20
7.1.60.0110.00917.17
7.1.50.0050.01316.10
7.1.40.0030.01015.61
7.1.30.0060.00915.26
7.1.20.0040.00815.39
7.1.10.0030.00715.36
7.1.00.0020.04518.92
7.0.330.0000.01315.27
7.0.320.0040.00715.27
7.0.310.0060.00615.16
7.0.300.0110.00315.02
7.0.290.0000.01215.29
7.0.280.0120.00015.41
7.0.270.0090.00615.43
7.0.260.0110.00015.37
7.0.250.0030.00615.32
7.0.240.0030.01315.25
7.0.230.0090.00615.38
7.0.220.0040.01215.49
7.0.210.0040.01115.49
7.0.200.0210.00314.96
7.0.190.0000.00815.29
7.0.180.0070.00715.07
7.0.170.0060.00915.02
7.0.160.0000.01215.54
7.0.150.0030.00515.42
7.0.140.0050.02918.82
7.0.130.0090.00915.33
7.0.120.0070.01015.46
7.0.110.0050.01315.40
7.0.100.0050.00415.14
7.0.90.0060.00615.40
7.0.80.0030.00915.37
7.0.70.0110.00415.47
7.0.60.0050.04317.59
7.0.50.0050.04216.48
7.0.40.0150.04316.84
7.0.30.0130.02616.70
7.0.20.0200.02116.81
7.0.10.0080.04516.87
7.0.00.0120.04216.69
5.6.400.0070.00714.39
5.6.390.0000.01314.31
5.6.380.0030.01014.28
5.6.370.0090.00014.32
5.6.360.0030.01014.49
5.6.350.0000.01014.34
5.6.340.0040.00414.38
5.6.330.0100.00714.22
5.6.320.0040.00814.37
5.6.310.0060.00914.51
5.6.300.0030.01014.14
5.6.290.0100.00314.43
5.6.280.0080.03817.69
5.6.270.0070.01014.27
5.6.260.0100.00314.18
5.6.250.0080.00414.11
5.6.240.0040.00814.26
5.6.230.0040.00714.27
5.6.220.0120.00314.34
5.6.210.0100.03517.35
5.6.200.0040.03016.32
5.6.190.0070.02817.60
5.6.180.0310.03817.50
5.6.170.0140.02417.35
5.6.160.0080.04717.47
5.6.150.0050.02416.23
5.6.140.0020.05016.30
5.6.130.0030.02916.21
5.6.120.0080.04617.59
5.6.110.0090.03217.60
5.6.100.0200.02717.56
5.6.90.0030.03017.72
5.6.80.0050.02517.17
5.6.70.0120.00314.40
5.6.60.0000.01614.38
5.6.50.0000.01114.17
5.6.40.0110.00414.25
5.6.30.0000.01714.39
5.6.20.0030.00614.32
5.6.10.0070.00714.27
5.6.00.0100.00614.28
5.5.380.0040.01114.09
5.5.370.0030.00914.21
5.5.360.0030.01014.21
5.5.350.0050.01817.45
5.5.340.0050.04716.11
5.5.330.0070.03017.18
5.5.320.0070.02517.23
5.5.310.0180.03717.40
5.5.300.0020.02316.16
5.5.290.0050.04516.09
5.5.280.0060.02517.60
5.5.270.0030.03817.33
5.5.260.0100.04317.40
5.5.250.0050.03117.17
5.5.240.0070.03617.22
5.5.230.0070.00714.08
5.5.220.0060.01014.00
5.5.210.0040.00814.28
5.5.200.0000.01114.05
5.5.190.0000.01413.90
5.5.180.0060.00614.24
5.5.170.0060.00613.75
5.5.160.0000.00814.26
5.5.150.0030.01014.32
5.5.140.0070.00314.33
5.5.130.0060.00314.01
5.5.120.0030.00614.21
5.5.110.0090.00614.36
5.5.100.0030.01014.04
5.5.90.0040.01214.41
5.5.80.0040.00714.10
5.5.70.0000.01214.20
5.5.60.0000.01514.34
5.5.50.0000.01113.97
5.5.40.0070.00714.20
5.5.30.0110.00413.73
5.5.20.0040.01213.89
5.5.10.0030.01313.91
5.5.00.0030.01013.82
5.4.450.0400.02915.55
5.4.440.0100.03015.34
5.4.430.0060.03315.47
5.4.420.0130.02715.60
5.4.410.0100.02715.42
5.4.400.0120.03215.37
5.4.390.0090.02915.38
5.4.380.0100.03115.13
5.4.370.0060.02114.98
5.4.360.0030.02515.02
5.4.350.0050.02515.06
5.4.340.0070.02115.08
5.4.330.0030.00911.52
5.4.320.0050.02315.06
5.4.310.0070.01814.94
5.4.300.0060.02315.05
5.4.290.0050.02115.06
5.4.280.0020.02515.08
5.4.270.0080.02214.98
5.4.260.0020.03115.04
5.4.250.0050.02514.97
5.4.240.0020.02715.01
5.4.230.0080.02114.97
5.4.220.0100.02214.90
5.4.210.0080.02112.83
5.4.200.0070.02514.12
5.4.190.0030.02114.04
5.4.180.0020.02414.05
5.4.170.0060.01914.01
5.4.160.0080.01814.09
5.4.150.0000.02614.05
5.4.140.0050.02213.82
5.4.130.0020.02313.88
5.4.120.0040.02313.84
5.4.110.0080.01813.86
5.4.100.0030.02413.82
5.4.90.0030.02213.86
5.4.80.0070.02213.86
5.4.70.0020.02513.87
5.4.60.0080.02013.85
5.4.50.0080.02013.93
5.4.40.0020.02513.82
5.4.30.0070.02213.84
5.4.20.0070.02013.81
5.4.10.0030.02313.85
5.4.00.0030.02513.56
5.3.290.0070.04014.61
5.3.280.0070.04314.64
5.3.270.0100.03314.57
5.3.260.0100.03714.68
5.3.250.0030.04014.59
5.3.240.0070.04014.60
5.3.230.0100.03714.54
5.3.220.0030.03714.51
5.3.210.0130.03014.64
5.3.200.0100.03014.53
5.3.190.0100.03014.64
5.3.180.0030.04014.71
5.3.170.0030.04314.51
5.3.160.0000.04314.71
5.3.150.0100.03714.61
5.3.140.0130.03314.51
5.3.130.0070.04314.55
5.3.120.0100.03714.54
5.3.110.0000.05014.58
5.3.100.0070.03714.18
5.3.90.0070.03714.17
5.3.80.0030.04714.09
5.3.70.0070.04713.95
5.3.60.0070.04014.11
5.3.50.0000.04313.99
5.3.40.0030.04713.99
5.3.30.0100.03313.88
5.3.20.0130.03013.58
5.3.10.0100.04013.80
5.3.00.0200.02313.67
5.2.170.0070.03311.29
5.2.160.0070.03311.10
5.2.150.0100.03311.22
5.2.140.0000.04011.19
5.2.130.0000.03311.11
5.2.120.0070.03711.17
5.2.110.0000.03311.07
5.2.100.0100.02311.07
5.2.90.0070.03311.17
5.2.80.0030.03011.15
5.2.70.0070.03311.07
5.2.60.0070.04011.11
5.2.50.0000.03710.95
5.2.40.0070.02711.05
5.2.30.0000.03310.90
5.2.20.0070.02710.88
5.2.10.0070.02710.90
5.2.00.0030.03010.64
5.1.60.0030.0239.97
5.1.50.0030.02710.03
5.1.40.0000.02710.00
5.1.30.0030.02710.39
5.1.20.0030.02710.54
5.1.10.0000.03010.20
5.1.00.0070.02310.01
5.0.50.0000.0238.64
5.0.40.0030.0208.45
5.0.30.0000.0338.30
5.0.20.0030.0208.16
5.0.10.0030.0238.09
5.0.00.0030.0378.25
4.4.90.0070.0105.89
4.4.80.0000.0175.79
4.4.70.0000.0175.82
4.4.60.0000.0175.84
4.4.50.0030.0205.84
4.4.40.0000.0275.85
4.4.30.0000.0205.94
4.4.20.0030.0135.93
4.4.10.0030.0135.89
4.4.00.0030.0235.85
4.3.110.0000.0205.77
4.3.100.0030.0135.76
4.3.90.0000.0175.72
4.3.80.0000.0275.80
4.3.70.0030.0175.89
4.3.60.0070.0105.84
4.3.50.0000.0175.84
4.3.40.0070.0205.70
4.3.30.0000.0174.53
4.3.20.0030.0134.46
4.3.10.0000.0174.46
4.3.00.0100.0237.17

preferences:
36.03 ms | 403 KiB | 5 Q