3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public $foo; protected $bar; private $baz = 'baz'; public function __construct($bar) { $this->bar = $bar; } } $c = new C('bar'); $c->foo = 'foo'; echo serialize($c);

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.0100.00318.30
8.3.50.0100.00821.89
8.3.40.0040.01118.67
8.3.30.0180.00019.04
8.3.20.0040.00420.16
8.3.10.0000.00823.43
8.3.00.0000.00820.87
8.2.180.0040.01116.50
8.2.170.0110.01122.96
8.2.160.0100.00320.43
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0080.00026.16
8.2.120.0040.00420.97
8.2.110.0110.01122.15
8.2.100.0070.00320.34
8.2.90.0000.01119.25
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0050.00317.68
8.2.50.0060.00318.07
8.2.40.0040.00419.85
8.2.30.0060.00318.29
8.2.20.0050.00317.73
8.2.10.0040.00417.86
8.2.00.0080.00017.61
8.1.280.0100.00325.92
8.1.270.0050.00323.92
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00022.14
8.1.230.0070.00319.10
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.10
8.1.190.0080.00017.13
8.1.180.0030.00618.10
8.1.170.0000.00818.59
8.1.160.0020.00521.87
8.1.150.0040.00418.48
8.1.140.0000.00717.29
8.1.130.0030.00317.89
8.1.120.0020.00517.49
8.1.110.0070.00017.44
8.1.100.0000.00717.43
8.1.90.0040.00717.38
8.1.80.0060.00617.28
8.1.70.0020.00517.35
8.1.60.0030.00617.56
8.1.50.0000.00817.49
8.1.40.0040.00417.52
8.1.30.0000.00817.55
8.1.20.0000.00717.68
8.1.10.0000.00717.59
8.1.00.0040.00417.43
8.0.300.0030.00718.77
8.0.290.0040.00416.75
8.0.280.0050.00218.44
8.0.270.0070.00017.16
8.0.260.0000.00617.24
8.0.250.0070.00016.94
8.0.240.0030.00516.94
8.0.230.0000.00716.77
8.0.220.0030.00316.82
8.0.210.0040.00416.71
8.0.200.0000.00616.92
8.0.190.0040.00416.94
8.0.180.0040.00416.84
8.0.170.0000.00816.89
8.0.160.0040.00416.70
8.0.150.0040.00416.76
8.0.140.0040.00416.75
8.0.130.0050.00013.25
8.0.120.0100.00016.80
8.0.110.0040.00416.76
8.0.100.0050.00216.77
8.0.90.0040.00416.86
8.0.80.0070.00716.74
8.0.70.0040.00416.70
8.0.60.0040.00416.77
8.0.50.0040.00416.71
8.0.30.0130.00617.04
8.0.20.0100.00817.40
8.0.10.0000.00716.84
8.0.00.0080.01116.85
7.4.330.0060.00015.00
7.4.320.0000.00716.36
7.4.300.0000.00816.48
7.4.290.0030.00316.56
7.4.280.0000.01016.60
7.4.270.0030.00316.41
7.4.260.0000.01116.56
7.4.250.0040.00416.38
7.4.240.0020.00516.50
7.4.230.0000.00716.57
7.4.220.0060.01216.53
7.4.210.0030.01416.52
7.4.200.0030.00316.68
7.4.190.0000.00716.73
7.4.160.0130.00416.25
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0050.01216.46
7.4.120.0140.00716.48
7.4.110.0030.02016.54
7.4.100.0060.01616.41
7.4.90.0130.01016.46
7.4.80.0120.00819.39
7.4.70.0040.01216.58
7.4.60.0090.00916.46
7.4.50.0050.00016.69
7.4.40.0070.01016.41
7.4.30.0050.00916.64
7.4.00.0030.01414.91
7.3.330.0030.00313.22
7.3.320.0050.00013.27
7.3.310.0050.00216.19
7.3.300.0040.00416.34
7.3.290.0030.01016.31
7.3.280.0080.01216.26
7.3.270.0090.00917.40
7.3.260.0100.00716.34
7.3.250.0140.00616.30
7.3.240.0120.00616.38
7.3.230.0030.01316.54
7.3.210.0090.01516.44
7.3.200.0120.01219.39
7.3.190.0110.01216.38
7.3.180.0090.00616.33
7.3.170.0140.00816.36
7.3.160.0140.00316.56
7.3.120.0070.01114.83
7.2.330.0090.00916.74
7.2.320.0130.00316.44
7.2.310.0030.01216.74
7.2.300.0080.00816.65
7.2.290.0100.00716.77
7.2.00.0070.00719.29
7.1.100.0000.00918.19
7.1.70.0070.00417.10
7.1.60.0110.01419.70
7.1.50.0210.00716.60
7.1.00.0070.07322.32
7.0.200.0250.00316.66
7.0.140.0100.06722.12
7.0.60.0130.07719.96
7.0.50.0100.06717.89
7.0.40.0070.08720.30
7.0.30.0370.07020.34
7.0.20.0300.06320.08
7.0.10.0000.04720.06
7.0.00.0030.05320.16
5.6.280.0030.07020.91
5.6.210.0100.07720.55
5.6.200.0030.05018.29
5.6.190.0030.04720.35
5.6.180.0130.04720.61
5.6.170.0230.07020.62
5.6.160.0000.05720.44
5.6.150.0070.07018.16
5.6.140.0070.05018.18
5.6.130.0070.04318.30
5.6.120.0100.06320.97
5.6.110.0030.04021.03
5.6.100.0070.04721.01
5.6.90.0030.04720.92
5.6.80.0070.05720.51
5.5.350.0030.04020.30
5.5.340.0100.07717.99
5.5.330.0070.06720.26
5.5.320.0330.06320.24
5.5.310.0270.08020.23
5.5.300.0000.06018.06
5.5.290.0030.08717.95
5.5.280.0130.07720.89
5.5.270.0070.08720.85
5.5.260.0030.04320.96
5.5.250.0200.07020.79
5.5.240.0030.07320.26
5.4.450.0270.04025.72
5.4.440.0330.03725.89
5.4.430.0170.04025.28
5.4.420.0370.04320.86
5.4.410.0270.03720.21
5.4.400.0430.03019.14
5.4.390.0400.04019.01
5.4.380.0500.06718.56
5.4.370.0370.04718.78
5.4.360.0300.05718.69
5.4.350.0400.05318.76
5.4.340.0370.05318.78
5.4.320.0040.04012.50
5.4.310.0060.03912.50
5.4.300.0070.07412.50
5.4.290.0090.06112.50
5.4.280.0110.04212.39
5.4.270.0080.04812.39
5.4.260.0070.04212.40
5.4.250.0060.04012.39
5.4.240.0050.04112.39
5.4.230.0050.04112.39
5.4.220.0090.04812.39
5.4.210.0080.03912.39
5.4.200.0090.03712.39
5.4.190.0040.04012.39
5.4.180.0120.05312.38
5.4.170.0140.04612.40
5.4.160.0070.05012.39
5.4.150.0080.04912.39
5.4.140.0070.04312.07
5.4.130.0060.05112.06
5.4.120.0070.05712.02
5.4.110.0050.04512.01
5.4.100.0130.04612.01
5.4.90.0090.05212.01
5.4.80.0110.05112.01
5.4.70.0160.05612.01
5.4.60.0100.07112.01
5.4.50.0100.04812.01
5.4.40.0200.10512.00
5.4.30.0150.07412.00
5.4.20.0150.08012.00
5.4.10.0140.06812.00
5.4.00.0090.04211.48
5.3.290.0040.04212.80
5.3.280.0110.04912.71
5.3.270.0070.04412.72
5.3.260.0060.05212.72
5.3.250.0110.05012.72
5.3.240.0070.04412.72
5.3.230.0070.04012.71
5.3.220.0050.04312.68
5.3.210.0110.03912.68
5.3.200.0110.04312.68
5.3.190.0080.04012.67
5.3.180.0120.03812.68
5.3.170.0120.03712.66
5.3.160.0100.04312.67
5.3.150.0110.03812.68
5.3.140.0060.04212.66
5.3.130.0080.04812.65
5.3.120.0060.04412.66
5.3.110.0090.05212.65
5.3.100.0090.04312.12
5.3.90.0100.05012.09
5.3.80.0080.05712.09
5.3.70.0140.05512.09
5.3.60.0060.06012.07
5.3.50.0070.05612.02
5.3.40.0080.05512.02
5.3.30.0090.05411.98
5.3.20.0310.08311.77
5.3.10.0110.05911.72
5.3.00.0130.05211.71
5.2.170.0100.0509.22
5.2.160.0090.0789.21
5.2.150.0110.0579.22
5.2.140.0130.0509.21
5.2.130.0050.0619.17
5.2.120.0170.0699.18
5.2.110.0120.0429.18
5.2.100.0100.0449.18
5.2.90.0070.0419.18
5.2.80.0080.0439.18
5.2.70.0110.0549.18
5.2.60.0090.0429.12
5.2.50.0110.0379.09
5.2.40.0070.0389.07
5.2.30.0060.0429.05
5.2.20.0050.0409.03
5.2.10.0110.0418.94
5.2.00.0080.0418.81
5.1.60.0060.0408.09
5.1.50.0060.0418.08
5.1.40.0180.0548.07
5.1.30.0150.0448.42
5.1.20.0110.0468.44
5.1.10.0070.0388.16
5.1.00.0060.0398.16
5.0.50.0060.0286.64
5.0.40.0030.0286.49
5.0.30.0020.0446.31
5.0.20.0050.0316.28
5.0.10.0050.0286.25
5.0.00.0030.0436.25
4.4.90.0020.0404.77
4.4.80.0040.0244.76
4.4.70.0100.0314.75
4.4.60.0060.0204.76
4.4.50.0020.0224.77
4.4.40.0040.0474.71
4.4.30.0040.0254.76
4.4.20.0070.0224.85
4.4.10.0050.0234.85
4.4.00.0050.0354.76
4.3.110.0070.0374.67
4.3.100.0130.0374.67
4.3.90.0090.0344.64
4.3.80.0020.0554.58
4.3.70.0090.0364.63
4.3.60.0100.0304.63
4.3.50.0050.0234.63
4.3.40.0080.0594.54
4.3.30.0070.0393.30
4.3.20.0110.0663.28
4.3.10.0020.0403.23
4.3.00.0000.02018.67

preferences:
51.15 ms | 400 KiB | 5 Q