3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $a = 1, $b = 2, $c = 3; public function __construct() { echo $this->a, $this->b, $this->c; } } $t = new Test; // 123

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.0080.00818.28
8.3.50.0070.01216.36
8.3.40.0060.00918.73
8.3.30.0110.00418.46
8.3.20.0040.00418.80
8.3.10.0090.00018.56
8.3.00.0030.00719.38
8.2.180.0110.00716.75
8.2.170.0090.00922.96
8.2.160.0040.01118.84
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0110.00321.13
8.2.110.0030.00621.95
8.2.100.0090.00319.64
8.2.90.0000.00818.97
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00418.04
8.2.50.0090.00018.04
8.2.40.0040.00419.47
8.2.30.0000.00917.71
8.2.20.0080.00017.48
8.2.10.0040.00417.55
8.2.00.0080.00017.67
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0090.00320.96
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00517.23
8.1.180.0100.00018.10
8.1.170.0080.00017.62
8.1.160.0070.00019.00
8.1.150.0070.00018.47
8.1.140.0000.00717.42
8.1.130.0000.00717.38
8.1.120.0030.00617.30
8.1.110.0000.00717.36
8.1.100.0030.00417.34
8.1.90.0000.00817.27
8.1.80.0070.00017.28
8.1.70.0030.00317.35
8.1.60.0030.00517.48
8.1.50.0040.00417.34
8.1.40.0030.00617.51
8.1.30.0000.00817.64
8.1.20.0040.00417.57
8.1.10.0040.00417.53
8.1.00.0000.00817.48
8.0.300.0050.00218.77
8.0.290.0060.00316.63
8.0.280.0000.00718.57
8.0.270.0070.00017.17
8.0.260.0080.00016.83
8.0.250.0040.00416.86
8.0.240.0050.00216.96
8.0.230.0030.00616.74
8.0.220.0070.00016.86
8.0.210.0070.00016.81
8.0.200.0000.00816.74
8.0.190.0040.00416.88
8.0.180.0080.00016.78
8.0.170.0030.00616.74
8.0.160.0070.00016.83
8.0.150.0040.00416.71
8.0.140.0030.00516.84
8.0.130.0060.00013.24
8.0.120.0030.00616.79
8.0.110.0040.00416.64
8.0.100.0040.00416.81
8.0.90.0040.00416.69
8.0.80.0150.00016.71
8.0.70.0050.00216.86
8.0.60.0080.00016.66
8.0.50.0080.00016.60
8.0.30.0070.01416.80
8.0.20.0090.01617.26
8.0.10.0000.00716.72
8.0.00.0160.00316.79
7.4.330.0000.00513.04
7.4.320.0000.00716.57
7.4.300.0030.00316.46
7.4.290.0030.00416.49
7.4.280.0000.00716.57
7.4.270.0030.00316.43
7.4.260.0000.00513.23
7.4.250.0030.00516.47
7.4.240.0030.00316.48
7.4.230.0000.00716.32
7.4.220.0070.01516.46
7.4.210.0110.00316.54
7.4.200.0030.00316.69
7.4.190.0040.00416.57
7.4.160.0060.00916.48
7.4.150.0060.01216.45
7.4.140.0040.01417.86
7.4.130.0120.00616.45
7.4.120.0070.01016.51
7.4.110.0100.01316.42
7.4.100.0060.01116.62
7.4.90.0160.00316.47
7.4.80.0070.01019.39
7.4.70.0080.00816.47
7.4.60.0120.00316.57
7.4.50.0030.00616.28
7.4.40.0090.00916.39
7.4.30.0030.01316.40
7.4.00.0090.00614.85
7.3.330.0030.00313.09
7.3.320.0050.00013.21
7.3.310.0000.00616.26
7.3.300.0000.00716.09
7.3.290.0090.00716.24
7.3.280.0110.00816.23
7.3.270.0060.01216.27
7.3.260.0140.00316.42
7.3.240.0040.01216.36
7.3.230.0170.00016.45
7.3.210.0100.00716.18
7.3.200.0070.01016.20
7.3.190.0120.00316.40
7.3.180.0030.01416.30
7.3.170.0110.00816.45
7.3.160.0080.00816.46
7.3.120.0100.00714.69
7.2.330.0100.00716.45
7.2.320.0120.00616.55
7.2.310.0160.00516.70
7.2.300.0000.01616.79
7.2.290.0110.00616.36
7.2.00.0000.01319.13
7.1.100.0040.00817.88
7.1.70.0070.00716.99
7.1.60.0030.02019.25
7.1.50.0060.01616.77
7.1.00.0000.07722.26
7.0.200.0090.00316.64
7.0.140.0100.06021.99
7.0.120.0100.06322.08
7.0.60.0070.03719.78
7.0.50.0000.08717.95
7.0.40.0000.04720.26
7.0.30.0270.07020.17
7.0.20.0270.07020.19
7.0.10.0130.04320.30
7.0.00.0100.04020.10
5.6.280.0000.07721.15
5.6.210.0170.07720.55
5.6.200.0100.07018.18
5.6.190.0070.05320.64
5.6.180.0070.05020.67
5.6.170.0200.06020.56
5.6.160.0170.06720.50
5.6.150.0030.04018.29
5.6.140.0030.08718.24
5.6.130.0100.06318.28
5.6.120.0100.07721.12
5.6.110.0000.08320.97
5.6.100.0200.07320.96
5.6.90.0000.04321.12
5.6.80.0270.05320.43
5.5.350.0230.03720.33
5.5.340.0130.06317.95
5.5.330.0070.09320.25
5.5.320.3400.05020.41
5.5.310.0400.07320.34
5.5.300.0030.06717.99
5.5.290.0000.07718.00
5.5.280.0170.07720.85
5.5.270.0000.09020.85
5.5.260.0030.07020.77
5.5.250.0000.08720.62
5.5.240.0030.03020.35
5.4.450.0230.04725.16
5.4.440.0300.03725.16
5.4.430.0570.03025.16
5.4.420.0430.03725.16
5.4.410.0270.03725.16
5.4.400.0230.03725.16
5.4.390.0930.02025.16
5.4.380.0470.05025.16
5.4.370.0130.03325.16
5.4.360.0130.05325.16
5.4.350.0670.03725.16
5.4.340.0300.05325.16
5.4.320.0670.06025.16
5.4.310.0570.04025.16
5.4.300.0400.05325.16
5.4.290.0570.04325.16
5.4.280.0200.04325.16
5.4.270.0430.03725.16
5.4.260.0000.03325.16
5.4.250.0070.05325.16
5.4.240.0600.04725.16
5.4.230.0030.03025.16
5.4.220.0530.03025.16
5.4.210.0470.03325.16
5.4.200.0430.05025.16
5.4.190.0300.05325.16
5.4.180.0400.03025.16
5.4.170.0430.04025.16
5.4.160.0570.03725.16
5.4.150.0230.04725.16
5.4.140.0300.03725.16
5.4.130.0100.03025.16
5.4.120.0370.03325.16
5.4.110.0470.05025.16
5.4.100.0430.03325.16
5.4.90.0230.04025.16
5.4.80.0330.03725.16
5.4.70.0430.03325.16
5.4.60.0200.03725.16
5.4.50.0530.04025.16
5.4.40.0770.03725.16
5.4.30.0470.04025.16
5.4.20.0600.03325.16
5.4.10.0470.03725.16
5.4.00.0330.04025.16
5.3.290.0400.04025.16
5.3.280.0830.03325.16
5.3.270.0270.04725.16
5.3.260.0600.03325.16
5.3.250.0400.02725.16
5.3.240.0230.03325.16
5.3.230.0100.02725.16
5.3.220.0230.03725.16
5.3.210.0400.04325.16
5.3.200.0370.03725.16
5.3.190.0070.04725.16
5.3.180.0200.05325.16
5.3.170.0630.03025.16
5.3.160.0570.04025.16
5.3.150.0370.04025.16
5.3.140.0500.04325.16
5.3.130.0370.03725.16
5.3.120.0530.05025.16
5.3.110.0530.07725.16
5.3.100.0300.05325.16
5.3.90.0400.03325.16
5.3.80.0330.03725.16
5.3.70.0370.03325.16
5.3.60.0130.03725.16
5.3.50.0370.03025.16
5.3.40.0300.04025.16
5.3.30.0630.03725.16
5.3.20.0570.03025.16
5.3.10.0770.03025.16
5.3.00.0500.03725.16
5.2.170.0100.03725.16
5.2.160.0270.02725.16
5.2.150.0170.04325.16
5.2.140.0500.04025.16
5.2.130.0430.04025.16
5.2.120.0300.03325.16
5.2.110.0600.03025.16
5.2.100.0570.03325.16
5.2.90.0270.03325.16
5.2.80.0700.03325.16
5.2.70.0470.03025.16
5.2.60.0800.02725.16
5.2.50.0630.03325.16
5.2.40.0470.04025.16
5.2.30.0500.04325.16
5.2.20.0270.03025.16
5.2.10.0130.03325.16
5.2.00.0470.03325.16
5.1.60.0100.01725.16
5.1.50.0570.02725.16
5.1.40.0600.02025.16
5.1.30.0200.04025.16
5.1.20.0670.03025.16
5.1.10.0300.02725.16
5.1.00.0400.03725.16
5.0.50.0330.02025.16
5.0.40.0370.01325.16
5.0.30.0330.03725.16
5.0.20.0030.02325.16
5.0.10.0230.01725.16
5.0.00.0200.03325.16
4.4.90.0030.02325.16
4.4.80.0030.01325.16
4.4.70.0370.01325.16
4.4.60.0000.01725.16
4.4.50.0300.01325.16
4.4.40.0200.02025.16
4.4.30.0330.01025.16
4.4.20.0300.01725.16
4.4.10.0100.01325.16
4.4.00.0230.02325.16
4.3.110.0200.01325.16
4.3.100.0130.02025.16
4.3.90.0200.01725.16
4.3.80.0300.02325.16
4.3.70.0270.02025.16
4.3.60.0270.01325.16
4.3.50.0230.02025.16
4.3.40.0100.02325.16
4.3.30.0030.02025.16
4.3.20.0000.02025.16
4.3.10.0130.01325.16
4.3.00.0030.02025.16

preferences:
36.58 ms | 401 KiB | 5 Q