3v4l.org

run code in 300+ PHP versions simultaneously
<?php class zyf{ public $a=6; public $b; function zyf(){ //构造方法 echo $this->a; //一经实例化,马上调用,输出 6 } function show(){ echo $this->a; } } $xin = new zyf(); $xin->a=2; //给属性a赋值2 $xin->show(); //输出结果 2 ?>

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.0070.01418.55
8.3.50.0120.00921.14
8.3.40.0100.01018.71
8.3.30.0070.00720.26
8.3.20.0080.00020.19
8.3.10.0000.00821.88
8.3.00.0080.00022.26
8.2.180.0100.01016.63
8.2.170.0090.00922.96
8.2.160.0100.00322.11
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0110.00420.80
8.2.110.0060.00322.25
8.2.100.0040.00817.78
8.2.90.0040.00419.26
8.2.80.0080.00019.48
8.2.70.0000.00917.50
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0000.00819.39
8.2.20.0070.00017.51
8.2.10.0060.00317.68
8.2.00.0090.00317.50
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00718.94
8.1.230.0030.01019.23
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.51
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0040.00418.75
8.1.150.0050.00318.50
8.1.140.0050.00217.26
8.1.130.0000.00717.89
8.1.120.0000.00717.30
8.1.110.0030.00317.43
8.1.100.0050.00217.41
8.1.90.0040.00417.43
8.1.80.0040.00417.38
8.1.70.0000.00817.29
8.1.60.0080.00017.49
8.1.50.0070.00017.43
8.1.40.0000.00717.52
8.1.30.0040.00417.47
8.1.20.0030.00517.59
8.1.10.0080.00017.55
8.1.00.0000.00817.46
8.0.300.0030.00518.77
8.0.290.0040.00417.16
8.0.280.0030.00318.36
8.0.270.0070.00017.26
8.0.260.0030.00316.78
8.0.250.0040.00416.88
8.0.240.0000.00816.93
8.0.230.0000.00716.79
8.0.220.0030.00316.82
8.0.210.0000.00616.77
8.0.200.0030.00316.83
8.0.190.0040.00416.86
8.0.180.0040.00416.87
8.0.170.0040.00416.83
8.0.160.0030.00516.88
8.0.150.0000.00716.81
8.0.140.0000.00716.84
8.0.130.0050.00013.16
8.0.120.0040.00416.82
8.0.110.0000.00816.69
8.0.100.0000.00716.71
8.0.90.0000.00716.66
8.0.80.0120.00616.79
8.0.70.0050.00216.76
8.0.60.0070.00016.82
8.0.50.0000.00716.71
8.0.30.0100.01017.04
8.0.20.0080.01117.40
8.0.10.0000.00716.84
8.0.00.0150.00516.89
7.4.330.0020.00215.06
7.4.320.0030.00316.60
7.4.300.0030.00316.63
7.4.290.0000.00716.62
7.4.280.0030.00316.49
7.4.270.0030.00316.54
7.4.260.0000.00513.32
7.4.250.0000.00816.45
7.4.240.0000.00716.50
7.4.230.0030.00316.39
7.4.220.0130.01016.71
7.4.210.0080.01016.62
7.4.200.0030.00316.35
7.4.190.0030.00316.48
7.4.160.0110.00716.37
7.4.150.0130.00417.40
7.4.140.0090.00917.86
7.4.130.0100.00816.56
7.4.120.0060.01016.57
7.4.110.0040.01316.51
7.4.100.0070.01016.55
7.4.90.0110.00616.66
7.4.80.0070.01419.39
7.4.70.0170.00316.33
7.4.60.0070.01016.39
7.4.50.0000.00816.56
7.4.40.0110.00422.77
7.4.30.0100.00716.68
7.4.00.0070.01214.96
7.3.330.0050.00013.14
7.3.320.0030.00313.38
7.3.310.0030.00316.37
7.3.300.0030.00316.31
7.3.290.0130.00716.34
7.3.280.0060.01216.34
7.3.270.0130.00317.40
7.3.260.0120.00516.66
7.3.250.0070.01416.44
7.3.240.0070.01516.36
7.3.230.0100.00616.57
7.3.210.0090.00616.52
7.3.200.0130.01019.39
7.3.190.0060.01216.33
7.3.180.0120.00616.38
7.3.170.0150.00016.33
7.3.160.0100.01116.35
7.3.120.0050.01014.67
7.3.110.0070.00714.84
7.3.100.0070.01114.71
7.3.90.0120.00314.69
7.3.80.0140.00314.87
7.3.70.0000.01114.82
7.3.60.0090.00614.48
7.3.50.0000.01114.76
7.3.40.0060.00314.72
7.3.30.0120.00014.58
7.3.20.0120.00416.61
7.3.10.0000.01116.44
7.3.00.0030.01316.73
7.2.330.0140.00516.89
7.2.320.0030.01416.77
7.2.310.0070.01116.72
7.2.300.0000.01616.41
7.2.290.0030.01316.80
7.2.250.0060.01214.92
7.2.240.0090.00915.04
7.2.230.0040.01114.63
7.2.220.0070.01014.79
7.2.210.0100.00015.08
7.2.200.0060.00315.18
7.2.190.0090.00614.80
7.2.180.0060.00615.01
7.2.170.0030.00715.10
7.2.160.0100.00315.04
7.2.150.0090.00617.14
7.2.140.0030.00917.04
7.2.130.0070.00716.93
7.2.120.0080.00316.97
7.2.110.0070.00317.11
7.2.100.0070.00716.96
7.2.90.0140.00016.59
7.2.80.0020.01216.83
7.2.70.0070.01016.77
7.2.60.0070.00516.90
7.2.50.0070.00416.98
7.2.40.0070.01016.97
7.2.30.0030.00717.16
7.2.20.0130.00317.03
7.2.10.0070.00317.16
7.2.00.0060.00616.57
7.1.330.0030.01715.43
7.1.320.0110.00415.74
7.1.310.0120.00015.87
7.1.300.0080.00815.72
7.1.290.0100.00315.79
7.1.280.0060.00315.61
7.1.270.0070.00715.91
7.1.260.0000.00815.59
7.1.250.0090.00615.66
7.1.240.0070.00415.86
7.1.230.0080.00415.77
7.1.220.0100.00315.78
7.1.210.0040.00715.78
7.1.200.0070.00815.63
7.1.190.0060.00615.77
7.1.180.0040.00715.70
7.1.170.0040.01115.77
7.1.160.0060.00915.36
7.1.150.0060.00915.77
7.1.140.0070.00715.36
7.1.130.0000.00915.69
7.1.120.0060.00915.77
7.1.110.0000.01415.75
7.1.100.0070.00716.78
7.1.90.0000.01415.76
7.1.80.0070.00315.55
7.1.70.0060.00616.50
7.1.60.0030.01617.42
7.1.50.0190.00725.04
7.1.40.0000.01415.77
7.1.30.0150.00315.74
7.1.20.0140.00315.80
7.1.10.0100.00415.84
7.1.00.0020.03319.04
7.0.330.0060.00915.27
7.0.320.0000.01215.41
7.0.310.0070.00715.04
7.0.300.0030.01015.41
7.0.290.0070.00715.23
7.0.280.0090.00615.16
7.0.270.0100.00315.38
7.0.260.0080.00615.18
7.0.250.0050.00515.39
7.0.240.0030.00915.33
7.0.230.0000.00915.60
7.0.220.0030.01015.55
7.0.210.0060.00315.54
7.0.200.0030.00916.03
7.0.190.0030.00815.47
7.0.180.0060.00915.53
7.0.170.0060.00615.52
7.0.160.0080.00815.10
7.0.150.0030.00715.34
7.0.140.0060.03918.64
7.0.130.0030.01015.29
7.0.120.0030.01015.24
7.0.110.0070.00315.29
7.0.100.0000.01115.23
7.0.90.0060.00915.44
7.0.80.0060.01015.33
7.0.70.0440.04317.63
7.0.60.0410.04617.66
7.0.50.0440.03017.90
7.0.40.0110.04416.73
7.0.30.0020.05016.81
7.0.20.0050.04616.70
7.0.10.0080.04716.81
7.0.00.0030.02816.80
5.6.400.0030.01014.05
5.6.390.0090.00614.18
5.6.380.0090.00614.44
5.6.370.0060.00614.32
5.6.360.0030.00914.32
5.6.350.0000.00914.44
5.6.340.0110.00314.38
5.6.330.0070.00714.66
5.6.320.0030.01014.41
5.6.310.0000.01714.24
5.6.300.0130.00014.44
5.6.290.0060.00614.33
5.6.280.0110.00314.52
5.6.270.0060.01014.42
5.6.260.0030.00614.53
5.6.250.0040.00714.46
5.6.240.0070.00314.40
5.6.230.0000.01914.66
5.6.220.0070.02517.56
5.6.210.0070.04817.50
5.6.200.0070.04117.80
5.6.190.0030.02717.69
5.6.180.0080.03617.75
5.6.170.0120.04317.56
5.6.160.0070.03417.54
5.6.150.0100.04517.67
5.6.140.0150.03817.67
5.6.130.0050.04517.63
5.6.120.0080.03217.74
5.6.110.0110.04217.82
5.6.100.0110.02517.83
5.6.90.0130.03817.63
5.6.80.0110.04117.33
5.6.70.0050.04117.41
5.6.60.0060.04617.35
5.6.50.0090.04017.60
5.6.40.0050.04517.39
5.6.30.0080.04217.37
5.6.20.0080.04117.40
5.6.10.0100.04017.37
5.6.00.0090.04417.25
5.5.380.0030.01014.08
5.5.370.0030.01714.48
5.5.360.0110.04117.26
5.5.350.0030.04917.36
5.5.340.0010.04417.42
5.5.330.0100.04017.42
5.5.320.0030.03817.71
5.5.310.0120.04017.63
5.5.300.0050.04717.49
5.5.290.0040.02917.44
5.5.280.0070.04717.47
5.5.270.0130.04217.64
5.5.260.0060.04517.69
5.5.250.0050.04817.34
5.5.240.0070.04317.28
5.5.230.0030.05017.08
5.5.220.0070.04217.36
5.5.210.0060.04017.25
5.5.200.0020.04617.30
5.5.190.0050.04617.15
5.5.180.0050.04717.31
5.5.170.0060.00914.27
5.5.160.0050.04817.25
5.5.150.0050.02517.17
5.5.140.0110.04117.22
5.5.130.0090.03717.28
5.5.120.0050.04417.18
5.5.110.0130.03617.28
5.5.100.0080.04017.13
5.5.90.0080.03017.04
5.5.80.0070.03316.94
5.5.70.0050.03117.13
5.5.60.0080.04017.10
5.5.50.0080.04117.17
5.5.40.0160.03117.21
5.5.30.0070.03917.18
5.5.20.0050.03317.15
5.5.10.0080.04417.02
5.5.00.0110.03117.24
5.4.450.0030.03215.74
5.4.440.0050.04015.73
5.4.430.0050.03315.79
5.4.420.0050.02815.73
5.4.410.0030.04515.70
5.4.400.0080.03915.61
5.4.390.0030.04715.66
5.4.380.0050.03515.66
5.4.370.0110.03715.64
5.4.360.0120.03715.49
5.4.350.0030.03715.64
5.4.340.0100.03815.63
5.4.330.0000.00612.11
5.4.320.0050.03215.66
5.4.310.0030.04215.49
5.4.300.0080.04015.65
5.4.290.0090.01915.57
5.4.280.0050.03915.49
5.4.270.0020.03715.57
5.4.260.0030.04415.64
5.4.250.0070.04015.63
5.4.240.0030.04215.63
5.4.230.0050.02815.60
5.4.220.0080.03915.61
5.4.210.0060.04115.49
5.4.200.0080.03815.57
5.4.190.0070.03615.61
5.4.180.0000.03315.63
5.4.170.0070.04315.64
5.4.160.0050.02815.49
5.4.150.0030.04615.59
5.4.140.0000.03014.27
5.4.130.0030.02314.26
5.4.120.0050.04114.26
5.4.110.0060.03114.27
5.4.100.0070.03514.29
5.4.90.0050.02914.30
5.4.80.0070.03214.29
5.4.70.0010.03014.30
5.4.60.0030.02414.26
5.4.50.0040.02614.26
5.4.40.0070.02714.27
5.4.30.0100.02714.27
5.4.20.0050.04114.27
5.4.10.0090.03814.21
5.4.00.0080.02114.00
5.3.290.0030.03113.44
5.3.280.0030.02513.36
5.3.270.0080.03813.35
5.3.260.0070.03513.41
5.3.250.0050.04313.40
5.3.240.0000.02313.32
5.3.230.0050.03613.33
5.3.220.0070.04713.30
5.3.210.0020.04613.40
5.3.200.0050.04313.37
5.3.190.0070.04213.33
5.3.180.0080.02413.30
5.3.170.0090.02113.30
5.3.160.0030.03013.37
5.3.150.0070.04213.39
5.3.140.0020.02713.35
5.3.130.0050.03213.32
5.3.120.0060.03213.37
5.3.110.0030.04013.32
5.3.100.0050.04413.13
5.3.90.0060.04113.07
5.3.80.0060.03013.05
5.3.70.0000.02413.09
5.3.60.0110.03513.09
5.3.50.0090.02012.97
5.3.40.0050.03512.99
5.3.30.0030.04113.05
5.3.20.0030.02212.85
5.3.10.0100.03312.94
5.3.00.0080.02112.91
5.2.170.0070.03312.25
5.2.160.0070.05712.25
5.2.150.0030.03012.25
5.2.140.0030.04712.25
5.2.130.0030.05312.25
5.2.120.0070.05712.25
5.2.110.0030.06712.25
5.2.100.0030.03312.25
5.2.90.0030.05012.25
5.2.80.0070.05312.25
5.2.70.0030.06712.25
5.2.60.0030.06012.25
5.2.50.0030.05712.25
5.2.40.0030.06712.25
5.2.30.0130.06012.25
5.2.20.0100.05712.25
5.2.10.0000.04012.25
5.2.00.0030.04712.25
5.1.60.0070.05312.25
5.1.50.0070.05312.25
5.1.40.0030.05012.25
5.1.30.0070.05312.25
5.1.20.0070.03712.25
5.1.10.0100.05312.25
5.1.00.0070.04712.25
5.0.50.0030.03712.25
5.0.40.0000.05012.25
5.0.30.0030.04712.25
5.0.20.0030.02012.25
5.0.10.0030.04712.25
5.0.00.0070.06012.25
4.4.90.0000.03312.25
4.4.80.0000.03712.25
4.4.70.0030.02312.25
4.4.60.0030.03712.25
4.4.50.0070.02012.25
4.4.40.0030.05712.25
4.4.30.0000.04012.25
4.4.20.0000.03712.25
4.4.10.0000.02012.25
4.4.00.0030.03312.25
4.3.110.0030.03312.25
4.3.100.0000.02012.25
4.3.90.0000.02712.25
4.3.80.0000.04712.25
4.3.70.0000.03712.25
4.3.60.0070.03012.25
4.3.50.0100.03012.25
4.3.40.0030.05012.25
4.3.30.0030.03312.25
4.3.20.0000.03712.25
4.3.10.0000.03712.25
4.3.00.0030.03312.25

preferences:
43.11 ms | 401 KiB | 5 Q