3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooX { public $bar = 'barValue'; protected $baz = array('bazValue'=>"sdfsdf","test"=>"sdfdsf"); private $tab = 'tabValue'; function __construct(){ return array($this->baz); } } $data = new FooX(); echo $data->baz;

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.00718.56
8.3.50.0120.00722.82
8.3.40.0070.00718.71
8.3.30.0030.00919.16
8.3.20.0000.00820.34
8.3.10.0080.00021.66
8.3.00.0050.00319.38
8.2.180.0070.01116.75
8.2.170.0090.00622.96
8.2.160.0050.01020.11
8.2.150.0170.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.16
8.2.110.0060.00319.20
8.2.100.0040.00717.78
8.2.90.0040.00417.84
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0040.00418.04
8.2.50.0000.00818.10
8.2.40.0000.00920.60
8.2.30.0040.00419.47
8.2.20.0040.00417.85
8.2.10.0040.00418.12
8.2.00.0000.00817.70
8.1.280.0120.00625.92
8.1.270.0000.00823.85
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0060.00622.75
8.1.220.0030.00617.74
8.1.210.0040.00418.91
8.1.200.0050.00317.48
8.1.190.0000.00817.11
8.1.180.0000.00818.10
8.1.170.0060.00318.51
8.1.160.0070.00021.92
8.1.150.0070.00018.93
8.1.140.0000.00717.46
8.1.130.0000.00717.73
8.1.120.0070.00017.46
8.1.110.0000.00817.44
8.1.100.0030.00317.36
8.1.90.0000.00717.41
8.1.80.0050.00317.44
8.1.70.0040.00417.38
8.1.60.0000.00817.63
8.1.50.0030.00617.50
8.1.40.0070.00017.51
8.1.30.0080.00017.52
8.1.20.0030.00617.57
8.1.10.0070.00017.55
8.1.00.0080.00017.43
8.0.300.0000.00719.89
8.0.290.0000.00916.75
8.0.280.0030.00318.36
8.0.270.0030.00317.15
8.0.260.0070.00017.24
8.0.250.0000.00717.02
8.0.240.0000.00616.85
8.0.230.0080.00016.98
8.0.220.0030.00516.98
8.0.210.0030.00316.98
8.0.200.0060.00017.05
8.0.190.0030.00317.01
8.0.180.0000.00716.88
8.0.170.0030.00517.05
8.0.160.0000.00816.86
8.0.150.0000.00716.78
8.0.140.0040.00416.83
8.0.130.0000.00613.43
8.0.120.0040.00416.82
8.0.110.0070.00016.82
8.0.100.0000.00716.85
8.0.90.0040.00416.83
8.0.80.0150.00616.93
8.0.70.0040.00416.90
8.0.60.0050.00317.02
8.0.50.0040.00417.04
8.0.30.0160.00917.11
8.0.20.0140.00417.40
8.0.10.0040.00417.14
8.0.00.0090.00716.88
7.4.330.0000.00515.15
7.4.320.0030.00316.60
7.4.300.0000.00716.62
7.4.290.0000.00716.59
7.4.280.0040.00416.48
7.4.270.0030.00316.61
7.4.260.0030.00316.58
7.4.250.0060.00316.43
7.4.240.0000.00716.55
7.4.230.0030.00316.30
7.4.220.0110.00816.57
7.4.210.0140.00016.43
7.4.200.0050.00216.70
7.4.160.0180.01116.64
7.4.150.0120.00617.40
7.4.140.0070.01117.86
7.4.130.0090.00816.50
7.4.120.0070.00916.63
7.4.110.0100.00716.69
7.4.100.0190.00316.44
7.4.90.0070.01016.40
7.4.80.0100.01319.39
7.4.70.0100.00716.43
7.4.60.0060.00916.58
7.4.50.0000.00416.59
7.4.40.0060.01016.60
7.4.30.0030.01216.70
7.4.00.0080.00814.90
7.3.330.0000.00713.24
7.3.320.0000.00513.35
7.3.310.0000.00716.37
7.3.300.0070.00016.36
7.3.290.0000.01316.29
7.3.280.0070.01016.32
7.3.270.0090.00917.40
7.3.260.0110.00716.33
7.3.250.0100.00816.37
7.3.240.0060.00916.48
7.3.230.0130.00716.39
7.3.210.0100.00616.50
7.3.200.0130.00319.39
7.3.190.0040.01716.38
7.3.180.0060.00916.48
7.3.170.0130.00316.50
7.3.160.0030.01716.41
7.3.120.0070.01214.87
7.3.110.0040.01114.81
7.3.100.0030.00814.96
7.3.90.0090.00714.91
7.3.80.0050.00914.84
7.3.70.0080.00314.73
7.3.60.0020.01014.84
7.3.50.0080.00714.63
7.3.40.0030.01414.80
7.3.30.0050.00514.67
7.3.20.0020.01216.39
7.3.10.0100.00616.70
7.3.00.0030.00816.59
7.2.330.0070.01116.64
7.2.320.0030.01416.43
7.2.310.0030.01516.60
7.2.300.0060.01116.44
7.2.290.0000.01916.58
7.2.250.0090.00915.25
7.2.240.0080.01015.08
7.2.230.0060.00915.12
7.2.220.0030.01114.91
7.2.210.0080.00514.94
7.2.200.0070.00815.00
7.2.190.0070.00815.11
7.2.180.0030.01114.96
7.2.170.0100.00314.81
7.2.160.0090.00614.75
7.2.150.0030.00616.85
7.2.140.0000.01416.85
7.2.130.0040.01116.93
7.2.120.0030.01516.66
7.2.110.0070.00716.75
7.2.100.0000.01216.66
7.2.90.0030.01417.10
7.2.80.0060.00617.04
7.2.70.0060.01216.92
7.2.60.0000.01216.79
7.2.50.0070.00716.96
7.2.40.0030.01217.01
7.2.30.0040.00817.13
7.2.20.0080.00816.91
7.2.10.0060.00316.72
7.2.00.0030.01316.95
7.1.330.0070.00515.77
7.1.320.0050.01015.69
7.1.310.0070.00715.84
7.1.300.0060.00815.76
7.1.290.0050.00815.52
7.1.280.0040.00615.56
7.1.270.0040.00815.80
7.1.260.0090.00315.79
7.1.250.0060.00615.91
7.1.200.0060.00615.75
7.1.100.0060.00918.00
7.1.70.0040.01517.02
7.1.60.0060.01219.46
7.1.50.0100.01316.94
7.1.00.0130.06322.54
7.0.200.0410.01014.74
7.0.140.0070.07021.95
7.0.60.0100.07320.03
7.0.50.0070.04017.84
7.0.40.0070.07720.40
7.0.30.0230.05320.08
7.0.20.0300.08020.30
7.0.10.0100.08320.30
7.0.00.0030.04320.20
5.6.280.0070.07021.12
5.6.210.0070.07320.70
5.6.200.0100.08018.16
5.6.190.0170.06320.55
5.6.180.0370.03720.52
5.6.170.0270.05320.53
5.6.160.0070.04720.46
5.6.150.0130.07018.18
5.6.140.0070.08318.24
5.6.130.0100.07718.28
5.6.120.0070.03720.91
5.6.110.0070.08021.13
5.6.100.0130.07721.11
5.6.90.0130.07721.10
5.6.80.0070.03720.33
5.5.350.0230.07720.43
5.5.340.0030.05018.08
5.5.330.0070.04020.36
5.5.320.0470.07720.34
5.5.310.0170.04320.29
5.5.300.0130.05717.95
5.5.290.0030.07017.96
5.5.280.0030.06320.78
5.5.270.0030.08320.75
5.5.260.0130.05020.84
5.5.250.0070.03720.69
5.5.240.0200.02320.18
5.4.450.0270.04019.41
5.4.440.0230.04319.46
5.4.430.0200.04019.52
5.4.420.0100.04719.41
5.4.410.0300.03719.39
5.4.400.0630.04719.32
5.4.390.0470.05019.08
5.4.380.0170.07318.73
5.4.370.0500.05718.61
5.4.360.0430.04718.78
5.4.350.0370.06018.73
5.4.340.0300.05318.73
5.4.320.0070.04212.50
5.4.310.0050.04512.50
5.4.300.0040.04312.50
5.4.290.0050.04212.50
5.4.280.0130.03212.39
5.4.270.0040.03712.39
5.4.260.0050.03812.39
5.4.250.0040.03912.40
5.4.240.0060.03512.39
5.4.230.0080.03512.39
5.4.220.0070.04712.38
5.4.210.0040.03812.39
5.4.200.0060.03812.39
5.4.190.0080.04212.38
5.4.180.0040.03812.38
5.4.170.0060.04212.39
5.4.160.0050.03612.39
5.4.150.0040.03712.39
5.4.140.0020.04012.07
5.4.130.0070.03412.06
5.4.120.0040.03812.02
5.4.110.0070.03412.01
5.4.100.0050.03612.01
5.4.90.0070.03512.01
5.4.80.0060.03712.02
5.4.70.0090.03412.01
5.4.60.0100.04112.01
5.4.50.0050.04312.00
5.4.40.0100.04112.00
5.4.30.0070.04012.00
5.4.20.0080.03812.00
5.4.10.0040.03811.99
5.4.00.0050.03611.48
5.3.290.0070.06012.80
5.3.280.0080.03912.70
5.3.270.0090.05512.72
5.3.260.0030.04412.72
5.3.250.0030.03812.72
5.3.240.0030.04012.72
5.3.230.0060.03712.71
5.3.220.0040.03712.68
5.3.210.0070.05112.68
5.3.200.0040.04412.68
5.3.190.0080.03912.68
5.3.180.0070.03612.67
5.3.170.0050.03712.67
5.3.160.0090.03312.67
5.3.150.0040.03812.67
5.3.140.0100.03112.66
5.3.130.0030.04912.66
5.3.120.0070.03712.66
5.3.110.0090.03912.66
5.3.100.0080.03312.12
5.3.90.0100.04312.11
5.3.80.0090.03712.09
5.3.70.0050.04312.09
5.3.60.0110.04312.07
5.3.50.0050.04012.03
5.3.40.0090.04512.02
5.3.30.0100.03611.99
5.3.20.0050.03611.76
5.3.10.0040.04211.73
5.3.00.0050.04711.72
5.2.170.0080.0439.22
5.2.160.0070.0469.22
5.2.150.0080.0289.22
5.2.140.0040.0379.21
5.2.130.0030.0309.18
5.2.120.0060.0359.18
5.2.110.0060.0309.18
5.2.100.0060.0319.18
5.2.90.0040.0309.18
5.2.80.0060.0299.18
5.2.70.0040.0319.18
5.2.60.0010.0349.13
5.2.50.0100.0329.09
5.2.40.0050.0319.07
5.2.30.0030.0339.05
5.2.20.0070.0289.04
5.2.10.0040.0338.95
5.2.00.0090.0338.81
5.1.60.0060.0228.09
5.1.50.0040.0258.09
5.1.40.0070.0228.06
5.1.30.0050.0258.42
5.1.20.0050.0288.44
5.1.10.0050.0308.16
5.1.00.0050.0258.16
5.0.50.0050.0266.64
5.0.40.0050.0186.50
5.0.30.0040.0366.32
5.0.20.0060.0166.28
5.0.10.0040.0196.25
5.0.00.0040.0306.25
4.4.90.0030.0214.78
4.4.80.0040.0254.75
4.4.70.0050.0194.76
4.4.60.0030.0154.76
4.4.50.0040.0144.77
4.4.40.0030.0264.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0030.0224.85
4.4.00.0010.0274.76
4.3.110.0040.0144.67
4.3.100.0030.0154.67
4.3.90.0040.0204.63
4.3.80.0050.0244.59
4.3.70.0030.0164.63
4.3.60.0030.0214.63
4.3.50.0030.0164.63
4.3.40.0030.0364.54
4.3.30.0030.0263.30
4.3.20.0020.0223.28
4.3.10.0030.0253.24
4.3.00.0000.02015.09

preferences:
81.2 ms | 401 KiB | 5 Q