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(); $name = person("dafa"); echo $name."study"; } $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.0140.00018.43
8.3.50.0150.00621.20
8.3.40.0120.00318.79
8.3.30.0060.00919.04
8.3.20.0040.00420.13
8.3.10.0090.00620.61
8.3.00.0080.00019.26
8.2.180.0100.01018.66
8.2.170.0060.00922.96
8.2.160.0070.00719.27
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00622.19
8.2.110.0090.00020.99
8.2.100.0060.00617.78
8.2.90.0060.00319.05
8.2.80.0050.00317.97
8.2.70.0080.00017.60
8.2.60.0060.00317.80
8.2.50.0110.00018.07
8.2.40.0050.00318.09
8.2.30.0070.00318.07
8.2.20.0040.00417.72
8.2.10.0060.00318.06
8.2.00.0040.00417.68
8.1.280.0030.01625.92
8.1.270.0040.00423.84
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0100.00722.19
8.1.230.0000.01119.00
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0080.00018.10
8.1.170.0060.00318.61
8.1.160.0040.00421.84
8.1.150.0040.00418.75
8.1.140.0000.00817.27
8.1.130.0070.00017.86
8.1.120.0050.00217.31
8.1.110.0040.00417.30
8.1.100.0040.00417.34
8.1.90.0070.00017.38
8.1.80.0070.00017.45
8.1.70.0000.00717.25
8.1.60.0040.00417.59
8.1.50.0000.00817.53
8.1.40.0040.00417.54
8.1.30.0060.00317.59
8.1.20.0050.00317.60
8.1.10.0050.00217.64
8.1.00.0030.00517.52
8.0.300.0070.00020.09
8.0.290.0040.00416.63
8.0.280.0020.00518.40
8.0.270.0030.00317.14
8.0.260.0000.00617.12
8.0.250.0000.00717.01
8.0.240.0070.00016.86
8.0.230.0040.00416.99
8.0.220.0000.00816.91
8.0.210.0000.00716.93
8.0.200.0030.00516.97
8.0.190.0040.00416.95
8.0.180.0070.00016.93
8.0.170.0000.00816.97
8.0.160.0040.00416.99
8.0.150.0040.00416.89
8.0.140.0040.00416.84
8.0.130.0000.00713.38
8.0.120.0000.00816.70
8.0.110.0060.00316.74
8.0.100.0000.00816.97
8.0.90.0000.00816.95
8.0.80.0090.01216.96
8.0.70.0000.00816.70
8.0.60.0070.00016.80
8.0.50.0050.00316.94
8.0.30.0110.00817.00
8.0.20.0090.01217.40
8.0.10.0040.00416.99
8.0.00.0030.01416.72
7.4.330.0020.00215.07
7.4.320.0070.00016.55
7.4.300.0050.00216.43
7.4.290.0000.00816.62
7.4.280.0050.00316.41
7.4.270.0030.00316.51
7.4.260.0000.00616.39
7.4.250.0040.00416.53
7.4.240.0050.00216.49
7.4.230.0000.00716.60
7.4.220.0000.01916.46
7.4.210.0100.00416.58
7.4.200.0070.00016.72
7.4.160.0090.00616.45
7.4.150.0060.01217.40
7.4.140.0070.01017.86
7.4.130.0110.00716.51
7.4.120.0050.01516.62
7.4.110.0100.00616.44
7.4.100.0030.01316.65
7.4.90.0130.00616.59
7.4.80.0130.00319.39
7.4.70.0130.00716.42
7.4.60.0070.01016.43
7.4.50.0060.00316.35
7.4.40.0100.00616.61
7.4.30.0130.00316.42
7.4.00.0120.00414.85
7.3.330.0000.00513.27
7.3.320.0020.00213.29
7.3.310.0030.00416.13
7.3.300.0030.00316.23
7.3.290.0070.00716.28
7.3.280.0090.00816.27
7.3.270.0040.01417.40
7.3.260.0120.00616.41
7.3.250.0080.00816.42
7.3.240.0190.00016.54
7.3.230.0100.01016.39
7.3.210.0000.01716.46
7.3.200.0130.01019.39
7.3.190.0160.00616.41
7.3.180.0000.01916.32
7.3.170.0100.00716.35
7.3.160.0050.01816.46
7.3.120.0030.01314.70
7.3.110.0140.00414.78
7.3.100.0030.00614.70
7.3.90.0040.01115.06
7.3.80.0040.00914.73
7.3.70.0110.00414.77
7.3.60.0030.01014.72
7.3.50.0130.00014.68
7.3.40.0100.00714.54
7.3.30.0060.00614.88
7.3.20.0030.01016.65
7.3.10.0080.00516.44
7.3.00.0020.00916.48
7.2.330.0090.00916.38
7.2.320.0070.01716.59
7.2.310.0030.02016.41
7.2.300.0070.01716.76
7.2.290.0090.01216.62
7.2.250.0140.00714.42
7.2.240.0070.01014.84
7.2.230.0090.00614.90
7.2.220.0000.01114.49
7.2.210.0080.00814.91
7.2.200.0100.00614.95
7.2.190.0030.01414.78
7.2.180.0060.00614.98
7.2.170.0080.00814.89
7.2.130.0000.01316.53
7.2.120.0040.00916.80
7.2.110.0030.00916.77
7.2.100.0100.00716.91
7.2.90.0040.00816.97
7.2.80.0050.00516.51
7.2.70.0120.00016.79
7.2.60.0050.00616.72
7.2.50.0000.01216.33
7.2.40.0030.00916.46
7.2.30.0060.00916.92
7.2.20.0030.00616.43
7.2.10.0000.01216.66
7.2.00.0020.01118.10
7.1.330.0030.01015.77
7.1.320.0090.00315.43
7.1.310.0040.01115.34
7.1.300.0060.00315.39
7.1.290.0000.01315.74
7.1.280.0070.00715.70
7.1.270.0090.00315.49
7.1.260.0070.00715.39
7.1.250.0100.00015.48
7.1.200.0000.00815.58
7.1.100.0070.00717.75
7.1.70.0070.00317.07
7.1.60.0180.00719.32
7.1.50.0140.02034.62
7.1.00.0000.08022.37
7.0.200.0060.00316.73
7.0.140.0000.07722.00
7.0.60.0100.08320.07
7.0.50.0100.07317.89
7.0.40.0230.07019.96
7.0.30.0570.06720.21
7.0.20.0400.07720.34
7.0.10.0370.06720.24
7.0.00.0030.08720.06
5.6.280.0070.07021.00
5.6.210.0100.07720.63
5.6.200.0030.04718.29
5.6.190.0070.04320.48
5.6.180.4030.04020.50
5.6.170.0330.08320.39
5.6.160.0030.06020.45
5.6.150.0130.06718.29
5.6.140.0200.07018.17
5.6.130.0100.03318.14
5.6.120.0030.04021.14
5.6.110.0070.08021.13
5.6.100.0070.08021.14
5.6.90.0170.06320.98
5.6.80.0070.07020.42
5.6.70.4500.03720.43
5.5.350.0300.06720.40
5.5.340.0030.05317.95
5.5.330.0030.06720.45
5.5.320.0130.04720.27
5.5.310.0300.06320.31
5.5.300.0170.05317.95
5.5.290.0100.07318.09
5.5.280.0130.08320.98
5.5.270.0030.06720.80
5.5.260.0030.08020.87
5.5.250.0130.07320.69
5.5.240.0100.08320.19
5.4.450.0330.04319.64
5.4.440.0570.05719.64
5.4.430.0770.04319.44
5.4.420.0870.00019.51
5.4.410.0670.00019.57
5.4.400.0600.00019.25
5.4.390.0670.00019.24
5.4.380.0700.00019.05
5.4.370.0670.00019.15
5.4.360.0670.00019.15
5.4.350.0670.00019.08
5.4.340.0600.00019.24
5.4.320.0080.03412.51
5.4.310.0110.03212.50
5.4.300.0040.03912.51
5.4.290.0070.04412.51
5.4.280.0090.04512.41
5.4.270.0090.03412.40
5.4.260.0060.03712.40
5.4.250.0090.03412.40
5.4.240.0050.03712.40
5.4.230.0070.03512.39
5.4.220.0080.03312.40
5.4.210.0060.03512.39
5.4.200.0070.03712.39
5.4.190.0110.03412.39
5.4.180.0050.03612.39
5.4.170.0060.03512.40
5.4.160.0110.03312.39
5.4.150.0080.03312.39
5.4.140.0070.04012.08
5.4.130.0050.03612.06
5.4.120.0070.03412.02
5.4.110.0060.03812.02
5.4.100.0060.03412.01
5.4.90.0060.04112.02
5.4.80.0070.03712.02
5.4.70.0050.03612.01
5.4.60.0110.02912.02
5.4.50.0040.03712.01
5.4.40.0090.03112.00
5.4.30.0080.03312.00
5.4.20.0040.03612.00
5.4.10.0040.03611.99
5.4.00.0130.02811.49
5.3.290.0120.03312.80
5.3.280.0080.03512.71
5.3.270.0080.03712.73
5.3.260.0080.04512.72
5.3.250.0040.04012.72
5.3.240.0020.04112.72
5.3.230.0040.04012.71
5.3.220.0070.03612.68
5.3.210.0050.03912.68
5.3.200.0050.03812.68
5.3.190.0040.04712.67
5.3.180.0090.03912.67
5.3.170.0050.03812.67
5.3.160.0060.04112.67
5.3.150.0060.03612.68
5.3.140.0020.04012.66
5.3.130.0070.03812.66
5.3.120.0040.04112.66
5.3.110.0040.04012.65
5.3.100.0080.03612.13
5.3.90.0060.03612.11
5.3.80.0050.03712.10
5.3.70.0080.03312.10
5.3.60.0070.03412.09
5.3.50.0060.03512.03
5.3.40.0040.03712.02
5.3.30.0050.03511.99
5.3.20.0060.03411.77
5.3.10.0080.03611.74
5.3.00.0070.03511.72
5.2.170.0040.0319.22
5.2.160.0060.0289.23
5.2.150.0060.0299.23
5.2.140.0080.0279.22
5.2.130.0050.0289.18
5.2.120.0040.0299.18
5.2.110.0060.0279.19
5.2.100.0050.0279.18
5.2.90.0040.0309.18
5.2.80.0040.0309.18
5.2.70.0010.0339.18
5.2.60.0050.0309.14
5.2.50.0060.0309.11
5.2.40.0050.0299.09
5.2.30.0070.0279.05
5.2.20.0060.0289.05
5.2.10.0060.0278.95
5.2.00.0050.0308.82
5.1.60.0050.0248.10
5.1.50.0060.0288.09
5.1.40.0080.0288.07
5.1.30.0030.0298.42
5.1.20.0040.0328.44
5.1.10.0060.0238.17
5.1.00.0020.0288.17
5.0.50.0040.0206.64
5.0.40.0040.0246.51
5.0.30.0050.0296.32
5.0.20.0070.0216.29
5.0.10.0050.0276.27
5.0.00.0060.0366.26
4.4.90.0030.0194.78
4.4.80.0010.0174.75
4.4.70.0030.0154.76
4.4.60.0020.0164.75
4.4.50.0030.0154.77
4.4.40.0040.0234.71
4.4.30.0040.0144.76
4.4.20.0040.0144.85
4.4.10.0020.0164.85
4.4.00.0010.0264.76
4.3.110.0020.0164.67
4.3.100.0030.0154.66
4.3.90.0020.0154.63
4.3.80.0000.0274.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0020.0153.24
4.3.00.0070.01316.50

preferences:
46.86 ms | 401 KiB | 5 Q