3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Text { protected $text; public function __construct(void $text) { $this->text = $text; } public function hello() { return $this->text; } } var_dump((new Text(1))->hello());

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.0070.01016.63
8.3.50.0110.01121.98
8.3.40.0120.00318.71
8.3.30.0070.00718.97
8.3.20.0080.00020.21
8.3.10.0090.00023.33
8.3.00.0110.00017.50
8.2.180.0090.00916.38
8.2.170.0070.00722.96
8.2.160.0070.00720.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.03
8.2.110.0000.00922.29
8.2.100.0080.00417.91
8.2.90.0000.00819.11
8.2.80.0080.00017.97
8.2.70.0040.00417.13
8.2.60.0040.00417.91
8.2.50.0030.00618.07
8.2.40.0040.00418.09
8.2.30.0000.00817.92
8.2.20.0000.00817.42
8.2.10.0000.00717.79
8.2.00.0030.00817.52
8.1.280.0070.00725.92
8.1.270.0090.00623.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00823.87
8.1.230.0040.00719.09
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00316.88
8.1.190.0000.00817.16
8.1.180.0000.00918.10
8.1.170.0040.00418.49
8.1.160.0000.00721.94
8.1.150.0050.00218.50
8.1.140.0110.00017.32
8.1.130.0030.00317.63
8.1.120.0030.00617.34
8.1.110.0040.00417.34
8.1.100.0000.00717.17
8.1.90.0040.00417.36
8.1.80.0070.00017.31
8.1.70.0000.00717.19
8.1.60.0080.00417.48
8.1.50.0040.00417.43
8.1.40.0000.00717.34
8.1.30.0040.00417.50
8.1.20.0040.00417.34
8.1.10.0000.00717.27
8.1.00.0040.00417.29
8.0.300.0070.00018.77
8.0.290.0050.00317.03
8.0.280.0030.00518.29
8.0.270.0030.00317.12
8.0.260.0080.00017.03
8.0.250.0030.00316.80
8.0.240.0030.00316.79
8.0.230.0070.00016.87
8.0.220.0000.00716.78
8.0.210.0040.00416.80
8.0.200.0060.00016.79
8.0.190.0000.00716.88
8.0.180.0060.00316.81
8.0.170.0000.00816.83
8.0.160.0040.00416.88
8.0.150.0050.00316.77
8.0.140.0030.00516.78
8.0.130.0030.00313.14
8.0.120.0040.00416.79
8.0.110.0000.00716.86
8.0.100.0070.00016.80
8.0.90.0080.00016.86
8.0.80.0120.00316.87
8.0.70.0030.00516.81
8.0.60.0070.00016.88
8.0.50.0030.00516.77
8.0.30.0150.00817.02
8.0.20.0060.01317.40
8.0.10.0000.00916.79
8.0.00.0080.00816.61
7.4.330.0060.00015.00
7.4.320.0040.00416.37
7.4.300.0000.00716.48
7.4.290.0030.00316.46
7.4.280.0070.00016.48
7.4.270.0030.00516.41
7.4.260.0040.00416.43
7.4.250.0000.00716.41
7.4.240.0040.00316.39
7.4.230.0000.00716.34
7.4.220.0120.00916.35
7.4.210.0060.01016.43
7.4.200.0000.00716.34
7.4.190.0070.00016.27
7.4.160.0100.01316.21
7.4.150.0000.01617.40
7.4.140.0080.00817.86
7.4.130.0120.00516.31
7.4.120.0100.00716.39
7.4.110.0060.00916.35
7.4.100.0110.00816.45
7.4.90.0030.01316.38
7.4.80.0000.01719.39
7.4.70.0060.00916.39
7.4.60.0060.01016.52
7.4.50.0030.00516.33
7.4.40.0000.01522.77
7.4.30.0050.01116.41
7.4.00.0040.01415.05
7.3.330.0020.00313.10
7.3.320.0000.00513.22
7.3.310.0000.00716.33
7.3.300.0070.00016.15
7.3.290.0070.00716.28
7.3.280.0080.01016.21
7.3.270.0100.00717.40
7.3.260.0180.02716.52
7.3.250.0090.00716.32
7.3.240.0130.00316.21
7.3.230.0150.00616.39
7.3.210.0270.00916.14
7.3.200.0110.00819.39
7.3.190.0040.01216.23
7.3.180.0090.00616.34
7.3.170.0060.00916.42
7.3.160.0060.00916.27
7.3.120.0030.00914.73
7.3.10.0060.00716.51
7.3.00.0060.00516.57
7.2.330.0110.00716.35
7.2.320.0140.00416.52
7.2.310.0170.00716.55
7.2.300.0080.00816.51
7.2.290.0100.00616.21
7.2.130.0080.00316.64
7.2.120.0070.00716.53
7.2.110.0050.00716.57
7.2.100.0050.00516.80
7.2.90.0060.00616.91
7.2.80.0060.00616.82
7.2.70.0030.00716.65
7.2.60.0040.01016.76
7.2.50.0070.00716.59
7.2.40.0030.01016.55
7.2.30.0030.00816.52
7.2.20.0010.01116.76
7.2.10.0050.00716.71
7.2.00.0090.00217.55
7.1.250.0030.01015.51
7.1.200.0030.00315.67
7.1.100.0040.00717.91
7.1.70.0130.00916.82
7.1.60.0070.00719.46
7.1.50.0100.01416.49
7.1.00.0070.07322.45
7.0.200.0000.00716.67
7.0.140.0000.07721.92
7.0.60.0070.08319.95
7.0.50.0100.07317.89
7.0.40.0070.07320.40
7.0.30.0270.05020.12
7.0.20.0270.07020.13
7.0.10.0000.08320.16
7.0.00.0000.05320.06
5.6.280.0030.07321.02
5.6.210.0200.06720.72
5.6.200.0130.07318.27
5.6.190.0100.08020.61
5.6.180.0200.08320.46
5.6.170.0470.06720.55
5.6.160.0000.06720.54
5.6.150.0030.05018.14
5.6.140.0070.08318.30
5.6.130.0170.06318.21
5.6.120.0130.08021.00
5.6.110.0130.08020.89
5.6.100.0100.03721.14
5.6.90.0070.03721.05
5.6.80.0100.07320.53
5.6.70.4200.04320.37
5.5.350.0170.07720.41
5.5.340.0100.07017.98
5.5.330.0000.04720.46
5.5.320.0370.06020.20
5.5.310.0200.03320.26
5.5.300.0070.04317.95
5.5.290.0100.08017.93
5.5.280.0030.07320.90
5.5.270.0200.07020.65
5.5.260.0170.07020.76
5.5.250.0100.07320.47
5.5.240.0370.06020.24
5.4.450.0230.06019.63
5.4.440.0330.04019.61
5.4.430.0230.05019.48
5.4.420.0200.05319.15
5.4.410.0170.05319.20
5.4.400.0230.06019.30
5.4.390.0270.06319.22
5.4.380.0430.06018.45
5.4.370.0330.05718.76
5.4.360.0270.05318.74
5.4.350.0300.07718.71
5.4.340.0330.05718.75
5.4.320.0060.04412.51
5.4.310.0060.03812.50
5.4.300.0090.04112.50
5.4.290.0090.05812.48
5.4.280.0050.05412.38
5.4.270.0140.05712.38
5.4.260.0120.06312.38
5.4.250.0070.04412.38
5.4.240.0140.06012.38
5.4.230.0110.03812.37
5.4.220.0110.03712.38
5.4.210.0060.03912.38
5.4.200.0050.05012.38
5.4.190.0080.04312.37
5.4.180.0110.04612.37
5.4.170.0110.04912.38
5.4.160.0110.04612.38
5.4.150.0110.04312.37
5.4.140.0100.04912.06
5.4.130.0170.08212.04
5.4.120.0120.04612.00
5.4.110.0310.08312.00
5.4.100.0110.04812.00
5.4.90.0100.05512.00
5.4.80.0110.05512.00
5.4.70.0120.06512.00
5.4.60.0210.08912.00
5.4.50.0180.06911.99
5.4.40.0350.08811.98
5.4.30.0100.05111.98
5.4.20.0130.04911.98
5.4.10.0120.05411.98
5.4.00.0080.05711.47
5.3.290.0100.03912.80
5.3.280.0130.04712.71
5.3.270.0100.04312.73
5.3.260.0100.05512.71
5.3.250.0200.07512.72
5.3.240.0140.05512.72
5.3.230.0150.06812.70
5.3.220.0050.04512.68
5.3.210.0130.05812.68
5.3.200.0080.06412.68
5.3.190.0080.05712.68
5.3.180.0070.05512.68
5.3.170.0090.05812.67
5.3.160.0130.06112.67
5.3.150.0080.04112.68
5.3.140.0050.04112.66
5.3.130.0090.03912.66
5.3.120.0100.04012.65
5.3.110.0100.05412.66
5.3.100.0110.04612.13
5.3.90.0090.05512.11
5.3.80.0080.05312.10
5.3.70.0080.06612.10
5.3.60.0060.05312.09
5.3.50.0080.05012.03
5.3.40.0080.05712.03
5.3.30.0060.05311.99
5.3.20.0110.04511.77
5.3.10.0080.03911.73
5.3.00.0090.03911.73
5.2.170.0070.0309.22
5.2.160.0060.0299.23
5.2.150.0050.0419.23
5.2.140.0060.0339.22
5.2.130.0060.0299.18
5.2.120.0090.0479.18
5.2.110.0080.0349.19
5.2.100.0050.0449.19
5.2.90.0070.0309.19
5.2.80.0100.0329.19
5.2.70.0100.0309.18
5.2.60.0060.0329.14
5.2.50.0080.0429.10
5.2.40.0050.0369.08
5.2.30.0080.0389.05
5.2.20.0080.0319.04
5.2.10.0050.0428.95
5.2.00.0070.0428.81
5.1.60.0090.0238.09
5.1.50.0070.0348.09
5.1.40.0070.0308.07
5.1.30.0070.0258.42
5.1.20.0050.0438.45
5.1.10.0110.0378.16
5.1.00.0060.0378.17
5.0.50.0080.0246.65
5.0.40.0050.0276.51
5.0.30.0040.0446.32
5.0.20.0050.0226.29
5.0.10.0030.0236.26
5.0.00.0070.0316.25
4.4.90.0010.0214.78
4.4.80.0050.0154.76
4.4.70.0020.0194.75
4.4.60.0030.0164.76
4.4.50.0020.0164.77
4.4.40.0040.0254.71
4.4.30.0030.0164.76
4.4.20.0050.0154.84
4.4.10.0040.0164.85
4.4.00.0050.0254.76
4.3.110.0020.0184.67
4.3.100.0050.0134.67
4.3.90.0030.0144.63
4.3.80.0020.0264.59
4.3.70.0090.0254.63
4.3.60.0070.0204.63
4.3.50.0050.0214.62
4.3.40.0060.0264.53
4.3.30.0030.0213.30
4.3.20.0060.0273.28
4.3.10.0040.0193.23
4.3.00.0000.01310.30

preferences:
35.13 ms | 400 KiB | 5 Q