3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Car { public $color = ""; public $type; public function wheel (){ return "I have 4 wheels"; } public function tire (){ return 'size 17"'; } } $auto = new Car(); $auto->color = "red"; $auto->type = "sedan"; //echo $car->wheel(); echo $car->tire();

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.0130.00716.88
8.3.50.0130.00421.99
8.3.40.0110.00418.79
8.3.30.0100.00719.23
8.3.20.0050.00220.34
8.3.10.0040.00423.61
8.3.00.0080.00018.05
8.2.180.0070.00718.56
8.2.170.0060.01122.96
8.2.160.0040.01120.41
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00021.09
8.2.110.0170.00021.96
8.2.100.0080.00317.63
8.2.90.0030.00519.03
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0060.00317.93
8.2.50.0030.00518.07
8.2.40.0000.00819.34
8.2.30.0070.00318.11
8.2.20.0040.00417.60
8.2.10.0040.00417.99
8.2.00.0000.00817.74
8.1.280.0140.00025.92
8.1.270.0060.00324.01
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0080.00023.87
8.1.230.0110.00019.15
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0090.00317.35
8.1.190.0030.00617.13
8.1.180.0060.00318.10
8.1.170.0030.00618.51
8.1.160.0040.00422.00
8.1.150.0050.00218.73
8.1.140.0000.00817.31
8.1.130.0030.00317.33
8.1.120.0070.00017.29
8.1.110.0040.00417.29
8.1.100.0000.00717.43
8.1.90.0000.00717.34
8.1.80.0040.00717.42
8.1.70.0000.00717.36
8.1.60.0030.00617.57
8.1.50.0000.00817.57
8.1.40.0000.00817.42
8.1.30.0060.00317.66
8.1.20.0070.00017.61
8.1.10.0000.00817.60
8.1.00.0050.00217.59
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0030.00517.25
8.0.260.0030.00316.75
8.0.250.0070.00016.98
8.0.240.0000.00716.95
8.0.230.0060.00316.94
8.0.220.0040.00416.74
8.0.210.0070.00016.97
8.0.200.0070.00016.95
8.0.190.0040.00416.89
8.0.180.0000.00716.90
8.0.170.0050.00316.95
8.0.160.0030.00316.86
8.0.150.0040.00416.83
8.0.140.0000.00816.91
8.0.130.0030.00313.30
8.0.120.0040.00416.85
8.0.110.0040.00416.91
8.0.100.0060.00316.77
8.0.90.0000.00716.78
8.0.80.0110.01016.85
8.0.70.0040.00416.77
8.0.60.0070.00016.86
8.0.50.0030.00616.94
8.0.30.0080.01216.87
8.0.20.0110.01117.40
8.0.10.0000.00716.88
8.0.00.0110.00716.87
7.4.330.0000.00515.00
7.4.320.0060.00016.47
7.4.300.0000.00616.62
7.4.290.0070.00016.65
7.4.280.0030.00516.43
7.4.270.0040.00416.59
7.4.260.0100.00016.59
7.4.250.0000.00716.58
7.4.240.0060.00116.48
7.4.230.0030.00316.27
7.4.220.0070.01816.46
7.4.210.0100.00416.56
7.4.200.0030.00316.71
7.4.160.0070.01016.44
7.4.150.0070.01117.40
7.4.140.0130.00717.86
7.4.130.0100.00716.45
7.4.120.0090.00816.43
7.4.110.0060.01216.53
7.4.100.0220.00016.34
7.4.90.0170.00016.71
7.4.80.0150.00719.39
7.4.70.0030.01316.53
7.4.60.0030.01316.46
7.4.50.0040.00416.50
7.4.40.0060.01516.52
7.4.30.0070.01016.48
7.4.00.0070.01014.93
7.3.330.0000.00813.25
7.3.320.0050.00013.30
7.3.310.0040.00416.31
7.3.300.0030.00316.29
7.3.290.0030.01116.32
7.3.280.0100.00816.30
7.3.270.0150.00317.40
7.3.260.0110.01416.42
7.3.250.0110.00616.33
7.3.240.0100.01316.23
7.3.230.0060.01216.39
7.3.210.0060.01216.66
7.3.200.0070.01119.39
7.3.190.0100.00616.48
7.3.180.0080.00816.56
7.3.170.0100.00716.31
7.3.160.0110.00516.46
7.3.120.0030.01314.59
7.3.10.0100.00616.69
7.3.00.0020.00916.47
7.2.330.0070.01016.65
7.2.320.0080.00816.70
7.2.310.0140.00916.68
7.2.300.0140.00916.38
7.2.290.0090.00916.70
7.2.130.0070.00516.81
7.2.120.0080.00616.67
7.2.110.0080.00616.81
7.2.100.0050.01016.89
7.2.90.0100.00716.65
7.2.80.0120.00516.79
7.2.70.0080.00816.75
7.2.60.0070.00516.88
7.2.50.0060.01216.98
7.2.40.0070.00916.85
7.2.30.0090.00616.93
7.2.20.0070.00716.75
7.2.10.0080.01016.74
7.2.00.0140.00817.55
7.1.250.0060.00615.79
7.1.240.0050.00315.63
7.1.230.0030.00915.66
7.1.220.0110.00015.47
7.1.210.0100.00315.68
7.1.200.0050.00615.60
7.1.190.0050.00515.64
7.1.180.0060.00615.62
7.1.170.0090.00015.34
7.1.160.0060.00615.61
7.1.150.0100.00315.66
7.1.140.0040.01115.58
7.1.130.0100.00615.26
7.1.120.0030.00515.63
7.1.110.0060.01015.82
7.1.100.0060.00716.69
7.1.90.0000.01215.63
7.1.80.0030.00615.63
7.1.70.0030.00716.27
7.1.60.0130.00517.72
7.1.50.0060.01016.28
7.1.40.0070.01115.71
7.1.30.0000.00815.71
7.1.20.0030.01115.67
7.1.10.0100.01015.68
7.1.00.0020.04518.98
7.0.330.0130.00315.27
7.0.320.0110.00415.07
7.0.310.0040.00715.33
7.0.300.0000.01415.17
7.0.290.0060.00914.89
7.0.280.0120.00614.93
7.0.270.0050.00515.49
7.0.260.0070.00715.15
7.0.250.0040.00415.49
7.0.240.0110.00715.46
7.0.230.0060.00615.46
7.0.220.0060.00615.17
7.0.210.0000.00815.29
7.0.200.0060.00816.09
7.0.190.0090.00615.39
7.0.180.0040.00415.21
7.0.170.0120.00315.27
7.0.160.0070.00314.94
7.0.150.0050.00515.26
7.0.140.0030.04218.69
7.0.130.0100.00315.29
7.0.120.0070.00315.36
7.0.110.0170.00015.21
7.0.100.0030.00914.88
7.0.90.0030.00615.28
7.0.80.0120.00014.96
7.0.70.0090.00615.27
7.0.60.0050.03817.61
7.0.50.0090.03216.50
7.0.40.0080.04216.78
7.0.30.0130.03316.83
7.0.20.0180.02516.67
7.0.10.0130.04816.73
7.0.00.0050.02216.69
5.6.380.0070.00714.22
5.6.370.0030.01014.25
5.6.360.0000.00714.46
5.6.350.0040.00414.05
5.6.340.0070.00414.14
5.6.330.0000.00814.07
5.6.320.0030.01214.41
5.6.310.0040.01114.14
5.6.300.0120.00314.03
5.6.290.0030.00614.43
5.6.280.0060.03617.62
5.6.270.0100.00314.30
5.6.260.0070.00714.25
5.6.250.0100.00714.39
5.6.240.0080.00814.54
5.6.230.0040.00413.97
5.6.220.0110.00414.33
5.6.210.0030.02617.61
5.6.200.0030.02416.29
5.6.190.0100.02517.48
5.6.180.0090.02117.21
5.6.170.0150.04717.32
5.6.160.0100.04417.48
5.6.150.0050.04816.23
5.6.140.0050.04216.38
5.6.130.0080.02016.16
5.6.120.0100.04217.55
5.6.110.0120.03717.74
5.6.100.0080.03117.59
5.6.90.0090.04317.65
5.6.80.0070.04617.34
5.6.70.0190.02117.31
5.6.60.0070.01114.04
5.6.50.0120.00313.97
5.6.40.0030.00514.14
5.6.30.0080.00014.24
5.6.20.0030.00914.15
5.6.10.0000.00714.27
5.6.00.0030.01014.55
5.5.380.0060.00611.16
5.5.370.0040.00810.98
5.5.360.0030.00611.27
5.5.350.0070.03715.85
5.5.340.0080.03614.47
5.5.330.0030.04515.65
5.5.320.0100.04115.60
5.5.310.0170.03715.83
5.5.300.0020.04914.51
5.5.290.0070.03014.56
5.5.280.0050.04615.70
5.5.270.0080.04315.76
5.5.260.0080.03716.02
5.5.250.0090.03615.65
5.5.240.0130.03815.64
5.5.230.0000.00810.98
5.5.220.0100.00311.27
5.5.210.0070.00311.27
5.5.200.0110.00010.94
5.5.190.0070.00311.09
5.5.180.0050.00511.25
5.5.170.0070.00311.04
5.5.160.0000.00810.83
5.5.150.0080.00311.03
5.5.140.0050.00311.07
5.5.130.0060.00611.08
5.5.120.0040.00411.21
5.5.110.0070.00310.77
5.5.100.0060.00011.02
5.5.90.0080.00311.04
5.5.80.0030.00510.79
5.5.70.0030.00610.84
5.5.60.0090.00011.06
5.5.50.0000.01010.95
5.5.40.0070.00310.95
5.5.30.0050.00310.94
5.5.20.0080.00411.02
5.5.10.0040.00811.13
5.5.00.0000.01210.77
5.4.450.0250.02515.34
5.4.440.0210.02414.94
5.4.430.0220.02215.10
5.4.420.0250.02215.20
5.4.410.0270.02015.09
5.4.400.0280.03015.13
5.4.390.0220.02214.96
5.4.380.0150.02514.80
5.4.370.0080.03014.80
5.4.360.0100.02814.57
5.4.350.0150.02214.76
5.4.340.0130.02314.77
5.4.330.0040.00710.66
5.4.320.0060.02111.81
5.4.310.0060.02111.63
5.4.300.0070.02011.80
5.4.290.0050.02311.66
5.4.280.0070.01911.62
5.4.270.0020.02211.66
5.4.260.0040.02311.51
5.4.250.0070.02011.64
5.4.240.0050.02211.51
5.4.230.0040.02211.55
5.4.220.0060.02311.63
5.4.210.0030.02211.58
5.4.200.0080.02311.63
5.4.190.0060.02111.53
5.4.180.0060.01811.73
5.4.170.0050.02211.71
5.4.160.0030.02311.63
5.4.150.0040.02111.52
5.4.140.0040.02211.34
5.4.130.0100.01711.47
5.4.120.0040.02411.34
5.4.110.0050.02111.44
5.4.100.0070.01711.49
5.4.90.0030.02411.35
5.4.80.0030.02411.43
5.4.70.0040.02111.52
5.4.60.0040.01911.47
5.4.50.0060.02011.48
5.4.40.0080.01811.40
5.4.30.0070.01911.35
5.4.20.0050.02111.51
5.4.10.0020.02311.49
5.4.00.0060.02611.23
5.3.290.0050.02211.75
5.3.280.0040.02411.60
5.3.270.0030.02511.65
5.3.260.0030.02211.61
5.3.250.0050.02111.65
5.3.240.0050.02211.58
5.3.230.0040.02211.63
5.3.220.0040.02311.61
5.3.210.0010.02711.58
5.3.200.0040.02211.41
5.3.190.0040.02111.59
5.3.180.0040.02011.65
5.3.170.0060.02011.67
5.3.160.0040.02311.53
5.3.150.0040.02111.66
5.3.140.0090.01811.60
5.3.130.0040.02311.51
5.3.120.0060.02311.62
5.3.110.0040.02311.62
5.3.100.0060.01911.31
5.3.90.0050.01911.30
5.3.80.0040.02211.28
5.3.70.0050.02011.26
5.3.60.0040.02011.19
5.3.50.0040.02311.22
5.3.40.0050.02011.27
5.3.30.0040.02011.21
5.3.20.0040.02111.10
5.3.10.0070.01510.93
5.3.00.0050.02111.00
5.2.170.0040.0169.40
5.2.160.0020.0189.40
5.2.150.0020.0209.25
5.2.140.0020.0199.34
5.2.130.0040.0179.35
5.2.120.0060.0149.37
5.2.110.0060.0159.38
5.2.100.0020.0189.27
5.2.90.0020.0199.38
5.2.80.0070.0169.29
5.2.70.0030.0209.20
5.2.60.0010.0229.29
5.2.50.0010.0229.28
5.2.40.0060.0159.19
5.2.30.0040.0189.24
5.2.20.0040.0219.13
5.2.10.0040.0169.08
5.2.00.0040.0169.01
5.1.60.0050.0138.65
5.1.50.0020.0148.65
5.1.40.0040.0158.64
5.1.30.0040.0138.81
5.1.20.0040.0168.83
5.1.10.0020.0188.69
5.1.00.0030.0178.69
5.0.50.0020.0127.93
5.0.40.0020.0127.86
5.0.30.0030.0187.77
5.0.20.0020.0147.75
5.0.10.0040.0107.73
5.0.00.0020.0177.73
4.4.90.0040.0086.99
4.4.80.0030.0096.98
4.4.70.0030.0116.98
4.4.60.0030.0096.98
4.4.50.0020.0146.99
4.4.40.0020.0186.96
4.4.30.0030.0116.98
4.4.20.0020.0117.03
4.4.10.0010.0137.03
4.4.00.0030.0156.98
4.3.110.0040.0096.94
4.3.100.0010.0106.94
4.3.90.0040.0076.92
4.3.80.0010.0166.90
4.3.70.0010.0116.92
4.3.60.0020.0116.92
4.3.50.0030.0106.92
4.3.40.0010.0166.87
4.3.30.0020.0106.25
4.3.20.0020.0116.24
4.3.10.0010.0116.22
4.3.00.0070.00812.04

preferences:
60.38 ms | 401 KiB | 5 Q