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.40.0110.00318.67
8.3.30.0080.00818.89
8.3.20.0040.00420.21
8.3.10.0060.00320.18
8.3.00.0040.00419.13
8.2.170.0120.00322.96
8.2.160.0170.00320.52
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.29
8.2.110.0090.00020.31
8.2.100.0050.00518.09
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0000.00817.93
8.2.50.0080.00318.07
8.2.40.0000.00818.22
8.2.30.0060.00318.07
8.2.20.0000.00717.55
8.2.10.0000.00717.88
8.2.00.0050.00217.50
8.1.270.0080.00023.92
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.90
8.1.230.0030.00719.15
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0000.00818.46
8.1.160.0070.00021.94
8.1.150.0040.00418.82
8.1.140.0040.00417.30
8.1.130.0070.00019.17
8.1.120.0050.00217.34
8.1.110.0030.00517.27
8.1.100.0070.00017.38
8.1.90.0030.00317.38
8.1.80.0040.00317.38
8.1.70.0000.00717.27
8.1.60.0030.00617.55
8.1.50.0060.00317.45
8.1.40.0000.00817.54
8.1.30.0030.00517.57
8.1.20.0000.00817.64
8.1.10.0030.00517.47
8.1.00.0000.00717.49
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.46
8.0.270.0030.00317.23
8.0.260.0000.00718.55
8.0.250.0020.00516.81
8.0.240.0030.00316.92
8.0.230.0000.00716.88
8.0.220.0000.00616.71
8.0.210.0040.00416.72
8.0.200.0000.00616.95
8.0.190.0030.00616.93
8.0.180.0000.00716.84
8.0.170.0040.00416.90
8.0.160.0000.00716.68
8.0.150.0050.00316.68
8.0.140.0040.00416.73
8.0.130.0030.00613.28
8.0.120.0080.00016.72
8.0.110.0080.00016.88
8.0.100.0050.00216.70
8.0.90.0040.00416.66
8.0.80.0060.00916.72
8.0.70.0000.00716.89
8.0.60.0040.00416.67
8.0.50.0030.00516.94
8.0.30.0130.00616.99
8.0.20.0070.01717.40
8.0.10.0040.00416.83
8.0.00.0110.00816.84
7.4.330.0000.00515.00
7.4.320.0080.00016.38
7.4.300.0060.00016.39
7.4.290.0030.00316.59
7.4.280.0070.00016.48
7.4.270.0030.00316.49
7.4.260.0070.00016.52
7.4.250.0020.00516.48
7.4.240.0030.00316.45
7.4.230.0000.00716.63
7.4.220.0090.00916.52
7.4.210.0070.00716.60
7.4.200.0040.00416.58
7.4.160.0120.00316.48
7.4.150.0090.00917.40
7.4.140.0190.00117.86
7.4.130.0070.01316.50
7.4.120.0060.01016.52
7.4.110.0090.01316.53
7.4.100.0070.01116.32
7.4.90.0140.00316.38
7.4.80.0040.01319.39
7.4.70.0130.01316.59
7.4.60.0100.00716.63
7.4.50.0000.00816.14
7.4.40.0100.00716.12
7.4.30.0210.00216.31
7.4.00.0080.00815.04
7.3.330.0000.00613.06
7.3.320.0050.00013.08
7.3.310.0000.00616.07
7.3.300.0030.00316.10
7.3.290.0130.00716.16
7.3.280.0130.00516.22
7.3.270.0070.01017.40
7.3.260.0080.01116.21
7.3.250.0100.01016.43
7.3.240.0090.01216.34
7.3.230.0030.01416.39
7.3.210.0100.00616.60
7.3.200.0110.01119.39
7.3.190.0090.00816.10
7.3.180.0040.01216.24
7.3.170.0120.00416.30
7.3.160.0110.00816.41
7.2.330.0140.00416.67
7.2.320.0090.00916.43
7.2.310.0060.01116.58
7.2.300.0110.00816.56
7.2.290.0120.00416.33
7.2.00.0060.01219.16
7.1.100.0040.00817.78
7.1.70.0060.00316.87
7.1.60.0030.02019.32
7.1.50.0090.01516.91
7.1.00.0100.06722.28
7.0.200.0040.00416.76
7.0.140.0070.06721.99
7.0.120.0000.05721.89
7.0.110.0000.04322.11
7.0.100.0030.06321.89
7.0.90.0030.05022.09
7.0.80.0130.02722.10
7.0.70.0070.08722.00
7.0.60.0070.07722.18
7.0.50.0000.09022.13
7.0.40.0070.08020.14
7.0.30.0100.04719.97
7.0.20.0030.07719.96
7.0.10.0070.04019.89
7.0.00.0130.06020.14
5.6.280.0070.07021.03
5.6.270.0070.08720.99
5.6.260.0030.06720.83
5.6.250.0100.07320.99
5.6.240.0030.07320.70
5.6.230.0030.05721.03
5.6.220.0070.08320.67
5.6.210.0030.08320.96
5.6.200.0070.06020.98
5.6.190.0030.09721.00
5.6.180.0030.07320.88
5.6.170.0030.04021.00
5.6.160.0030.08020.88
5.6.150.0030.05720.77
5.6.140.0070.05320.79
5.6.130.0030.08321.04
5.6.120.0070.07720.98
5.6.110.0070.07720.97
5.6.100.0070.07020.86
5.6.90.0170.07020.67
5.6.80.0070.05320.15
5.6.70.0030.04020.06
5.6.60.0000.05320.23
5.6.50.0000.04720.33
5.6.40.0070.07020.16
5.6.30.0030.04320.23
5.6.20.0100.03020.11
5.6.10.0070.03320.21
5.6.00.0000.03720.13
5.5.380.0000.04017.59
5.5.370.0030.07017.52
5.5.360.0100.07017.67
5.5.350.0100.07717.50
5.5.340.0030.08017.92
5.5.330.0000.08317.92
5.5.320.0030.04318.09
5.5.310.0070.07318.06
5.5.300.0000.06718.10
5.5.290.0030.08718.21
5.5.280.0030.04318.05
5.5.270.0070.08017.92
5.5.260.0100.03018.23
5.5.250.0030.08717.91
5.5.240.0030.07717.29
5.5.230.0100.06317.42
5.5.220.0100.03017.62
5.5.210.0030.04017.46
5.5.200.0070.03717.18
5.5.190.0000.04017.44
5.5.180.0000.04017.40
5.5.160.0000.07017.27
5.5.150.0000.03317.47
5.5.140.0070.03317.26
5.5.130.0070.06317.47
5.5.120.0000.03717.48
5.5.110.0000.03317.16
5.5.100.0000.05017.34
5.5.90.0030.06017.20
5.5.80.0000.03317.46
5.5.70.0000.06317.20
5.5.60.0100.05317.19
5.5.50.0030.04317.33
5.5.40.0030.04017.29
5.5.30.0070.07717.15
5.5.20.0030.07317.05
5.5.10.0000.04017.43
5.5.00.0070.06717.45
5.4.450.0000.09319.51
5.4.440.0030.06719.49
5.4.430.0070.07319.35
5.4.420.0000.08019.36
5.4.410.0070.07719.38
5.4.400.0000.03318.98
5.4.390.0030.03719.12
5.4.380.0130.07018.96
5.4.370.0000.04018.95
5.4.360.0030.03719.11
5.4.350.0000.03718.95
5.4.340.0070.03719.12
5.4.320.0100.03318.93
5.4.310.0000.05719.28
5.4.300.0070.03319.18
5.4.290.0030.04718.97
5.4.280.0170.02718.96
5.4.270.0000.03718.88
5.4.260.0030.07718.94
5.4.250.0030.06319.07
5.4.240.0030.04019.12
5.4.230.0000.03319.11
5.4.220.0030.07718.93
5.4.210.0030.05018.91
5.4.200.0070.05019.07
5.4.190.0100.06318.88
5.4.180.0030.05018.87
5.4.170.0000.04018.88
5.4.160.0030.03718.91
5.4.150.0070.06718.94
5.4.140.0070.06016.60
5.4.130.0070.04716.46
5.4.120.0000.06316.35
5.4.110.0030.04716.52
5.4.100.0000.03316.50
5.4.90.0170.03016.41
5.4.80.0000.03316.55
5.4.70.0100.04016.49
5.4.60.0030.06716.36
5.4.50.0030.04016.47
5.4.40.0030.03316.44
5.4.30.0000.05716.33
5.4.20.0000.07316.46
5.4.10.0000.06016.48
5.4.00.0070.06715.71
5.3.290.0100.03014.69
5.3.280.0030.06314.62
5.3.270.0030.04714.70
5.3.260.0030.04014.63
5.3.250.0100.02714.64
5.3.240.0030.07314.61
5.3.230.0030.03314.60
5.3.220.0000.03714.57
5.3.210.0000.07014.58
5.3.200.0000.07314.57
5.3.190.0100.06014.59
5.3.180.0000.05314.43
5.3.170.0000.03314.61
5.3.160.0030.06314.53
5.3.150.0000.04714.59
5.3.140.0030.06014.58
5.3.130.0000.03314.55
5.3.120.0000.04014.68
5.3.110.0070.07314.51
5.3.100.0070.06714.01
5.3.90.0000.06714.26
5.3.80.0030.07014.00
5.3.70.0070.06713.87
5.3.60.0070.07014.07
5.3.50.0000.05013.96
5.3.40.0030.03313.91
5.3.30.0070.05713.95
5.3.20.0030.03313.82
5.3.10.0000.06013.67
5.3.00.0030.05713.61
5.2.170.0030.05311.38
5.2.160.0030.02711.11
5.2.150.0030.04711.22
5.2.140.0000.03711.27
5.2.130.0000.02711.24
5.2.120.0000.02711.05
5.2.110.0000.02711.19
5.2.100.0000.04011.08
5.2.90.0070.03011.10
5.2.80.0030.03711.18
5.2.70.0030.03711.09
5.2.60.0000.04711.04
5.2.50.0030.02711.09
5.2.40.0030.04011.22
5.2.30.0000.02711.12
5.2.20.0030.05010.97
5.2.10.0030.04010.82
5.2.00.0030.04710.80
5.1.60.0000.04010.15
5.1.50.0000.0209.96
5.1.40.0070.0439.81
5.1.30.0070.04710.48
5.1.20.0000.02310.45
5.1.10.0000.03310.25
5.1.00.0030.04010.04
5.0.50.0070.0409.68
5.0.40.0030.0439.68
5.0.30.0030.0539.68
5.0.20.0000.0309.68
5.0.10.0030.0439.68
5.0.00.0070.0379.68
4.4.90.0000.0339.68
4.4.80.0000.0179.68
4.4.70.0000.0139.68
4.4.60.0000.0339.68
4.4.50.0000.0239.68
4.4.40.0000.0609.68
4.4.30.0030.0309.68
4.4.20.0000.0409.68
4.4.10.0000.0209.68
4.4.00.0030.0509.68
4.3.110.0030.0309.68
4.3.100.0030.0209.68
4.3.90.0030.0309.68
4.3.80.0000.0279.68
4.3.70.0030.0139.68
4.3.60.0030.0209.68
4.3.50.0030.0209.68
4.3.40.0000.0239.68
4.3.30.0030.0279.68
4.3.20.0000.0379.68
4.3.10.0070.0179.68
4.3.00.0070.0309.68

preferences:
41.01 ms | 400 KiB | 5 Q