3v4l.org

run code in 300+ PHP versions simultaneously
<?php class person{ public $name; public $age; public $sex; function _construct($name="",$sex="",$age=""){ $this->name = $name; $this->age = $age; $this->sex = $sex; } } function read(){ $per = new person("dafa","a","v"); var_dump($per); } $a = read();

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.0090.00618.43
8.3.50.0070.01121.15
8.3.40.0040.01118.64
8.3.30.0030.01019.15
8.3.20.0040.00420.29
8.3.10.0040.00420.17
8.3.00.0050.00319.26
8.2.180.0060.00918.34
8.2.170.0120.00322.96
8.2.160.0070.01520.25
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0070.00022.05
8.2.110.0060.00320.35
8.2.100.0060.00618.09
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0090.00318.07
8.2.40.0060.00318.22
8.2.30.0030.00618.04
8.2.20.0000.00817.68
8.2.10.0000.00818.00
8.2.00.0080.00017.53
8.1.280.0090.00925.92
8.1.270.0030.00623.87
8.1.260.0070.00026.35
8.1.250.0070.01128.09
8.1.240.0030.00723.74
8.1.230.0040.00719.11
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0050.00318.61
8.1.160.0040.00421.96
8.1.150.0040.00418.75
8.1.140.0000.00817.35
8.1.130.0050.00217.88
8.1.120.0030.00317.47
8.1.110.0050.00517.38
8.1.100.0040.00417.28
8.1.90.0040.00417.38
8.1.80.0000.00717.39
8.1.70.0000.00717.39
8.1.60.0000.00917.63
8.1.50.0040.00417.41
8.1.40.0040.00417.53
8.1.30.0040.00417.62
8.1.20.0030.00617.67
8.1.10.0030.00617.52
8.1.00.0000.00717.41
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00918.38
8.0.270.0030.00317.25
8.0.260.0030.00317.26
8.0.250.0070.00016.82
8.0.240.0000.00716.92
8.0.230.0040.00416.90
8.0.220.0000.00716.90
8.0.210.0040.00416.80
8.0.200.0030.00316.97
8.0.190.0070.00016.93
8.0.180.0030.00516.74
8.0.170.0030.00616.91
8.0.160.0040.00416.80
8.0.150.0000.00716.82
8.0.140.0030.00516.78
8.0.130.0030.00513.27
8.0.120.0080.00016.89
8.0.110.0000.00816.88
8.0.100.0000.00716.80
8.0.90.0030.00516.88
8.0.80.0060.00916.71
8.0.70.0040.00416.66
8.0.60.0050.00216.76
8.0.50.0070.00016.71
8.0.30.0060.01317.26
8.0.20.0080.01217.40
8.0.10.0040.00416.98
8.0.00.0100.00716.71
7.4.330.0020.00215.00
7.4.320.0060.00016.46
7.4.300.0030.00316.52
7.4.290.0030.00316.53
7.4.280.0060.00316.57
7.4.270.0070.00016.52
7.4.260.0070.00016.50
7.4.250.0080.00016.52
7.4.240.0040.00416.44
7.4.230.0030.00316.54
7.4.220.0170.01016.63
7.4.210.0070.00716.51
7.4.200.0000.00716.32
7.4.160.0080.00816.46
7.4.150.0090.00917.40
7.4.140.0150.00217.86
7.4.130.0100.01016.45
7.4.120.0080.01216.46
7.4.110.0060.01216.20
7.4.100.0040.01216.41
7.4.90.0130.01016.46
7.4.80.0090.00919.39
7.4.70.0120.00816.34
7.4.60.0030.01316.48
7.4.50.0000.00916.51
7.4.40.0090.00916.68
7.4.30.0060.01516.39
7.4.00.0060.00914.98
7.3.330.0020.00213.08
7.3.320.0050.00013.22
7.3.310.0040.00416.36
7.3.300.0000.00616.13
7.3.290.0120.00316.23
7.3.280.0060.00916.22
7.3.270.0110.01117.40
7.3.260.0140.01116.62
7.3.250.0130.00716.40
7.3.240.0190.00416.28
7.3.230.0070.01016.39
7.3.210.0160.00016.24
7.3.200.0030.01919.39
7.3.190.0080.01216.26
7.3.180.0040.01216.46
7.3.170.0110.01116.28
7.3.160.0030.01316.09
7.3.00.0030.01316.58
7.2.330.0090.00916.26
7.2.320.0070.01016.60
7.2.310.0130.00316.59
7.2.300.0170.00716.60
7.2.290.0110.00616.78
7.2.130.0030.00716.80
7.2.120.0100.00716.91
7.2.110.0100.00416.60
7.2.100.0110.01116.50
7.2.90.0030.00916.47
7.2.80.0030.00916.91
7.2.70.0100.00716.96
7.2.60.0080.00516.85
7.2.50.0090.00616.75
7.2.40.0070.00416.73
7.2.30.0060.00616.59
7.2.20.0060.00916.60
7.2.10.0120.00416.72
7.2.00.0060.00616.67
7.1.250.0000.01415.50
7.1.240.0040.00415.58
7.1.230.0070.00715.88
7.1.220.0060.00615.75
7.1.210.0070.00715.63
7.1.200.0100.00715.67
7.1.190.0070.00715.77
7.1.180.0070.01115.71
7.1.170.0030.00715.41
7.1.160.0090.00315.89
7.1.150.0030.00915.57
7.1.140.0090.00015.81
7.1.130.0060.00615.91
7.1.120.0030.00915.78
7.1.110.0040.00415.80
7.1.100.0070.00715.77
7.1.90.0030.00715.73
7.1.80.0030.00715.79
7.1.70.0030.00916.33
7.1.60.0070.01017.53
7.1.50.0130.00716.34
7.1.40.0070.00715.88
7.1.30.0060.00615.74
7.1.20.0040.00715.35
7.1.10.0060.00615.71
7.1.00.0060.04019.01
7.0.330.0130.00315.21
7.0.320.0000.01315.32
7.0.310.0150.00015.02
7.0.300.0130.00715.50
7.0.290.0030.01015.20
7.0.280.0100.00315.41
7.0.270.0070.00715.36
7.0.260.0000.01015.13
7.0.250.0030.00615.35
7.0.240.0080.00415.45
7.0.230.0060.00615.26
7.0.220.0100.00315.37
7.0.210.0060.00315.51
7.0.200.0070.00416.10
7.0.190.0050.00215.46
7.0.180.0040.01115.43
7.0.170.0090.00315.11
7.0.160.0090.00315.11
7.0.150.0000.01415.48
7.0.140.0070.03818.85
7.0.130.0000.01215.54
7.0.120.0030.01015.25
7.0.110.0060.00615.20
7.0.100.0030.00715.34
7.0.90.0000.00815.10
7.0.80.0060.00915.41
7.0.70.0140.00015.25
7.0.60.0060.03217.51
7.0.50.0080.04216.63
7.0.40.0050.02616.66
7.0.30.0180.02916.84
7.0.20.0130.02516.74
7.0.10.0050.03416.68
7.0.00.0130.03816.70
5.6.380.0030.01014.00
5.6.370.0040.01214.46
5.6.360.0030.00914.00
5.6.350.0090.00314.18
5.6.340.0000.01114.13
5.6.330.0030.00714.29
5.6.320.0000.01314.52
5.6.310.0060.00314.48
5.6.300.0070.00314.17
5.6.290.0000.01114.47
5.6.280.0030.04017.63
5.6.270.0030.01214.31
5.6.260.0000.01314.46
5.6.250.0070.00414.13
5.6.240.0060.00314.23
5.6.230.0100.00314.34
5.6.220.0070.00714.37
5.6.210.0100.04017.54
5.6.200.0050.04116.11
5.6.190.0030.02717.49
5.6.180.0150.02917.35
5.6.170.0150.04217.25
5.6.160.0080.02417.45
5.6.150.0090.03716.11
5.6.140.0080.04316.29
5.6.130.0050.04316.41
5.6.120.0110.04017.66
5.6.110.0110.04417.68
5.6.100.0070.02517.70
5.6.90.0070.04217.56
5.6.80.0080.04417.35
5.6.70.0120.00314.25
5.6.60.0040.00814.07
5.6.50.0060.00914.28
5.6.40.0040.00914.18
5.6.30.0030.01013.89
5.6.20.0060.01014.12
5.6.10.0030.00614.32
5.6.00.0030.00614.50
5.5.380.0030.00911.32
5.5.370.0070.00011.18
5.5.360.0070.00411.18
5.5.350.0150.04015.79
5.5.340.0050.03814.67
5.5.330.0060.03815.72
5.5.320.0180.03815.75
5.5.310.0150.04315.71
5.5.300.0050.03514.61
5.5.290.0050.04714.57
5.5.280.0080.03916.04
5.5.270.0070.03416.01
5.5.260.0030.02515.99
5.5.250.0020.02715.88
5.5.240.0110.04615.66
5.5.230.0030.00611.20
5.5.220.0060.00011.18
5.5.210.0030.00511.18
5.5.200.0040.00811.18
5.5.190.0030.00911.18
5.5.180.0030.00911.18
5.5.170.0000.01011.18
5.5.160.0060.00611.18
5.5.150.0080.00011.18
5.5.140.0060.00611.18
5.5.130.0100.00011.18
5.5.120.0000.01011.18
5.5.110.0030.00611.18
5.5.100.0070.00311.18
5.5.90.0110.00011.18
5.5.80.0100.00311.18
5.5.70.0070.00011.18
5.5.60.0030.00611.18
5.5.50.0040.00811.18
5.5.40.0030.00611.18
5.5.30.0000.00711.18
5.5.20.0050.00511.18
5.5.10.0000.00711.18
5.5.00.0030.00911.18
5.4.450.0320.02015.32
5.4.440.0430.03015.40
5.4.430.0470.02815.24
5.4.420.0410.00015.29
5.4.410.0390.00015.25
5.4.400.0360.00315.26
5.4.390.0340.00315.12
5.4.380.0350.00015.19
5.4.370.0420.00515.19
5.4.360.0340.00415.11
5.4.350.0390.00415.19
5.4.340.0340.00215.22
5.4.330.0000.00911.18
5.4.320.0080.02211.84
5.4.310.0130.01911.84
5.4.300.0060.02111.86
5.4.290.0080.02011.84
5.4.280.0050.02411.79
5.4.270.0070.02411.79
5.4.260.0080.02111.79
5.4.250.0080.02811.79
5.4.240.0120.02111.79
5.4.230.0100.01911.78
5.4.220.0090.01711.79
5.4.210.0090.02011.78
5.4.200.0060.02311.79
5.4.190.0100.02011.79
5.4.180.0080.01911.78
5.4.170.0070.02011.79
5.4.160.0070.01911.78
5.4.150.0080.01911.79
5.4.140.0050.01911.63
5.4.130.0020.02311.62
5.4.120.0040.02311.60
5.4.110.0020.02111.60
5.4.100.0060.01911.60
5.4.90.0020.02811.59
5.4.80.0060.02211.60
5.4.70.0020.02511.59
5.4.60.0050.02211.59
5.4.50.0050.02211.59
5.4.40.0050.02211.59
5.4.30.0060.01911.59
5.4.20.0060.01811.59
5.4.10.0050.02011.59
5.4.00.0060.02111.33
5.3.290.0060.02011.99
5.3.280.0050.02211.94
5.3.270.0060.02011.95
5.3.260.0040.02311.95
5.3.250.0100.02011.95
5.3.240.0050.02211.95
5.3.230.0030.02111.94
5.3.220.0060.02111.93
5.3.210.0060.02211.93
5.3.200.0050.01911.93
5.3.190.0060.01811.92
5.3.180.0060.02211.92
5.3.170.0050.02211.92
5.3.160.0040.02111.92
5.3.150.0040.02211.93
5.3.140.0040.02111.92
5.3.130.0040.02411.92
5.3.120.0060.02111.92
5.3.110.0050.02111.91
5.3.100.0040.02111.65
5.3.90.0050.02111.64
5.3.80.0080.01811.64
5.3.70.0040.02311.64
5.3.60.0080.01911.63
5.3.50.0050.02111.60
5.3.40.0040.02211.60
5.3.30.0040.02211.58
5.3.20.0040.01911.47
5.3.10.0040.02311.46
5.3.00.0060.02111.45
5.2.170.0060.01710.20
5.2.160.0050.01410.20
5.2.150.0020.01810.20
5.2.140.0020.02010.20
5.2.130.0020.02010.18
5.2.120.0040.01710.18
5.2.110.0060.01510.18
5.2.100.0050.01410.18
5.2.90.0030.01610.18
5.2.80.0050.01610.17
5.2.70.0010.02010.18
5.2.60.0020.01910.15
5.2.50.0040.01510.14
5.2.40.0040.01810.13
5.2.30.0070.01610.11
5.2.20.0060.01510.11
5.2.10.0020.01910.06
5.2.00.0020.0169.99
5.1.60.0020.0139.63
5.1.50.0050.0189.63
5.1.40.0030.0179.62
5.1.30.0030.0189.80
5.1.20.0040.0149.81
5.1.10.0020.0169.67
5.1.00.0040.0169.67
5.0.50.0030.0168.91
5.0.40.0020.0128.84
5.0.30.0040.0158.75
5.0.20.0050.0098.73
5.0.10.0040.0158.72
5.0.00.0030.0178.72
4.4.90.0010.0127.98
4.4.80.0030.0097.96
4.4.70.0010.0117.97
4.4.60.0010.0107.97
4.4.50.0010.0107.97
4.4.40.0030.0137.94
4.4.30.0030.0087.97
4.4.20.0040.0078.01
4.4.10.0030.0108.01
4.4.00.0020.0157.97
4.3.110.0020.0107.92
4.3.100.0010.0117.92
4.3.90.0010.0107.91
4.3.80.0020.0147.88
4.3.70.0030.0087.90
4.3.60.0020.0107.90
4.3.50.0020.0107.90
4.3.40.0020.0137.86
4.3.30.0020.0087.24
4.3.20.0010.0117.23
4.3.10.0020.0097.21
4.3.00.0000.01113.84

preferences:
41.28 ms | 401 KiB | 5 Q