3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { var $prop; public function change() { $prop=2; } public function output() { echo $prop,"\r\n"; } } class b { public function change() { $this->prop=2; } public function output() { echo $this->prop; } } $objA=new a(); $objB=new b(); $objA->change(); $objA->output(); $objB->change(); $objB->output();

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.0160.00317.00
8.3.50.0160.00318.32
8.3.40.0040.01118.57
8.3.30.0110.00418.84
8.3.20.0080.00018.73
8.3.10.0030.00618.73
8.3.00.0030.00519.38
8.2.180.0090.00625.92
8.2.170.0090.00618.82
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00019.54
8.2.110.0030.00622.20
8.2.100.0090.00317.59
8.2.90.0000.00917.63
8.2.80.0050.00318.90
8.2.70.0040.00417.50
8.2.60.0030.00517.93
8.2.50.0050.00317.78
8.2.40.0040.00419.35
8.2.30.0110.00017.68
8.2.20.0120.00017.77
8.2.10.0000.00717.83
8.2.00.0060.00317.85
8.1.280.0120.00425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00019.07
8.1.230.0060.00617.70
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0050.00617.23
8.1.190.0030.00617.22
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0080.00019.03
8.1.150.0020.00518.63
8.1.140.0070.00017.32
8.1.130.0030.00317.30
8.1.120.0070.00017.38
8.1.110.0030.00517.36
8.1.100.0030.00317.30
8.1.90.0040.00417.39
8.1.80.0030.00517.44
8.1.70.0030.00317.38
8.1.60.0030.00517.58
8.1.50.0060.00317.38
8.1.40.0000.00817.52
8.1.30.0050.00317.63
8.1.20.0030.00617.49
8.1.10.0040.00417.59
8.1.00.0000.00717.39
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0000.00818.47
8.0.270.0080.00017.27
8.0.260.0030.00316.89
8.0.250.0100.00017.07
8.0.240.0040.00417.04
8.0.230.0040.00417.00
8.0.220.0090.00016.90
8.0.210.0040.00416.91
8.0.200.0030.00317.02
8.0.190.0050.00316.97
8.0.180.0040.00416.84
8.0.170.0030.00616.80
8.0.160.0030.00316.80
8.0.150.0030.00616.95
8.0.140.0080.00016.82
8.0.130.0030.00313.27
8.0.120.0000.01016.73
8.0.110.0040.00416.84
8.0.100.0040.00416.97
8.0.90.0000.00816.93
8.0.80.0100.01316.80
8.0.70.0040.00416.85
8.0.60.0020.00516.90
8.0.50.0040.00416.77
8.0.30.0100.01016.88
8.0.20.0100.00817.18
8.0.10.0000.00716.84
8.0.00.0070.01216.81
7.4.330.0050.00013.05
7.4.320.0030.00316.47
7.4.300.0040.00416.57
7.4.290.0070.00016.50
7.4.280.0070.00016.51
7.4.270.0030.00316.46
7.4.260.0000.00613.21
7.4.250.0070.00016.49
7.4.240.0030.00316.45
7.4.230.0080.00016.62
7.4.220.0120.00316.41
7.4.210.0090.00916.68
7.4.200.0070.00016.36
7.4.190.0050.00316.63
7.4.160.0030.01316.65
7.4.150.0120.00616.62
7.4.140.0150.00417.86
7.4.130.0070.01016.63
7.4.120.0150.00616.46
7.4.110.0030.01516.52
7.4.100.0100.00716.64
7.4.90.0090.00916.53
7.4.80.0100.00719.39
7.4.70.0030.02016.61
7.4.60.0060.01516.44
7.4.50.0060.00316.40
7.4.40.0070.00716.55
7.4.30.0040.01716.50
7.4.00.0040.01114.89
7.3.330.0000.00613.24
7.3.320.0030.00413.27
7.3.310.0080.00016.40
7.3.300.0040.00416.36
7.3.290.0110.00516.34
7.3.280.0060.00916.30
7.3.270.0160.00016.32
7.3.260.0090.01316.34
7.3.240.0100.00716.47
7.3.230.0060.01216.43
7.3.210.0160.00316.59
7.3.200.0080.00816.62
7.3.190.0100.00616.61
7.3.180.0100.00616.70
7.3.170.0080.00916.55
7.3.160.0040.01516.55
7.3.120.0070.00914.91
7.3.110.0070.00714.80
7.3.100.0050.01314.78
7.3.90.0030.01314.91
7.3.80.0100.00114.81
7.3.70.0060.00314.63
7.3.60.0000.01214.72
7.3.50.0040.00814.89
7.3.40.0070.00514.85
7.3.30.0080.00414.91
7.3.20.0030.01216.82
7.3.10.0080.00816.70
7.3.00.0080.00516.74
7.2.330.0060.01616.79
7.2.320.0070.01116.77
7.2.310.0100.01016.70
7.2.300.0070.01416.73
7.2.290.0100.00716.52
7.2.250.0070.01115.02
7.2.240.0110.00815.24
7.2.230.0060.00814.90
7.2.220.0110.00414.80
7.2.210.0060.00915.14
7.2.200.0070.00614.87
7.2.190.0050.01215.00
7.2.180.0090.00615.00
7.2.170.0100.00314.85
7.2.130.0000.00917.05
7.2.120.0030.01216.84
7.2.110.0040.00416.54
7.2.100.0060.00616.95
7.2.90.0000.00916.95
7.2.80.0080.00616.65
7.2.70.0030.01216.73
7.2.60.0000.01016.70
7.2.50.0090.00616.69
7.2.40.0040.00816.98
7.2.30.0080.00316.99
7.2.20.0050.00516.64
7.2.10.0150.00017.06
7.2.00.0070.00517.74
7.1.330.0090.00615.51
7.1.320.0030.00915.66
7.1.310.0030.00915.68
7.1.300.0030.01215.74
7.1.290.0070.00715.60
7.1.280.0040.00915.76
7.1.270.0030.00715.81
7.1.260.0070.00715.74
7.1.250.0060.00315.83
7.1.240.0040.00715.85
7.1.230.0000.00815.81
7.1.220.0000.00815.73
7.1.210.0060.00615.70
7.1.200.0040.01115.95
7.1.190.0060.00315.59
7.1.180.0030.01015.47
7.1.170.0090.00015.72
7.1.160.0070.00315.92
7.1.150.0070.00415.88
7.1.140.0060.00315.84
7.1.130.0070.00315.75
7.1.120.0100.00015.83
7.1.110.0000.01115.88
7.1.100.0030.00617.04
7.1.90.0070.00315.94
7.1.80.0040.00715.58
7.1.70.0060.00616.44
7.1.60.0140.00717.61
7.1.50.0070.01125.31
7.1.40.0060.00915.74
7.1.30.0030.00715.85
7.1.20.0030.00915.75
7.1.10.0060.00615.56
7.1.00.0020.02219.07
7.0.330.0030.00615.53
7.0.320.0060.00615.36
7.0.310.0090.00615.09
7.0.300.0070.00715.05
7.0.290.0030.00715.43
7.0.280.0070.00315.62
7.0.270.0070.00315.37
7.0.260.0070.00415.36
7.0.250.0040.00415.47
7.0.240.0080.00615.57
7.0.230.0140.00015.45
7.0.220.0000.01015.43
7.0.210.0080.00415.27
7.0.200.0050.00816.20
7.0.190.0090.00415.39
7.0.180.0030.00615.34
7.0.170.0060.01015.65
7.0.160.0100.00315.44
7.0.150.0030.00515.23
7.0.140.0100.03318.79
7.0.130.0080.00015.49
7.0.120.0070.03818.74
7.0.110.0070.00315.37
7.0.100.0040.01115.05
7.0.90.0000.01115.40
7.0.80.0030.00615.68
7.0.70.0040.00815.50
7.0.60.0120.02517.74
7.0.50.0030.02116.74
7.0.40.0030.03616.84
7.0.30.0160.03016.81
7.0.20.0130.02716.75
7.0.10.0150.03016.83
7.0.00.0110.04116.60
5.6.380.0110.00014.66
5.6.370.0070.00714.29
5.6.360.0070.00714.47
5.6.350.0070.00714.54
5.6.340.0080.00314.21
5.6.330.0040.00714.57
5.6.320.0030.00714.33
5.6.310.0000.01414.43
5.6.300.0100.00014.29
5.6.290.0130.00014.46
5.6.280.0040.04017.65
5.6.270.0080.00314.37
5.6.260.0080.00314.48
5.6.250.0090.00614.25
5.6.240.0060.00914.34
5.6.230.0100.00314.31
5.6.220.0070.00714.54
5.6.210.0090.04017.40
5.6.200.0050.02416.44
5.6.190.0020.04717.49
5.6.180.0140.04117.39
5.6.170.0260.03917.38
5.6.160.0110.04517.35
5.6.150.0090.04416.32
5.6.140.0120.04016.47
5.6.130.0070.02516.24
5.6.120.0080.04117.61
5.6.110.0130.04017.62
5.6.100.0050.02817.68
5.6.90.0050.03517.73
5.6.80.0020.04917.42
5.6.70.0150.04717.36
5.6.60.0080.01214.12
5.6.50.0060.00614.25
5.6.40.0070.00714.12
5.6.30.0060.01013.97
5.6.20.0030.01014.13
5.6.10.0070.00214.42
5.6.00.0040.01114.17
5.5.380.0030.00611.30
5.5.370.0000.01111.34
5.5.360.0030.00611.26
5.5.350.0110.04015.72
5.5.340.0070.04114.47
5.5.330.0070.03315.72
5.5.320.0100.04515.62
5.5.310.0150.03215.75
5.5.300.0050.02214.57
5.5.290.0070.04414.72
5.5.280.0020.04015.93
5.5.270.0100.04016.01
5.5.260.0060.02315.97
5.5.250.0030.04315.80
5.5.240.0060.04015.59
5.5.230.0090.00311.13
5.5.220.0080.00211.24
5.5.210.0030.00911.20
5.5.200.0030.01011.05
5.5.190.0030.00611.13
5.5.180.0030.00611.00
5.5.170.0070.00411.00
5.5.160.0100.00010.90
5.5.150.0030.00910.92
5.5.140.0030.00611.20
5.5.130.0120.00311.05
5.5.120.0040.00411.28
5.5.110.0040.00711.00
5.5.100.0030.00910.91
5.5.90.0030.00910.97
5.5.80.0030.00910.97
5.5.70.0040.01110.98
5.5.60.0030.00711.08
5.5.50.0000.00810.94
5.5.40.0060.00611.29
5.5.30.0050.00311.33
5.5.20.0030.00810.93
5.5.10.0040.00711.23
5.5.00.0030.00611.18
5.4.450.0080.04215.22
5.4.440.0070.03815.21
5.4.430.0060.03515.11
5.4.420.0030.04015.08
5.4.410.0020.02715.26
5.4.400.0030.03715.02
5.4.390.0050.03715.07
5.4.380.0080.03114.88
5.4.370.0090.03315.07
5.4.360.0050.03315.07
5.4.350.0020.04115.02
5.4.340.0020.04415.03
5.4.330.0000.00911.02
5.4.320.0080.02215.08
5.4.310.0020.03215.16
5.4.300.0050.04015.10
5.4.290.0050.03915.01
5.4.280.0040.02314.87
5.4.270.0020.03814.98
5.4.260.0080.03915.02
5.4.250.0040.04314.95
5.4.240.0080.03915.04
5.4.230.0050.02714.98
5.4.220.0050.03915.09
5.4.210.0070.03715.09
5.4.200.0030.04015.02
5.4.190.0060.03814.90
5.4.180.0030.04115.01
5.4.170.0090.03615.02
5.4.160.0050.03414.86
5.4.150.0060.01814.88
5.4.140.0070.01813.70
5.4.130.0050.02813.77
5.4.120.0060.02813.77
5.4.110.0040.04013.76
5.4.100.0030.03513.82
5.4.90.0030.02913.82
5.4.80.0050.03613.89
5.4.70.0040.02513.78
5.4.60.0050.03213.77
5.4.50.0050.03913.67
5.4.40.0030.03513.64
5.4.30.0100.03413.72
5.4.20.0050.03413.78
5.4.10.0070.02513.71
5.4.00.0060.03613.47
5.3.290.0050.03812.73
5.3.280.0080.03812.78
5.3.270.0020.04012.77
5.3.260.0050.03012.75
5.3.250.0010.02312.77
5.3.240.0030.04012.75
5.3.230.0030.02912.75
5.3.220.0040.03612.74
5.3.210.0030.02512.74
5.3.200.0050.03812.73
5.3.190.0030.04012.74
5.3.180.0030.04012.74
5.3.170.0030.04012.75
5.3.160.0050.02012.73
5.3.150.0050.04112.73
5.3.140.0000.03412.73
5.3.130.0080.03712.72
5.3.120.0100.03712.75
5.3.110.0030.03612.74
5.3.100.0050.04212.47
5.3.90.0090.02812.42
5.3.80.0070.02212.50
5.3.70.0050.04212.48
5.3.60.0100.04012.53
5.3.50.0040.03912.43
5.3.40.0050.03812.42
5.3.30.0010.03612.48
5.3.20.0040.04212.28
5.3.10.0070.01812.28
5.3.00.0120.01812.27
5.2.170.0070.02011.11
5.2.160.0020.03511.06
5.2.150.0030.02011.11
5.2.140.0050.02710.97
5.2.130.0060.02011.00
5.2.120.0030.01810.98
5.2.110.0030.03210.96
5.2.100.0030.03310.96
5.2.90.0050.03211.04
5.2.80.0020.01911.07
5.2.70.0050.02311.00
5.2.60.0050.03311.02
5.2.50.0030.02811.00
5.2.40.0000.02110.89
5.2.30.0000.03910.88
5.2.20.0070.01811.01
5.2.10.0010.01610.91
5.2.00.0030.01810.88
5.1.60.0000.01610.47
5.1.50.0050.01110.46
5.1.40.0020.01310.45
5.1.30.0020.01610.70
5.1.20.0030.01510.63
5.1.10.0050.01210.53
5.1.00.0040.01310.47
5.0.50.0040.0109.73
5.0.40.0030.0119.64
5.0.30.0020.0159.64
5.0.20.0050.0089.53
5.0.10.0050.0159.52
5.0.00.0030.0209.56
4.4.90.0030.0119.52
4.4.80.0060.0159.52
4.4.70.0030.0119.52
4.4.60.0030.0089.52
4.4.50.0020.0109.52
4.4.40.0040.0129.52
4.4.30.0010.0099.52
4.4.20.0000.0109.52
4.4.10.0030.0089.52
4.4.00.0040.0129.52
4.3.110.0050.0079.52
4.3.100.0000.0099.52
4.3.90.0030.0089.52
4.3.80.0000.0169.52
4.3.70.0020.0089.52
4.3.60.0000.0099.52
4.3.50.0010.0099.52
4.3.40.0000.0159.52
4.3.30.0030.0099.52
4.3.20.0000.0119.52
4.3.10.0000.0129.52
4.3.00.0000.0109.52

preferences:
56.23 ms | 401 KiB | 5 Q