3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Caniche { private $nbPattes =2; public function __construct() { $this->nbPattes = 4; } } $froufrou = new Caniche(); echo $froufrou->nbPattes(); //a

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.0100.00716.38
8.3.50.0130.00921.94
8.3.40.0060.01219.09
8.3.30.0070.01118.66
8.3.20.0040.00420.10
8.3.10.0070.00023.59
8.3.00.0000.00819.74
8.2.180.0120.00916.50
8.2.170.0120.00322.96
8.2.160.0110.00420.34
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00821.02
8.2.120.0050.00326.35
8.2.110.0030.00622.13
8.2.100.0070.00417.85
8.2.90.0000.00918.09
8.2.80.0030.00517.97
8.2.70.0030.00617.38
8.2.60.0080.00017.90
8.2.50.0080.00018.07
8.2.40.0040.00422.15
8.2.30.0040.00420.66
8.2.20.0040.00417.55
8.2.10.0040.00417.98
8.2.00.0040.00417.86
8.1.280.0130.01025.92
8.1.270.0040.00420.38
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00422.06
8.1.230.0100.00020.96
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0030.00518.57
8.1.160.0050.00220.76
8.1.150.0000.00718.79
8.1.140.0050.00319.41
8.1.130.0040.00417.56
8.1.120.0000.00817.36
8.1.110.0000.00717.30
8.1.100.0080.00017.30
8.1.90.0040.00417.28
8.1.80.0030.00617.28
8.1.70.0000.00717.30
8.1.60.0060.00317.63
8.1.50.0040.00417.54
8.1.40.0040.00417.54
8.1.30.0000.00817.60
8.1.20.0040.00417.54
8.1.10.0000.00717.52
8.1.00.0040.00417.48
8.0.300.0000.00720.07
8.0.290.0040.00416.63
8.0.280.0000.00718.29
8.0.270.0000.00717.15
8.0.260.0060.00017.23
8.0.250.0030.00316.97
8.0.240.0040.00416.97
8.0.230.0080.00016.86
8.0.220.0050.00316.94
8.0.210.0040.00416.77
8.0.200.0030.00316.91
8.0.190.0000.00716.95
8.0.180.0040.00416.93
8.0.170.0060.00316.89
8.0.160.0030.00316.88
8.0.150.0070.00016.81
8.0.140.0050.00416.71
8.0.130.0000.00513.29
8.0.120.0030.00816.74
8.0.110.0040.00416.89
8.0.100.0000.00816.72
8.0.90.0000.00816.75
8.0.80.0130.00316.87
8.0.70.0040.00416.91
8.0.60.0060.00316.93
8.0.50.0040.00416.95
8.0.30.0100.00916.92
8.0.20.0100.01017.40
8.0.10.0040.00417.02
8.0.00.0090.01216.56
7.4.330.0050.00016.69
7.4.320.0030.00316.43
7.4.300.0040.00416.51
7.4.290.0080.00016.48
7.4.280.0070.00316.51
7.4.270.0040.00316.49
7.4.260.0030.00716.54
7.4.250.0040.00416.48
7.4.240.0040.00416.53
7.4.230.0000.00816.63
7.4.220.0080.01216.47
7.4.210.0100.00316.64
7.4.200.0000.00716.34
7.4.160.0060.00916.27
7.4.150.0140.00417.40
7.4.140.0110.01117.86
7.4.130.0110.01116.60
7.4.120.0080.00916.58
7.4.110.0150.00416.52
7.4.100.0110.00616.54
7.4.90.0150.00416.51
7.4.80.0130.00719.39
7.4.70.0070.01016.41
7.4.60.0070.01016.32
7.4.50.0030.01016.30
7.4.40.0030.01416.26
7.4.30.0120.01116.50
7.4.10.0060.01314.93
7.4.00.0060.00914.88
7.3.330.0030.00313.43
7.3.320.0050.00013.39
7.3.310.0050.00316.22
7.3.300.0030.00316.35
7.3.290.0070.00716.36
7.3.280.0070.01116.38
7.3.270.0100.00517.40
7.3.260.0090.00916.28
7.3.250.0080.01316.45
7.3.240.0130.00416.34
7.3.230.0130.00716.54
7.3.210.0110.01016.34
7.3.200.0070.01016.63
7.3.190.0030.01616.38
7.3.180.0060.01216.43
7.3.170.0160.00316.48
7.3.160.0150.00716.48
7.3.130.0100.00714.77
7.3.120.0060.01114.83
7.3.110.0070.01114.73
7.3.100.0080.00914.63
7.3.90.0070.00414.73
7.3.80.0040.01014.72
7.3.70.0080.00514.57
7.3.60.0050.01014.79
7.3.50.0090.00714.58
7.3.40.0040.00514.69
7.3.30.0050.00914.56
7.3.20.0070.00716.47
7.3.10.0060.00616.63
7.3.00.0060.00816.70
7.2.330.0070.01416.75
7.2.320.0140.00416.63
7.2.310.0100.01316.46
7.2.300.0160.00316.76
7.2.290.0090.01516.66
7.2.260.0100.00715.13
7.2.250.0070.00714.76
7.2.240.0050.01115.07
7.2.230.0060.01114.87
7.2.220.0080.00915.00
7.2.210.0050.00815.03
7.2.200.0080.00715.05
7.2.190.0060.00814.75
7.2.180.0080.00515.03
7.2.170.0060.00814.75
7.2.160.0030.01015.04
7.2.150.0030.01016.80
7.2.140.0070.00716.59
7.2.130.0030.00616.78
7.2.120.0060.01016.70
7.2.110.0030.01616.93
7.2.100.0070.00716.89
7.2.90.0060.00616.54
7.2.80.0070.00716.79
7.2.70.0070.00716.93
7.2.60.0050.00716.83
7.2.50.0030.00616.97
7.2.40.0070.00716.96
7.2.30.0090.00916.84
7.2.20.0040.00716.73
7.2.10.0130.00316.85
7.2.00.0040.00918.06
7.1.330.0090.00615.54
7.1.320.0050.00915.60
7.1.310.0050.00515.70
7.1.300.0080.00515.80
7.1.290.0030.00715.62
7.1.280.0070.00515.65
7.1.270.0070.00815.63
7.1.260.0000.01215.63
7.1.250.0030.00615.62
7.1.240.0060.00615.36
7.1.230.0070.01015.36
7.1.220.0030.01015.45
7.1.210.0030.00715.44
7.1.200.0060.00515.73
7.1.190.0060.00615.54
7.1.180.0030.00915.77
7.1.170.0030.00715.72
7.1.160.0060.01015.77
7.1.150.0060.01215.43
7.1.140.0070.00715.52
7.1.130.0030.00915.79
7.1.120.0030.00915.78
7.1.110.0070.00715.77
7.1.100.0050.00716.97
7.1.90.0080.00415.45
7.1.80.0100.00615.53
7.1.70.0020.00916.29
7.1.60.0070.01217.37
7.1.50.0060.01216.09
7.1.40.0030.01315.80
7.1.30.0080.00815.43
7.1.20.0040.01115.69
7.1.10.0090.00015.67
7.1.00.0070.04019.01
7.0.330.0040.01115.30
7.0.320.0070.00715.13
7.0.310.0120.00315.10
7.0.300.0040.00415.07
7.0.290.0030.00715.43
7.0.280.0040.01115.28
7.0.270.0000.01115.25
7.0.260.0000.01615.36
7.0.250.0000.00815.23
7.0.240.0030.00715.17
7.0.230.0100.00315.39
7.0.220.0070.00715.39
7.0.210.0100.00015.35
7.0.200.0030.00516.13
7.0.190.0000.01515.46
7.0.180.0040.01115.34
7.0.170.0040.01115.50
7.0.160.0030.01015.39
7.0.150.0070.00715.27
7.0.140.0030.01015.41
7.0.130.0040.00415.44
7.0.120.0070.00715.46
7.0.110.0120.00315.40
7.0.100.0050.02917.75
7.0.90.0030.04917.58
7.0.80.0030.02717.65
7.0.70.0100.04417.65
7.0.60.0080.02217.73
7.0.50.0100.03517.72
7.0.40.0020.02216.65
7.0.30.0070.02316.69
7.0.20.0050.02816.78
7.0.10.0100.02316.53
7.0.00.0030.02516.58
5.6.400.0030.01014.45
5.6.390.0000.01314.19
5.6.380.0100.00314.52
5.6.370.0110.00014.43
5.6.360.0070.00714.18
5.6.350.0090.00614.16
5.6.340.0110.00014.16
5.6.330.0000.01014.40
5.6.320.0130.00014.34
5.6.310.0040.00714.61
5.6.300.0040.01414.17
5.6.290.0000.01214.14
5.6.280.0040.01917.46
5.6.270.0000.00914.54
5.6.260.0090.00614.60
5.6.250.0090.02417.47
5.6.240.0060.03517.63
5.6.230.0070.02517.63
5.6.220.0020.03217.33
5.6.210.0070.02617.43
5.6.200.0050.02517.63
5.6.190.0070.02717.67
5.6.180.0020.02717.61
5.6.170.0060.02317.74
5.6.160.0030.04517.75
5.6.150.0020.02717.59
5.6.140.0030.03117.80
5.6.130.0050.02417.76
5.6.120.0030.03717.60
5.6.110.0040.02317.75
5.6.100.0050.02817.65
5.6.90.0070.03217.61
5.6.80.0020.02817.45
5.6.70.0070.02017.26
5.6.60.0070.03217.30
5.6.50.0000.02817.31
5.6.40.0030.02517.37
5.6.30.0020.02817.21
5.6.20.0050.02417.24
5.6.10.0080.02217.33
5.6.00.0040.02317.25
5.5.380.0080.02617.29
5.5.370.0040.02517.30
5.5.360.0130.03717.45
5.5.350.0060.04617.30
5.5.340.0040.02617.51
5.5.330.0070.02117.60
5.5.320.0030.02517.41
5.5.310.0050.03317.49
5.5.300.0050.03817.64
5.5.290.0060.02217.57
5.5.280.0020.02717.52
5.5.270.0050.03217.59
5.5.260.0030.02717.59
5.5.250.0030.02217.31
5.5.240.0030.02917.20
5.5.230.0020.03017.01
5.5.220.0050.03517.23
5.5.210.0030.02517.30
5.5.200.0030.02617.20
5.5.190.0030.03017.30
5.5.180.0050.02217.20
5.5.170.0030.01014.08
5.5.160.0060.04317.10
5.5.150.0050.03117.08
5.5.140.0060.02017.06
5.5.130.0050.02417.07
5.5.120.0030.03217.16
5.5.110.0050.02317.19
5.5.100.0030.03217.22
5.5.90.0060.02316.96
5.5.80.0030.02516.99
5.5.70.0010.02517.20
5.5.60.0040.02917.10
5.5.50.0050.02317.06
5.5.40.0080.03317.11
5.5.30.0030.02117.04
5.5.20.0050.02517.02
5.5.10.0070.03816.97
5.5.00.0080.04117.11

preferences:
48.64 ms | 401 KiB | 5 Q