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(); var_dump($data);

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.0140.00018.30
8.3.50.0070.01122.81
8.3.40.0060.00818.84
8.3.30.0110.00419.14
8.3.20.0040.00420.09
8.3.10.0060.00321.41
8.3.00.0040.00419.38
8.2.180.0160.00916.63
8.2.170.0120.00322.96
8.2.160.0130.00320.47
8.2.150.0170.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00420.89
8.2.110.0030.00720.48
8.2.100.0040.00818.03
8.2.90.0070.00719.13
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0000.00819.48
8.2.20.0080.00017.66
8.2.10.0020.00517.96
8.2.00.0050.00317.73
8.1.280.0110.00425.92
8.1.270.0050.00323.92
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0040.00423.91
8.1.230.0110.00019.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0030.00618.55
8.1.160.0030.00522.06
8.1.150.0080.00018.77
8.1.140.0000.00717.45
8.1.130.0070.00017.80
8.1.120.0070.00017.43
8.1.110.0030.00417.42
8.1.100.0070.00017.46
8.1.90.0050.00217.42
8.1.80.0050.00217.45
8.1.70.0000.00717.43
8.1.60.0060.00317.56
8.1.50.0030.00617.48
8.1.40.0040.00417.41
8.1.30.0000.00717.62
8.1.20.0050.00217.59
8.1.10.0000.00717.48
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0000.00717.27
8.0.260.0030.00317.16
8.0.250.0030.00316.86
8.0.240.0030.00316.95
8.0.230.0000.00816.97
8.0.220.0040.00416.92
8.0.210.0000.00716.76
8.0.200.0030.00316.91
8.0.190.0030.00316.79
8.0.180.0000.00716.93
8.0.170.0030.00516.84
8.0.160.0000.00817.02
8.0.150.0040.00416.85
8.0.140.0000.00716.68
8.0.130.0030.00313.32
8.0.120.0060.00316.88
8.0.110.0040.00416.78
8.0.100.0040.00416.66
8.0.90.0000.00716.88
8.0.80.0090.01216.82
8.0.70.0000.00716.83
8.0.60.0000.00716.90
8.0.50.0080.00016.70
8.0.30.0160.00717.03
8.0.20.0090.00917.40
8.0.10.0050.00217.04
8.0.00.0090.01116.90
7.4.330.0020.00215.16
7.4.320.0000.00616.42
7.4.300.0040.00416.48
7.4.290.0000.00716.46
7.4.280.0050.00216.44
7.4.270.0060.00016.60
7.4.260.0000.00716.46
7.4.250.0000.00716.41
7.4.240.0040.00416.56
7.4.230.0030.00316.31
7.4.220.0160.00316.54
7.4.210.0030.01416.60
7.4.200.0040.00416.71
7.4.160.0130.01016.31
7.4.150.0200.00017.40
7.4.140.0110.01017.86
7.4.130.0100.00716.51
7.4.120.0090.00816.60
7.4.110.0090.00916.64
7.4.100.0040.01216.35
7.4.90.0130.00516.46
7.4.80.0030.01419.39
7.4.70.0080.00816.47
7.4.60.0100.00616.42
7.4.50.0050.00216.35
7.4.40.0100.00616.66
7.4.30.0060.01116.56
7.4.00.0070.01014.77
7.3.330.0030.00313.28
7.3.320.0030.00313.29
7.3.310.0000.00716.22
7.3.300.0030.00316.30
7.3.290.0100.00316.31
7.3.280.0080.00916.23
7.3.270.0110.00717.40
7.3.260.0170.00016.50
7.3.250.0020.01516.49
7.3.240.0120.00916.43
7.3.230.0090.00916.39
7.3.210.0080.00816.18
7.3.200.0130.00319.39
7.3.190.0060.01216.48
7.3.180.0080.00816.28
7.3.170.0150.00416.35
7.3.160.0080.00816.18
7.3.00.0120.00316.40
7.2.330.0120.01216.79
7.2.320.0100.00716.41
7.2.310.0100.00716.78
7.2.300.0100.01316.71
7.2.290.0120.00816.34
7.2.130.0030.01016.78
7.2.120.0090.00616.80
7.2.110.0040.00416.60
7.2.100.0070.00716.91
7.2.90.0060.00917.11
7.2.80.0040.01116.88
7.2.70.0090.00617.06
7.2.60.0120.00616.87
7.2.50.0070.01117.01
7.2.40.0000.01416.81
7.2.30.0160.00816.79
7.2.20.0100.00617.13
7.2.10.0030.00616.89
7.2.00.0070.00918.22
7.1.250.0030.00715.64
7.1.240.0040.00715.88
7.1.230.0030.00915.70
7.1.220.0110.00015.76
7.1.210.0040.01115.82
7.1.200.0060.00915.55
7.1.190.0030.01015.77
7.1.180.0070.01015.58
7.1.170.0000.01115.73
7.1.160.0110.00415.84
7.1.150.0070.00715.90
7.1.140.0140.00315.84
7.1.130.0030.01015.73
7.1.120.0040.00715.90
7.1.110.0070.00415.46
7.1.100.0080.00416.79
7.1.90.0000.01315.57
7.1.80.0040.01115.79
7.1.70.0030.00616.47
7.1.60.0090.00317.56
7.1.50.0050.01116.19
7.1.40.0060.00615.89
7.1.30.0110.00415.68
7.1.20.0100.00615.76
7.1.10.0070.00715.63
7.1.00.0020.04418.98
7.0.330.0030.00915.11
7.0.320.0070.01015.39
7.0.310.0090.00315.41
7.0.300.0000.01415.34
7.0.290.0150.00015.36
7.0.280.0180.00015.36
7.0.270.0100.00315.41
7.0.260.0030.00915.20
7.0.250.0060.00615.45
7.0.240.0060.00615.21
7.0.230.0030.01015.39
7.0.220.0140.00015.13
7.0.210.0040.00815.44
7.0.200.0140.00715.04
7.0.190.0050.00315.44
7.0.180.0000.01415.52
7.0.170.0030.01015.52
7.0.160.0070.01015.52
7.0.150.0030.00915.40
7.0.140.0050.03918.57
7.0.130.0030.00615.47
7.0.120.0060.00615.35
7.0.110.0070.00715.37
7.0.100.0030.00515.43
7.0.90.0030.00915.04
7.0.80.0030.01015.36
7.0.70.0080.00015.45
7.0.60.0110.03317.72
7.0.50.0030.03216.57
7.0.40.0020.05416.68
7.0.30.0080.02816.79
7.0.20.0120.02716.63
7.0.10.0050.04616.78
7.0.00.0050.04616.85
5.6.380.0070.00714.51
5.6.370.0030.00914.57
5.6.360.0030.01014.26
5.6.350.0060.00614.27
5.6.340.0040.01414.22
5.6.330.0040.00814.61
5.6.320.0090.00614.36
5.6.310.0070.00714.32
5.6.300.0030.00914.14
5.6.290.0030.00614.17
5.6.280.0070.03817.65
5.6.270.0000.01013.93
5.6.260.0000.01214.44
5.6.250.0140.00014.13
5.6.240.0050.00214.35
5.6.230.0090.00314.27
5.6.220.0040.00814.42
5.6.210.0060.03117.51
5.6.200.0060.04416.29
5.6.190.0060.04817.30
5.6.180.0170.04217.43
5.6.170.0150.03017.52
5.6.160.0060.04617.37
5.6.150.0080.04316.11
5.6.140.0010.03816.18
5.6.130.0070.03416.29
5.6.120.0100.02317.70
5.6.110.0080.02217.57
5.6.100.0110.04317.76
5.6.90.0050.02317.71
5.6.80.0040.04217.54
5.6.70.0030.04317.41
5.6.60.0040.00414.26
5.6.50.0080.00614.13
5.6.40.0060.00614.22
5.6.30.0040.00714.30
5.6.20.0040.00714.29
5.6.10.0030.00714.21
5.6.00.0070.00714.21
5.5.380.0000.00611.25
5.5.370.0060.00611.18
5.5.360.0000.01111.26
5.5.350.0120.04115.84
5.5.340.0060.03414.65
5.5.330.0050.02715.78
5.5.320.0170.03915.78
5.5.310.0180.04115.74
5.5.300.0050.04514.57
5.5.290.0030.04314.62
5.5.280.0080.04115.93
5.5.270.0110.04116.02
5.5.260.0090.03816.17
5.5.250.0050.02515.95
5.5.240.0150.04015.71
5.5.230.0040.00411.18
5.5.220.0060.00611.18
5.5.210.0060.00311.18
5.5.200.0030.00611.18
5.5.190.0030.00911.18
5.5.180.0000.00611.23
5.5.170.0000.01011.18
5.5.160.0000.00711.18
5.5.150.0030.00911.18
5.5.140.0030.00711.18
5.5.130.0030.00311.18
5.5.120.0070.00011.31
5.5.110.0060.00311.18
5.5.100.0000.01211.18
5.5.90.0050.00011.18
5.5.80.0040.00411.18
5.5.70.0090.00011.18
5.5.60.0060.00311.18
5.5.50.0080.00411.18
5.5.40.0030.00311.18
5.5.30.0070.00411.18
5.5.20.0050.00311.18
5.5.10.0060.00611.18
5.5.00.0040.00811.24
5.4.450.0150.02515.38
5.4.440.0180.02215.32
5.4.430.0330.02015.22
5.4.420.0150.02515.40
5.4.410.0150.02815.30
5.4.400.0200.02415.17
5.4.390.0180.02415.13
5.4.380.0170.02914.98
5.4.370.0160.03014.95
5.4.360.0170.03014.83
5.4.350.0200.02514.98
5.4.340.0180.03114.81
5.4.330.0040.00411.18
5.4.320.0050.02111.84
5.4.310.0040.02311.84
5.4.300.0030.02311.84
5.4.290.0060.02311.84
5.4.280.0040.02211.79
5.4.270.0030.02311.78
5.4.260.0090.02311.78
5.4.250.0040.02211.78
5.4.240.0040.02311.79
5.4.230.0050.02011.78
5.4.220.0040.02311.78
5.4.210.0060.01911.78
5.4.200.0020.02311.78
5.4.190.0020.02411.78
5.4.180.0040.02211.78
5.4.170.0070.01911.79
5.4.160.0060.01711.78
5.4.150.0060.01811.78
5.4.140.0020.02511.63
5.4.130.0060.02011.62
5.4.120.0020.02111.60
5.4.110.0020.02211.59
5.4.100.0050.02111.59
5.4.90.0050.02011.60
5.4.80.0040.02311.60
5.4.70.0060.02211.59
5.4.60.0060.02111.59
5.4.50.0050.02311.60
5.4.40.0070.02011.58
5.4.30.0060.02411.58
5.4.20.0050.02311.59
5.4.10.0040.02311.59
5.4.00.0060.02111.33
5.3.290.0070.02111.99
5.3.280.0040.02411.94
5.3.270.0020.02711.95
5.3.260.0030.02411.95
5.3.250.0060.02111.95
5.3.240.0060.02211.95
5.3.230.0040.02311.94
5.3.220.0030.02311.93
5.3.210.0050.02111.93
5.3.200.0060.01911.93
5.3.190.0070.02211.93
5.3.180.0020.02411.92
5.3.170.0040.02211.92
5.3.160.0040.02311.92
5.3.150.0060.02111.92
5.3.140.0040.02311.92
5.3.130.0060.02311.92
5.3.120.0060.02311.92
5.3.110.0020.02611.92
5.3.100.0090.01811.65
5.3.90.0040.02411.64
5.3.80.0060.01811.63
5.3.70.0110.02311.63
5.3.60.0070.02011.62
5.3.50.0060.02511.60
5.3.40.0060.02211.60
5.3.30.0060.02011.58
5.3.20.0030.02311.47
5.3.10.0050.02011.45
5.3.00.0040.02011.44
5.2.170.0020.01910.20
5.2.160.0060.01410.20
5.2.150.0030.02610.19
5.2.140.0020.01910.19
5.2.130.0060.01610.17
5.2.120.0050.01810.17
5.2.110.0070.01710.18
5.2.100.0020.02010.18
5.2.90.0040.01810.18
5.2.80.0020.01810.18
5.2.70.0080.01310.17
5.2.60.0040.01810.15
5.2.50.0040.01710.13
5.2.40.0050.01710.13
5.2.30.0020.01810.11
5.2.20.0030.02010.10
5.2.10.0070.01610.06
5.2.00.0070.0189.99
5.1.60.0040.0139.63
5.1.50.0050.0139.63
5.1.40.0050.0189.62
5.1.30.0020.0169.79
5.1.20.0050.0149.80
5.1.10.0050.0159.67
5.1.00.0050.0139.67
5.0.50.0030.0168.91
5.0.40.0040.0118.84
5.0.30.0030.0168.74
5.0.20.0030.0168.73
5.0.10.0020.0148.71
5.0.00.0020.0178.71
4.4.90.0010.0147.98
4.4.80.0010.0117.96
4.4.70.0040.0127.96
4.4.60.0020.0097.97
4.4.50.0020.0097.97
4.4.40.0020.0177.94
4.4.30.0010.0127.97
4.4.20.0010.0128.01
4.4.10.0020.0098.01
4.4.00.0030.0157.97
4.3.110.0020.0107.92
4.3.100.0030.0097.92
4.3.90.0030.0077.90
4.3.80.0040.0137.88
4.3.70.0020.0137.90
4.3.60.0020.0137.90
4.3.50.0020.0177.90
4.3.40.0030.0167.86
4.3.30.0050.0097.24
4.3.20.0030.0107.23
4.3.10.0030.0097.21
4.3.00.0100.00713.13

preferences:
74.37 ms | 401 KiB | 5 Q