3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $data; public function setData($data=null) { $this->data = $data; } public function getData() { return $this->data; } } $foo = new Foo(); $foo->setData('data'); var_dump($foo->getData());

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.70.0180.00418.30
8.3.60.0110.00718.31
8.3.50.0160.00622.11
8.3.40.0160.00018.88
8.3.30.0030.01018.97
8.3.20.0080.00020.21
8.3.10.0040.00423.48
8.3.00.0040.00418.96
8.2.180.0120.00918.17
8.2.170.0140.00022.96
8.2.160.0070.00720.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00819.52
8.2.110.0060.00322.26
8.2.100.0030.00917.91
8.2.90.0090.00019.09
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0080.00017.91
8.2.50.0040.00418.07
8.2.40.0040.00419.82
8.2.30.0040.00417.98
8.2.20.0090.00017.65
8.2.10.0040.00417.91
8.2.00.0000.00817.60
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0110.00022.24
8.1.230.0060.00617.42
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0050.00517.23
8.1.180.0030.00518.10
8.1.170.0080.00018.56
8.1.160.0030.00321.86
8.1.150.0040.00418.85
8.1.140.0040.00417.38
8.1.130.0030.00517.85
8.1.120.0020.00517.48
8.1.110.0040.00417.21
8.1.100.0000.00717.23
8.1.90.0050.00317.29
8.1.80.0040.00417.37
8.1.70.0070.00017.35
8.1.60.0040.00417.53
8.1.50.0030.00517.55
8.1.40.0000.00717.40
8.1.30.0040.00417.55
8.1.20.0040.00417.68
8.1.10.0030.00617.43
8.1.00.0000.00817.42
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0050.00318.46
8.0.270.0040.00416.65
8.0.260.0030.00317.19
8.0.250.0000.00816.85
8.0.240.0070.00016.87
8.0.230.0070.00016.90
8.0.220.0000.00716.82
8.0.210.0070.00016.81
8.0.200.0030.00316.89
8.0.190.0030.00616.87
8.0.180.0000.00716.70
8.0.170.0060.00316.81
8.0.160.0000.00716.70
8.0.150.0000.01216.72
8.0.140.0050.00316.78
8.0.130.0050.00013.27
8.0.120.0030.00616.77
8.0.110.0040.00416.89
8.0.100.0000.00916.77
8.0.90.0040.00416.65
8.0.80.0100.00716.82
8.0.70.0000.00716.63
8.0.60.0050.00216.69
8.0.50.0070.00016.88
8.0.30.0100.01017.34
8.0.20.0080.01217.40
8.0.10.0000.00717.00
8.0.00.0070.01316.72
7.4.330.0000.00515.07
7.4.320.0030.00316.58
7.4.300.0040.00416.60
7.4.290.0040.00316.51
7.4.280.0030.00516.54
7.4.270.0030.00516.51
7.4.260.0070.00016.55
7.4.250.0050.00216.39
7.4.240.0000.00816.49
7.4.230.0030.00316.66
7.4.220.0090.00916.45
7.4.210.0090.00916.50
7.4.200.0000.00716.66
7.4.160.0060.00916.28
7.4.150.0060.01217.40
7.4.140.0120.00517.86
7.4.130.0150.00316.42
7.4.120.0080.00916.50
7.4.110.0190.00616.64
7.4.100.0120.00916.42
7.4.90.0150.00616.45
7.4.80.0080.00819.39
7.4.70.0000.01716.54
7.4.60.0150.00916.47
7.4.50.0060.00016.49
7.4.40.0090.01216.52
7.4.30.0100.00616.40
7.4.00.0030.01314.98
7.3.330.0030.00413.23
7.3.320.0020.00213.07
7.3.310.0030.00316.00
7.3.300.0030.00316.25
7.3.290.0090.00716.16
7.3.280.0080.00916.21
7.3.270.0140.00417.40
7.3.260.0130.00316.39
7.3.250.0130.00516.40
7.3.240.0100.01216.62
7.3.230.0070.01016.39
7.3.210.0060.01016.30
7.3.200.0110.00719.39
7.3.190.0050.01416.19
7.3.180.0090.00816.20
7.3.170.0190.00316.27
7.3.160.0000.01616.17
7.3.10.0180.00016.47
7.3.00.0120.00916.42
7.2.330.0100.00716.36
7.2.320.0090.00916.86
7.2.310.0030.01416.58
7.2.300.0090.01216.38
7.2.290.0110.01216.43
7.2.130.0090.00616.54
7.2.120.0070.01416.79
7.2.110.0110.00716.92
7.2.100.0080.00316.82
7.2.90.0040.00716.84
7.2.80.0090.00416.57
7.2.70.0100.00316.71
7.2.60.0080.00916.84
7.2.50.0100.01016.87
7.2.40.0070.00416.96
7.2.30.0060.00616.90
7.2.20.0100.00316.77
7.2.10.0040.00816.86
7.2.00.0100.00918.04
7.1.250.0120.00315.31
7.1.200.0060.00615.49
7.1.100.0050.00518.00
7.1.70.0050.00216.96
7.1.60.0130.01019.22
7.1.50.0130.01034.57
7.1.00.0130.06722.46
7.0.200.0000.00816.72
7.0.140.0030.06321.99
7.0.60.0070.08319.79
7.0.50.0030.04017.73
7.0.40.0070.04720.06
7.0.30.0330.07320.06
7.0.20.0270.05020.06
7.0.10.0070.09020.19
7.0.00.0030.09320.32
5.6.280.0070.07020.90
5.6.210.0130.07320.67
5.6.200.0070.06018.15
5.6.190.0070.05720.44
5.6.180.0400.07020.60
5.6.170.0300.06020.56
5.6.160.0100.04720.71
5.6.150.0100.08018.17
5.6.140.0070.05718.23
5.6.130.0170.07718.13
5.6.120.0070.06021.04
5.6.110.0100.08020.99
5.6.100.0200.07721.14
5.6.90.0030.05320.95
5.6.80.0070.03320.41
5.5.350.0270.07320.44
5.5.340.0070.08017.98
5.5.330.0030.05320.41
5.5.320.0100.08320.36
5.5.310.0370.07020.34
5.5.300.0030.05317.99
5.5.290.0100.08018.13
5.5.280.0070.08320.88
5.5.270.0030.04020.87
5.5.260.0170.06720.80
5.5.250.0070.08720.80
5.5.240.0100.07320.17
5.4.450.0770.04319.63
5.4.440.0770.05019.64
5.4.430.0700.05319.63
5.4.420.0930.06019.64
5.4.410.0230.04319.54
5.4.400.0700.05719.00
5.4.390.0630.05319.13
5.4.380.0230.05718.76
5.4.370.0230.05318.50
5.4.360.0270.05018.54
5.4.350.0270.05318.50
5.4.340.0170.06018.57
5.4.320.0270.05318.77
5.4.310.0300.04718.75
5.4.300.0200.06018.50
5.4.290.0130.06018.70
5.4.280.0300.04718.78
5.4.270.0200.05318.62
5.4.260.0370.05318.62
5.4.250.0170.06318.82
5.4.240.0200.05718.77
5.4.230.0370.06318.68
5.4.220.0230.05718.74
5.4.210.0330.04318.75
5.4.200.0230.05016.53
5.4.190.0230.04718.49
5.4.180.0330.04718.62
5.4.170.0230.06018.55
5.4.160.0300.05018.57
5.4.150.0370.04718.72
5.4.140.0330.05016.18
5.4.130.0400.04716.22
5.4.120.0400.05716.30
5.4.110.0300.05016.30
5.4.100.0370.04316.34
5.4.90.0300.05716.41
5.4.80.0470.05316.24
5.4.70.0370.06716.23
5.4.60.0370.05316.26
5.4.50.0230.07016.23
5.4.40.0230.05716.42
5.4.30.0300.04716.22
5.4.20.0270.05016.26
5.4.10.0230.04716.25
5.4.00.0270.04715.89
5.3.290.0270.07014.71
5.3.280.0200.05714.69
5.3.270.0230.06014.73
5.3.260.0370.05714.62
5.3.250.0300.05314.71
5.3.240.0200.05714.65
5.3.230.0370.06314.58
5.3.220.0370.06314.75
5.3.210.0270.05314.66
5.3.200.0230.05314.69
5.3.190.0300.05014.61
5.3.180.0230.05314.69
5.3.170.0400.04014.79
5.3.160.0270.05014.66
5.3.150.0230.05314.70
5.3.140.0330.04714.75
5.3.130.0270.05014.73
5.3.120.0230.05314.69
5.3.110.0130.06314.58
5.3.100.0230.05014.24
5.3.90.0130.06014.15
5.3.80.0230.05014.02
5.3.70.0230.05014.06
5.3.60.0270.04714.21
5.3.50.0130.06314.10
5.3.40.0230.05013.99
5.3.30.0270.04314.03
5.3.20.0100.06013.70
5.3.10.0230.04713.69
5.3.00.0230.05013.87
5.2.170.0170.04311.21
5.2.160.0170.05311.20
5.2.150.0230.04311.21
5.2.140.0200.04011.15
5.2.130.0200.04311.09
5.2.120.0170.04011.14
5.2.110.0200.04011.17
5.2.100.0200.05011.21
5.2.90.0270.05011.23
5.2.80.0270.04011.09
5.2.70.0230.04711.11
5.2.60.0170.04711.11
5.2.50.0170.04311.09
5.2.40.0170.04711.02
5.2.30.0170.04711.08
5.2.20.0200.04710.95
5.2.10.0170.04011.07
5.2.00.0130.04710.84
5.1.60.0130.03710.00
5.1.50.0170.03710.07
5.1.40.0270.04310.02
5.1.30.0270.04010.37
5.1.20.0200.03310.41
5.1.10.0170.03310.21
5.1.00.0170.03710.03
5.0.50.0130.0278.75
5.0.40.0070.0308.44
5.0.30.0070.0478.23
5.0.20.0100.0308.33
5.0.10.0100.0308.19
5.0.00.0100.0478.16
4.4.90.0100.0236.91
4.4.80.0200.0176.91
4.4.70.0070.0236.91
4.4.60.0070.0236.91
4.4.50.0100.0236.91
4.4.40.0100.0376.91
4.4.30.0070.0236.91
4.4.20.0130.0206.91
4.4.10.0100.0206.91
4.4.00.0100.0336.91
4.3.110.0030.0276.91
4.3.100.0070.0236.91
4.3.90.0070.0236.91
4.3.80.0100.0336.91
4.3.70.0070.0236.91
4.3.60.0070.0236.91
4.3.50.0100.0206.91
4.3.40.0100.0306.91
4.3.30.0000.0276.91
4.3.20.0030.0236.91
4.3.10.0030.0236.91
4.3.00.0130.0207.57

preferences:
50.48 ms | 401 KiB | 5 Q