3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Products{ // Properties public $category1 = "Horloges"; private $_category2 = "Media"; // Methods public function display(){ echo $this->_category2; } } $categories = new Products(); $categories->display(); // displays "Media"

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.00718.18
8.3.50.0160.00316.50
8.3.40.0100.00718.70
8.3.30.0040.01118.77
8.3.20.0040.00418.83
8.3.10.0160.00020.44
8.3.00.0050.00317.50
8.2.180.0110.00716.63
8.2.170.0100.00322.96
8.2.160.0160.00322.03
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00019.77
8.2.110.0050.00522.08
8.2.100.0080.00417.72
8.2.90.0050.00319.23
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0040.00817.68
8.2.50.0040.00418.07
8.2.40.0000.00918.15
8.2.30.0000.00718.13
8.2.20.0070.00017.56
8.2.10.0040.00417.62
8.2.00.0000.00817.66
8.1.280.0160.00325.92
8.1.270.0030.00523.99
8.1.260.0070.00726.35
8.1.250.0070.00028.09
8.1.240.0050.00323.97
8.1.230.0110.00017.51
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0070.00017.41
8.1.180.0040.00418.10
8.1.170.0030.00618.84
8.1.160.0040.00418.76
8.1.150.0000.00718.44
8.1.140.0040.00417.26
8.1.130.0030.00317.83
8.1.120.0000.00717.42
8.1.110.0040.00417.31
8.1.100.0000.00817.26
8.1.90.0000.00717.38
8.1.80.0040.00417.43
8.1.70.0040.00417.38
8.1.60.0050.00217.60
8.1.50.0080.00017.54
8.1.40.0040.00417.39
8.1.30.0060.00317.47
8.1.20.0050.00317.64
8.1.10.0000.00717.48
8.1.00.0080.00017.48
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.50
8.0.270.0050.00317.25
8.0.260.0000.00718.66
8.0.250.0040.00416.95
8.0.240.0080.00416.92
8.0.230.0000.00716.89
8.0.220.0030.00516.73
8.0.210.0030.00316.85
8.0.200.0000.00716.95
8.0.190.0030.00316.84
8.0.180.0000.00716.87
8.0.170.0000.00916.80
8.0.160.0070.00016.67
8.0.150.0000.00816.70
8.0.140.0000.01016.82
8.0.130.0000.00813.26
8.0.120.0080.00016.81
8.0.110.0040.00416.71
8.0.100.0000.00716.64
8.0.90.0020.00516.83
8.0.80.0040.01116.82
8.0.70.0080.00016.70
8.0.60.0040.00416.80
8.0.50.0000.00816.78
8.0.30.0100.00816.88
8.0.20.0110.00717.18
8.0.10.0030.00616.77
8.0.00.0040.01816.68
7.4.330.0050.00014.65
7.4.320.0000.00616.58
7.4.300.0030.00316.54
7.4.290.0030.00316.63
7.4.280.0030.00616.50
7.4.270.0040.00416.61
7.4.260.0000.00513.27
7.4.250.0000.00816.47
7.4.240.0070.00016.56
7.4.230.0070.00016.31
7.4.220.0090.00816.61
7.4.210.0080.00816.54
7.4.200.0030.00316.63
7.4.190.0050.00216.65
7.4.160.0080.00816.47
7.4.150.0130.00717.07
7.4.140.0060.01717.09
7.4.130.0040.01516.50
7.4.120.0100.00716.43
7.4.110.0150.00616.33
7.4.100.0200.00316.65
7.4.90.0100.00716.62
7.4.80.0070.01018.80
7.4.70.0070.01516.40
7.4.60.0110.01116.61
7.4.50.0000.00816.20
7.4.40.0100.00622.27
7.4.30.0120.00616.64
7.4.00.0110.00714.97
7.3.330.0070.00013.22
7.3.320.0000.00513.13
7.3.310.0000.00716.26
7.3.300.0070.00016.18
7.3.290.0090.00616.30
7.3.280.0080.01216.20
7.3.270.0060.01117.18
7.3.260.0110.00818.24
7.3.250.0060.01716.24
7.3.240.0120.00616.13
7.3.230.0070.01016.39
7.3.210.0070.01016.31
7.3.200.0150.00319.39
7.3.190.0080.00816.20
7.3.180.0150.00616.17
7.3.170.0150.00316.44
7.3.160.0040.01416.48
7.3.120.0070.01014.89
7.3.10.0090.00616.43
7.3.00.0000.01116.58
7.2.330.0030.01816.43
7.2.320.0030.01816.54
7.2.310.0000.02116.36
7.2.300.0060.01116.86
7.2.290.0100.00616.79
7.2.130.0000.01116.93
7.2.120.0030.01017.00
7.2.110.0030.00916.77
7.2.100.0060.00616.74
7.2.90.0000.01116.89
7.2.80.0070.00316.73
7.2.70.0030.01016.84
7.2.60.0000.01416.92
7.2.50.0000.01016.81
7.2.40.0000.01516.58
7.2.30.0000.00917.16
7.2.20.0040.00717.04
7.2.10.0030.01416.86
7.2.00.0030.00818.24
7.1.250.0030.00915.55
7.1.200.0070.00715.60
7.1.100.0040.00718.14
7.1.70.0060.00316.96
7.1.60.0070.01819.40
7.1.50.0040.00716.88
7.1.00.0000.07722.45
7.0.200.0100.00016.74
7.0.140.0070.07021.98
7.0.60.0130.06719.96
7.0.50.0100.04017.86
7.0.40.0030.09320.04
7.0.30.0170.04320.19
7.0.20.0330.07320.11
7.0.10.0030.07020.07
7.0.00.0130.03020.22
5.6.280.0030.07320.86
5.6.210.0100.04720.47
5.6.200.0030.06018.17
5.6.190.0030.05720.68
5.6.180.0300.05020.48
5.6.170.0170.04020.44
5.6.160.0070.08720.54
5.6.150.0030.07318.15
5.6.140.0100.08018.24
5.6.130.0030.05018.28
5.6.120.0070.05020.99
5.6.110.0130.08320.98
5.6.100.0070.04020.99
5.6.90.0130.08020.99
5.6.80.0030.04720.37
5.5.350.4330.04320.46
5.5.340.0100.05718.05
5.5.330.0070.04320.35
5.5.320.0630.06320.29
5.5.310.0270.06320.34
5.5.300.0030.08718.02
5.5.290.0070.07018.07
5.5.280.0030.04320.77
5.5.270.0130.07320.88
5.5.260.0100.06020.79
5.5.250.0070.05320.78
5.5.240.0000.08020.36
5.4.450.0330.06019.31
5.4.440.0400.05719.30
5.4.430.0230.06319.20
5.4.420.0300.07719.30
5.4.410.0270.03719.32
5.4.400.0330.06319.00
5.4.390.0300.04719.21
5.4.380.0430.06019.00
5.4.370.0270.06019.00
5.4.360.0230.07019.16
5.4.350.0430.06718.95
5.4.340.0270.03319.14
5.4.320.0270.03319.23
5.4.310.0270.03319.14
5.4.300.0300.04318.98
5.4.290.0300.05718.95
5.4.280.0200.04018.95
5.4.270.0270.07719.05
5.4.260.0370.05719.24
5.4.250.0200.05019.08
5.4.240.0370.06318.83
5.4.230.0200.04018.98
5.4.220.0230.03718.86
5.4.210.0330.06018.86
5.4.200.0270.05719.22
5.4.190.0300.07018.98
5.4.180.0400.06019.15
5.4.170.0330.06719.20
5.4.160.0230.04718.84
5.4.150.0230.04018.93
5.4.140.0330.06316.35
5.4.130.0270.06716.39
5.4.120.0200.04316.38
5.4.110.0200.04316.37
5.4.100.0300.03316.46
5.4.90.0400.05716.28
5.4.80.0370.03716.40
5.4.70.0270.04716.39
5.4.60.0300.06316.33
5.4.50.0330.06316.34
5.4.40.0270.07016.28
5.4.30.0230.04016.46
5.4.20.0300.05316.38
5.4.10.0270.04716.53
5.4.00.0270.05316.28
5.3.290.0200.04316.28
5.3.280.0300.04016.28
5.3.270.0230.03716.28
5.3.260.0300.03016.28
5.3.250.0370.06016.28
5.3.240.0230.04716.28
5.3.230.0270.07316.28
5.3.220.0330.04716.28
5.3.210.0300.05716.28
5.3.200.0270.05716.28
5.3.190.0270.07316.28
5.3.180.0270.07016.28
5.3.170.0270.05716.28
5.3.160.0170.04316.28
5.3.150.0330.06716.28
5.3.140.0300.05716.28
5.3.130.0270.05016.28
5.3.120.0300.07016.28
5.3.110.0270.06316.28
5.3.100.0200.04316.28
5.3.90.0330.06716.28
5.3.80.0230.04716.28
5.3.70.0230.03716.28
5.3.60.0230.03316.28
5.3.50.0230.03316.28
5.3.40.0200.03716.28
5.3.30.0230.03016.28
5.3.20.0230.03016.28
5.3.10.0300.03016.28
5.3.00.0230.03316.28
5.2.170.0100.03716.28
5.2.160.0130.03016.28
5.2.150.0230.03016.28
5.2.140.0170.02716.28
5.2.130.0170.02716.28
5.2.120.0130.03016.28
5.2.110.0200.02316.28
5.2.100.0200.02716.28
5.2.90.0200.02316.28
5.2.80.0230.03316.28
5.2.70.0170.03016.28
5.2.60.0200.02716.28
5.2.50.0200.02316.28
5.2.40.0270.02316.28
5.2.30.0130.03716.28
5.2.20.0100.03016.28
5.2.10.0170.02316.28
5.2.00.0170.02316.28
5.1.60.0100.02716.28
5.1.50.0100.02716.28
5.1.40.0170.02016.28
5.1.30.0100.02716.28
5.1.20.0130.03316.28
5.1.10.0170.02316.28
5.1.00.0130.05316.28
5.0.50.0030.02316.28
5.0.40.0030.02016.28
5.0.30.0070.03016.28
5.0.20.0070.02016.28
5.0.10.0070.02016.28
5.0.00.0070.03016.28
4.4.90.0070.01316.28
4.4.80.0030.02016.28
4.4.70.0030.01716.28
4.4.60.0070.01316.28
4.4.50.0000.02016.28
4.4.40.0100.02716.28
4.4.30.0070.02016.28
4.4.20.0030.01716.28
4.4.10.0070.01316.28
4.4.00.0070.02316.28
4.3.110.0100.01316.28
4.3.100.0070.01316.28
4.3.90.0070.01316.28
4.3.80.0030.02716.28
4.3.70.0070.01316.28
4.3.60.0070.01316.28
4.3.50.0100.01016.28
4.3.40.0070.02316.28
4.3.30.0030.01716.28
4.3.20.0030.01316.28
4.3.10.0030.01316.28
4.3.00.0000.01716.28

preferences:
67.81 ms | 401 KiB | 5 Q