3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Text { protected $text; public function __construct(string $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.0110.00716.50
8.3.50.0100.00822.12
8.3.40.0120.00319.02
8.3.30.0100.00319.18
8.3.20.0070.00020.25
8.3.10.0080.00023.48
8.3.00.0100.00017.25
8.2.180.0110.00418.04
8.2.170.0120.00322.96
8.2.160.0080.00820.55
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0070.00722.11
8.2.110.0060.00322.26
8.2.100.0000.01217.57
8.2.90.0090.00019.23
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0080.00018.04
8.2.50.0060.00318.07
8.2.40.0000.01118.22
8.2.30.0050.00217.90
8.2.20.0080.00017.66
8.2.10.0040.00417.93
8.2.00.0070.00317.66
8.1.280.0110.00425.92
8.1.270.0060.00324.00
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00623.82
8.1.230.0040.00719.10
8.1.220.0020.00517.74
8.1.210.0040.00418.77
8.1.200.0040.00417.13
8.1.190.0050.00317.40
8.1.180.0040.00418.10
8.1.170.0050.00318.58
8.1.160.0000.00721.95
8.1.150.0040.00418.52
8.1.140.0000.00917.20
8.1.130.0000.00717.73
8.1.120.0040.00417.37
8.1.110.0070.00017.35
8.1.100.0000.00717.42
8.1.90.0000.00717.38
8.1.80.0000.00817.36
8.1.70.0070.00017.41
8.1.60.0060.00617.47
8.1.50.0040.00417.52
8.1.40.0040.00417.41
8.1.30.0030.00517.64
8.1.20.0000.00717.55
8.1.10.0000.00717.50
8.1.00.0080.00017.54
8.0.300.0000.00718.77
8.0.290.0040.00416.93
8.0.280.0030.00318.45
8.0.270.0050.00217.13
8.0.260.0030.00317.23
8.0.250.0030.00316.95
8.0.240.0030.00316.85
8.0.230.0030.00316.83
8.0.220.0000.00716.89
8.0.210.0030.00316.91
8.0.200.0030.00316.86
8.0.190.0000.00716.80
8.0.180.0040.00416.92
8.0.170.0000.00816.89
8.0.160.0040.00416.97
8.0.150.0030.00616.83
8.0.140.0040.00416.82
8.0.130.0050.00013.41
8.0.120.0000.00716.88
8.0.110.0040.00416.80
8.0.100.0040.00416.86
8.0.90.0020.00516.69
8.0.80.0060.00916.89
8.0.70.0050.00216.83
8.0.60.0000.00716.68
8.0.50.0040.00416.86
8.0.30.0070.01016.96
8.0.20.0080.01017.40
8.0.10.0000.00817.12
8.0.00.0080.00916.69
7.4.330.0000.00515.00
7.4.320.0000.00816.28
7.4.300.0000.00716.51
7.4.290.0030.00316.57
7.4.280.0040.00416.53
7.4.270.0000.00816.55
7.4.260.0020.00516.53
7.4.250.0000.00716.40
7.4.240.0040.00316.49
7.4.230.0000.00716.32
7.4.220.0150.01116.56
7.4.210.0080.00616.43
7.4.200.0000.00716.65
7.4.190.0000.00716.58
7.4.160.0150.00416.44
7.4.150.0130.00717.40
7.4.140.0070.01017.86
7.4.130.0070.01216.46
7.4.120.0100.01016.54
7.4.110.0100.00616.39
7.4.100.0040.01316.40
7.4.90.0070.01016.45
7.4.80.0140.00819.39
7.4.70.0100.00616.31
7.4.60.0120.00316.21
7.4.50.0050.00316.41
7.4.40.0090.00622.77
7.4.30.0090.00816.22
7.4.00.0030.01014.79
7.3.330.0020.00213.05
7.3.320.0000.00513.26
7.3.310.0080.00016.29
7.3.300.0030.00316.28
7.3.290.0030.01216.14
7.3.280.0090.01216.22
7.3.270.0030.01317.40
7.3.260.0140.00316.57
7.3.250.0150.00316.29
7.3.240.0070.00916.43
7.3.230.0070.01016.40
7.3.210.0070.01016.38
7.3.200.0130.01019.39
7.3.190.0120.00616.36
7.3.180.0060.01016.52
7.3.170.0070.00816.41
7.3.160.0120.00416.27
7.3.120.0030.00914.69
7.2.330.0100.01616.50
7.2.320.0150.00316.66
7.2.310.0130.00316.75
7.2.300.0100.01016.67
7.2.290.0100.00616.57
7.2.60.0060.01016.86
7.2.00.0040.01119.48
7.1.200.0000.01215.80
7.1.100.0000.01017.77
7.1.70.0200.00417.06
7.1.60.0070.01319.46
7.1.50.0160.00916.61
7.1.00.0070.07322.28
7.0.200.0080.00016.74
7.0.140.0000.07722.19
7.0.60.0000.04319.95
7.0.50.0170.06717.96
7.0.40.0030.08720.11
7.0.30.0300.07720.06
7.0.20.0230.05320.06
7.0.10.0030.07720.25
7.0.00.0030.04320.33
5.6.280.0070.07021.08
5.6.210.0000.04720.48
5.6.200.0070.06318.18
5.6.190.0070.07320.39
5.6.180.0270.06320.64
5.6.170.0270.06020.57
5.6.160.0070.07020.54
5.6.150.0130.07718.28
5.6.140.0030.03718.27
5.6.130.0000.04318.27
5.6.120.0100.08021.00
5.6.110.0070.08320.96
5.6.100.0030.05021.14
5.6.90.0100.08321.02
5.6.80.0030.08320.53
5.6.70.4530.03320.52
5.5.350.0030.08020.44
5.5.340.0030.08317.93
5.5.330.0130.03720.35
5.5.320.0130.06320.19
5.5.310.0430.06320.26
5.5.300.0100.07717.98
5.5.290.0030.04318.06
5.5.280.0030.05020.74
5.5.270.0170.07020.78
5.5.260.0170.06720.76
5.5.250.0100.07020.72
5.5.240.0330.06320.13
5.4.450.0170.05719.33
5.4.440.0100.07019.29
5.4.430.0230.05319.44
5.4.420.0170.05719.62
5.4.410.0270.05319.32
5.4.400.0070.06019.32
5.4.390.0270.05719.22
5.4.380.0300.07718.75
5.4.370.0270.05018.70
5.4.360.0230.06018.72
5.4.350.0470.06018.80
5.4.340.0230.05318.61
5.4.320.0070.05012.51
5.4.310.0050.03912.50
5.4.300.0030.03912.50
5.4.290.0090.05212.49
5.4.280.0090.04512.38
5.4.270.0080.05212.38
5.4.260.0120.05612.38
5.4.250.0120.07412.38
5.4.240.0150.05812.38
5.4.230.0160.06412.37
5.4.220.0140.07812.38
5.4.210.0090.05412.38
5.4.200.0070.06012.38
5.4.190.0080.04612.37
5.4.180.0070.04312.38
5.4.170.0110.08112.38
5.4.160.0110.06512.38
5.4.150.0200.07112.38
5.4.140.0120.08212.06
5.4.130.0120.05812.05
5.4.120.0140.08012.00
5.4.110.0150.04712.00
5.4.100.0140.06512.00
5.4.90.0110.05912.00
5.4.80.0140.06412.00
5.4.70.0090.05412.00
5.4.60.0120.04912.00
5.4.50.0110.06712.00
5.4.40.0110.06411.98
5.4.30.0110.06211.98
5.4.20.0130.05211.98
5.4.10.0080.05911.98
5.4.00.0160.06211.47
5.3.290.0080.03812.80
5.3.280.0130.05712.70
5.3.270.0110.06112.73
5.3.260.0140.06212.71
5.3.250.0110.06012.72
5.3.240.0140.06012.72
5.3.230.0120.04912.71
5.3.220.0060.05312.68
5.3.210.0110.07612.68
5.3.200.0140.05312.68
5.3.190.0110.04212.68
5.3.180.0090.03912.68
5.3.170.0070.04312.67
5.3.160.0120.03912.67
5.3.150.0090.04212.67
5.3.140.0100.03912.66
5.3.130.0050.04612.65
5.3.120.0070.04512.66
5.3.110.0070.04712.66
5.3.100.0060.04112.13
5.3.90.0090.04012.11
5.3.80.0090.04412.10
5.3.70.0080.04512.10
5.3.60.0070.04712.09
5.3.50.0070.04012.04
5.3.40.0100.03812.03
5.3.30.0090.03811.99
5.3.20.0080.03711.77
5.3.10.0050.04211.73
5.3.00.0090.04111.72
5.2.170.0080.0319.23
5.2.160.0090.0309.22
5.2.150.0110.0389.23
5.2.140.0070.0369.22
5.2.130.0110.0359.18
5.2.120.0150.0679.18
5.2.110.0170.0729.19
5.2.100.0090.0399.18
5.2.90.0120.0449.18
5.2.80.0150.0429.18
5.2.70.0090.0439.18
5.2.60.0150.0449.13
5.2.50.0090.0429.11
5.2.40.0100.0439.08
5.2.30.0070.0439.06
5.2.20.0160.0589.05
5.2.10.0120.0528.95
5.2.00.0140.0468.81
5.1.60.0190.0608.09
5.1.50.0190.0538.09
5.1.40.0220.0748.07
5.1.30.0130.0498.42
5.1.20.0250.0528.45
5.1.10.0150.0698.17
5.1.00.0180.0808.17
5.0.50.0130.0626.65
5.0.40.0070.0276.51
5.0.30.0380.0806.32
5.0.20.0110.0396.29
5.0.10.0090.0496.26
5.0.00.0100.0586.25
4.4.90.0130.0414.78
4.4.80.0080.0454.75
4.4.70.0140.0444.76
4.4.60.0060.0434.75
4.4.50.0100.0414.77
4.4.40.0050.0534.71
4.4.30.0040.0244.76
4.4.20.0060.0194.84
4.4.10.0030.0204.85
4.4.00.0020.0324.75
4.3.110.0050.0234.67
4.3.100.0060.0404.66
4.3.90.0050.0224.64
4.3.80.0050.0374.59
4.3.70.0040.0194.63
4.3.60.0060.0294.62
4.3.50.0120.0384.63
4.3.40.0080.0414.54
4.3.30.0090.0383.30
4.3.20.0050.0323.28
4.3.10.0080.0443.24
4.3.00.0070.02013.47

preferences:
40.56 ms | 401 KiB | 5 Q