3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Student { public function setName($name) { $this->name = $name; } public function getName() { echo $this->name; } } $student = new Student(); $student->setName('Bob'); echo $student->getName();

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.0040.01116.50
8.3.50.0090.00722.10
8.3.40.0070.00718.85
8.3.30.0080.00619.22
8.3.20.0030.00620.16
8.3.10.0080.00023.73
8.3.00.0040.00420.90
8.2.180.0120.00618.66
8.2.170.0070.00722.96
8.2.160.0130.00020.52
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0070.00020.44
8.2.110.0070.00321.96
8.2.100.0040.00817.91
8.2.90.0000.00819.20
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00818.03
8.2.50.0030.00518.07
8.2.40.0080.00019.88
8.2.30.0000.00718.29
8.2.20.0030.00517.55
8.2.10.0000.00817.99
8.2.00.0040.00417.67
8.1.280.0150.00325.92
8.1.270.0050.00324.02
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00318.70
8.1.230.0070.00419.16
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0090.00018.50
8.1.160.0050.00221.86
8.1.150.0030.00518.57
8.1.140.0040.00417.30
8.1.130.0000.00717.86
8.1.120.0030.00517.44
8.1.110.0000.00817.24
8.1.100.0030.00517.41
8.1.90.0040.00417.44
8.1.80.0000.00717.45
8.1.70.0070.00017.25
8.1.60.0040.00417.54
8.1.50.0060.00317.48
8.1.40.0050.00217.51
8.1.30.0030.00517.64
8.1.20.0000.00717.67
8.1.10.0000.00717.57
8.1.00.0050.00217.55
8.0.300.0040.00418.77
8.0.290.0080.00017.16
8.0.280.0000.00718.39
8.0.270.0030.00317.27
8.0.260.0030.00317.22
8.0.250.0050.00316.87
8.0.240.0000.00717.01
8.0.230.0040.00416.88
8.0.220.0000.00916.88
8.0.210.0030.00316.89
8.0.200.0030.00316.75
8.0.190.0000.00716.78
8.0.180.0060.00316.91
8.0.170.0040.00416.76
8.0.160.0040.00416.93
8.0.150.0030.00516.77
8.0.140.0040.00416.80
8.0.130.0030.00313.25
8.0.120.0030.00516.63
8.0.110.0040.00416.79
8.0.100.0050.00316.82
8.0.90.0050.00216.71
8.0.80.0030.01616.86
8.0.70.0030.00316.85
8.0.60.0000.00716.95
8.0.50.0040.00416.62
8.0.30.0150.00317.14
8.0.20.0120.00617.41
8.0.10.0030.00516.76
8.0.00.0030.01316.66
7.4.330.0030.00315.02
7.4.320.0000.00616.53
7.4.300.0030.00516.49
7.4.290.0040.00416.57
7.4.280.0000.00816.50
7.4.270.0040.00416.50
7.4.260.0030.00316.59
7.4.250.0030.00316.37
7.4.240.0020.00616.56
7.4.230.0030.00316.50
7.4.220.0170.00016.67
7.4.210.0120.00316.59
7.4.200.0070.00016.62
7.4.190.0000.00716.75
7.4.160.0080.00816.45
7.4.150.0030.01417.40
7.4.140.0130.01017.86
7.4.130.0140.00416.44
7.4.120.0150.00216.56
7.4.110.0090.00916.64
7.4.100.0090.00916.33
7.4.90.0140.00416.45
7.4.80.0070.01119.39
7.4.70.0120.00416.48
7.4.60.0090.01216.44
7.4.50.0000.00816.35
7.4.40.0030.01316.30
7.4.30.0120.00416.35
7.4.00.0060.00914.96
7.3.330.0020.00213.18
7.3.320.0000.00513.19
7.3.310.0030.00316.18
7.3.300.0000.00716.25
7.3.290.0100.01016.28
7.3.280.0100.01016.21
7.3.270.0110.00717.40
7.3.260.0110.00716.38
7.3.250.0070.01016.40
7.3.240.0110.01116.36
7.3.230.0000.02016.39
7.3.210.0100.01316.29
7.3.200.0070.01319.39
7.3.190.0100.00716.38
7.3.180.0030.01216.41
7.3.170.0100.01216.27
7.3.160.0130.01016.41
7.3.120.0100.00714.71
7.2.330.0030.01416.73
7.2.320.0040.01216.80
7.2.310.0110.01416.84
7.2.300.0090.00616.70
7.2.290.0090.00916.59
7.2.60.0030.01016.76
7.1.200.0080.00815.45
7.1.70.0030.00717.00
7.1.60.0040.02119.46
7.1.50.0230.00316.70
7.1.00.0070.07322.40
7.0.200.0880.01014.70
7.0.140.0030.07322.05
7.0.60.0070.08019.91
7.0.50.0030.06317.87
7.0.40.0030.04720.23
7.0.30.0300.07720.25
7.0.20.0130.05320.22
7.0.10.0130.08020.15
7.0.00.0030.04320.06
5.6.280.0030.07321.05
5.6.210.0170.07720.73
5.6.200.0070.08718.18
5.6.190.0130.03720.58
5.6.180.0530.06720.77
5.6.170.0200.04020.55
5.6.160.0000.04720.34
5.6.150.0030.08318.21
5.6.140.0030.07018.13
5.6.130.0070.05318.15
5.6.120.0100.08020.97
5.6.110.0130.08321.00
5.6.100.0070.08321.11
5.6.90.0130.08020.99
5.6.80.0100.07720.48
5.5.350.0170.04320.34
5.5.340.0000.08717.99
5.5.330.0170.06320.25
5.5.320.0330.05020.38
5.5.310.0370.07720.36
5.5.300.0030.04017.93
5.5.290.0070.05718.06
5.5.280.0030.08720.78
5.5.270.0070.04020.76
5.5.260.0130.06020.89
5.5.250.0130.08020.55
5.5.240.0070.06320.27
5.4.450.0870.05019.20
5.4.440.0770.05319.52
5.4.430.0070.06019.31
5.4.420.0000.06319.45
5.4.410.0130.05319.02
5.4.400.0030.06018.81
5.4.390.0130.05018.80
5.4.380.0070.05718.80
5.4.370.0000.04318.48
5.4.360.0000.04318.76
5.4.350.0070.03412.02
5.4.340.0050.03812.02
5.4.320.0090.04312.51
5.4.310.0070.04112.50
5.4.300.0060.04412.50
5.4.290.0080.05112.50
5.4.280.0110.04412.39
5.4.270.0050.05012.39
5.4.260.0140.05912.40
5.4.250.0080.04912.39
5.4.240.0060.04412.40
5.4.230.0060.04612.39
5.4.220.0070.04012.39
5.4.210.0050.03712.39
5.4.200.0080.04412.39
5.4.190.0110.05012.39
5.4.180.0110.05112.39
5.4.170.0110.04912.40
5.4.160.0100.03612.39
5.4.150.0080.04112.39
5.4.140.0130.04012.07
5.4.130.0080.04112.06
5.4.120.0120.03512.02
5.4.110.0140.04212.02
5.4.100.0070.04412.02
5.4.90.0100.04112.02
5.4.80.0050.04112.02
5.4.70.0140.05712.01
5.4.60.0100.04712.01
5.4.50.0120.04712.01
5.4.40.0070.05112.00
5.4.30.0080.05012.00
5.4.20.0070.04412.00
5.4.10.0050.03712.00
5.4.00.0070.03511.48
5.3.290.0080.03712.80
5.3.280.0100.04212.71
5.3.270.0120.05012.73
5.3.260.0090.05712.71
5.3.250.0060.06112.72
5.3.240.0100.05412.72
5.3.230.0140.04912.71
5.3.220.0090.05512.68
5.3.210.0070.05712.68
5.3.200.0100.05312.68
5.3.190.0100.05212.67
5.3.180.0110.05212.68
5.3.170.0100.05012.67
5.3.160.0140.04812.67
5.3.150.0070.05512.67
5.3.140.0090.05212.66
5.3.130.0130.04312.66
5.3.120.0120.05912.66
5.3.110.0120.04612.66
5.3.100.0080.04612.11
5.3.90.0100.04712.10
5.3.80.0080.04612.09
5.3.70.0140.04512.10
5.3.60.0120.04312.07
5.3.50.0090.04612.03
5.3.40.0090.05112.03
5.3.30.0140.04311.98
5.3.20.0100.04511.77
5.3.10.0090.04911.73
5.3.00.0230.10011.72
5.2.170.0070.0359.22
5.2.160.0060.0419.22
5.2.150.0080.0389.22
5.2.140.0090.0449.22
5.2.130.0090.0459.18
5.2.120.0080.0439.18
5.2.110.0090.0459.19
5.2.100.0150.0459.18
5.2.90.0090.0469.18
5.2.80.0120.0429.17
5.2.70.0060.0489.18
5.2.60.0100.0409.13
5.2.50.0050.0469.10
5.2.40.0060.0399.07
5.2.30.0060.0589.05
5.2.20.0050.0409.04
5.2.10.0060.0398.94
5.2.00.0080.0378.80
5.1.60.0070.0318.10
5.1.50.0060.0308.09
5.1.40.0040.0268.07
5.1.30.0060.0278.41
5.1.20.0030.0328.44
5.1.10.0060.0278.17
5.1.00.0060.0378.16
5.0.50.0080.0276.65
5.0.40.0060.0276.50
5.0.30.0060.0426.32
5.0.20.0070.0306.27
5.0.10.0160.0556.25
5.0.00.0100.0466.25
4.4.90.0110.0294.78
4.4.80.0110.0564.76
4.4.70.0040.0254.75
4.4.60.0070.0204.75
4.4.50.0050.0254.77
4.4.40.0100.0404.71
4.4.30.0060.0194.76
4.4.20.0050.0264.84
4.4.10.0090.0244.85
4.4.00.0060.0374.76
4.3.110.0070.0274.67
4.3.100.0060.0254.67
4.3.90.0060.0224.63
4.3.80.0080.0564.59
4.3.70.0060.0284.63
4.3.60.0040.0234.63
4.3.50.0050.0224.63
4.3.40.0070.0314.53
4.3.30.0030.0223.30
4.3.20.0030.0233.28
4.3.10.0050.0303.23
4.3.00.0130.0276.67

preferences:
42.16 ms | 401 KiB | 5 Q