3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ var $publicval; var $privateval; function __construct() { $this->publicval = 'Public'; $this->privateval = 'Private'; } function getPrivate() { return $this->privateval; } } $test = new Test(); echo($test->publicval); echo($test->getPrivate());

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.40.0070.00718.80
8.3.30.0070.00719.17
8.3.20.0040.00420.34
8.3.10.0050.00221.75
8.3.00.0050.00319.67
8.2.170.0060.01018.71
8.2.160.0100.00322.96
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00422.00
8.2.110.0130.00320.51
8.2.100.0090.00317.91
8.2.90.0030.00619.20
8.2.80.0030.00517.97
8.2.70.0040.00417.46
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0030.00621.01
8.2.30.0000.00718.13
8.2.20.0030.00517.56
8.2.10.0040.00417.91
8.2.00.0050.00318.02
8.1.270.0120.00620.29
8.1.260.0050.00226.35
8.1.250.0070.00328.09
8.1.240.0060.00324.02
8.1.230.0070.00417.42
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0060.00318.71
8.1.160.0040.00421.95
8.1.150.0050.00218.50
8.1.140.0070.00017.30
8.1.130.0000.00817.93
8.1.120.0040.00317.33
8.1.110.0070.00017.37
8.1.100.0030.00517.41
8.1.90.0040.00417.46
8.1.80.0040.00417.36
8.1.70.0000.00717.40
8.1.60.0030.00517.59
8.1.50.0050.00317.54
8.1.40.0070.00017.56
8.1.30.0060.00317.70
8.1.20.0000.00817.53
8.1.10.0040.00417.42
8.1.00.0020.00517.43
8.0.300.0000.00718.77
8.0.290.0080.00016.88
8.0.280.0030.00318.46
8.0.270.0070.00017.22
8.0.260.0060.00017.26
8.0.250.0030.00316.97
8.0.240.0070.00017.00
8.0.230.0040.00416.91
8.0.220.0000.00716.82
8.0.210.0070.00016.71
8.0.200.0000.00616.86
8.0.190.0030.00316.86
8.0.180.0040.00416.78
8.0.170.0000.00716.75
8.0.160.0040.00416.79
8.0.150.0080.00016.84
8.0.140.0000.00816.75
8.0.130.0070.00013.34
8.0.120.0000.00716.82
8.0.110.0040.00416.81
8.0.100.0050.00216.89
8.0.90.0030.00716.71
8.0.80.0060.01016.74
8.0.70.0040.00416.82
8.0.60.0040.00416.89
8.0.50.0050.00216.94
8.0.30.0100.00716.96
8.0.20.0110.00817.40
8.0.10.0040.00316.87
8.0.00.0110.00717.00
7.4.330.0050.00015.03
7.4.320.0060.00016.44
7.4.300.0000.00616.61
7.4.290.0000.00916.52
7.4.280.0000.00716.64
7.4.270.0000.00716.65
7.4.260.0030.00616.48
7.4.250.0000.00716.54
7.4.240.0050.00216.48
7.4.230.0030.00316.47
7.4.220.0100.01016.49
7.4.210.0090.01016.71
7.4.200.0000.00716.71
7.4.160.0080.00816.29
7.4.150.0110.00717.40
7.4.140.0180.00517.86
7.4.130.0150.00516.58
7.4.120.0100.01016.40
7.4.110.0040.01416.41
7.4.100.0120.01216.53
7.4.90.0100.00716.45
7.4.80.0070.01419.39
7.4.70.0090.00916.42
7.4.60.0040.01316.53
7.4.50.0060.00316.41
7.4.40.0200.00016.46
7.4.30.0060.00916.50
7.4.00.0060.00915.02
7.3.330.0060.00013.29
7.3.320.0050.00013.13
7.3.310.0050.00216.29
7.3.300.0030.00316.29
7.3.290.0060.00916.26
7.3.280.0120.00816.29
7.3.270.0170.00317.40
7.3.260.0040.01416.65
7.3.250.0100.00916.36
7.3.240.0130.00316.36
7.3.230.0060.01016.39
7.3.210.0030.01316.36
7.3.200.0150.02919.39
7.3.190.0110.00416.32
7.3.180.0100.00716.32
7.3.170.0100.00616.35
7.3.160.0050.01116.13
7.2.330.0160.00316.81
7.2.320.0100.00716.68
7.2.310.0070.01016.37
7.2.300.0000.01816.73
7.2.290.0120.00916.75
7.2.60.0000.01517.03
7.2.00.0000.01319.56
7.1.200.0000.01015.43
7.1.100.0040.00717.94
7.1.70.0000.00816.87
7.1.60.0100.01319.86
7.1.50.0030.01016.82
7.1.00.0000.08022.37
7.0.200.0300.00314.85
7.0.60.0100.08020.01
7.0.50.0100.03317.95
7.0.40.0070.04320.09
7.0.30.0170.05020.21
7.0.20.0170.08320.23
7.0.10.0070.06320.15
7.0.00.0130.08320.07
5.6.280.0100.06720.82
5.6.210.0130.05320.51
5.6.200.0030.05718.16
5.6.190.0070.08720.68
5.6.180.0370.03720.67
5.6.170.0430.07020.46
5.6.160.0130.03320.54
5.6.150.0070.04718.23
5.6.140.0070.04018.12
5.6.130.0030.04018.20
5.6.120.0030.05021.01
5.6.110.0070.08021.02
5.6.100.0200.07321.04
5.6.90.0100.06320.98
5.6.80.0130.07020.49
5.5.350.0300.07020.45
5.5.340.0070.03317.93
5.5.330.0030.07320.41
5.5.320.0300.04320.52
5.5.310.0200.04320.34
5.5.300.0030.04717.99
5.5.290.0100.04718.07
5.5.280.0100.08320.78
5.5.270.0130.07720.67
5.5.260.0070.08020.65
5.5.250.0070.06320.71
5.5.240.0100.06320.04
5.4.450.0200.04719.61
5.4.440.0900.05719.33
5.4.430.0000.06319.22
5.4.420.0130.05319.45
5.4.410.0130.05019.58
5.4.400.0170.04719.05
5.4.390.0100.05719.01
5.4.380.0070.05719.02
5.4.370.0130.04719.03
5.4.360.0100.05018.97
5.4.350.0070.05719.16
5.4.340.0100.05019.11
5.4.320.0100.08319.12
5.4.310.0100.05019.07
5.4.300.0100.05019.05
5.4.290.0100.05019.07
5.4.280.0000.06019.03
5.4.270.0200.05019.16
5.4.260.0100.06019.05
5.4.250.0070.05719.19
5.4.240.0100.05319.23
5.4.230.0100.04719.09
5.4.220.0100.05019.21
5.4.210.0070.06019.09
5.4.200.0070.06316.93
5.4.190.0100.04719.11
5.4.180.0170.04719.09
5.4.170.0030.06019.02
5.4.160.0070.05319.23
5.4.150.0030.05719.17
5.4.140.0070.05316.37
5.4.130.0070.05016.63
5.4.120.0000.05716.33
5.4.110.0170.04016.47
5.4.100.0070.05316.58
5.4.90.0070.05316.47
5.4.80.0030.05316.48
5.4.70.0100.05016.64
5.4.60.0100.04716.44
5.4.50.0100.04316.21
5.4.40.0200.03716.24
5.4.30.0130.04316.59
5.4.20.0070.05316.19
5.4.10.0070.05016.21
5.4.00.0070.05015.63
5.3.290.0100.05714.67
5.3.280.0070.05314.54
5.3.270.0100.05014.50
5.3.260.0030.06014.55
5.3.250.0070.05714.66
5.3.240.0100.05014.51
5.3.230.0100.05014.45
5.3.220.0170.04314.72
5.3.210.0030.06014.47
5.3.200.0100.04714.46
5.3.190.0070.05314.71
5.3.180.0100.05014.54
5.3.170.0130.04714.56
5.3.160.0070.05314.48
5.3.150.0130.04314.46
5.3.140.0070.05014.56
5.3.130.0070.05314.48
5.3.120.0030.05714.48
5.3.110.0000.06314.51
5.3.100.0100.04714.07
5.3.90.0170.04014.16
5.3.80.0130.04714.16
5.3.70.0070.05314.13
5.3.60.0030.05313.86
5.3.50.0100.06313.92
5.3.40.0030.05713.86
5.3.30.0070.05013.97
5.3.20.0030.05013.61
5.3.10.0070.04713.56
5.3.00.0130.06013.80
5.2.170.0130.03711.32
5.2.160.0070.05311.21
5.2.150.0130.03711.31
5.2.140.0100.03711.21
5.2.130.0100.04011.03
5.2.120.0100.03711.01
5.2.110.0100.03711.21
5.2.100.0070.04311.00
5.2.90.0100.04011.16
5.2.80.0100.04011.00
5.2.70.0100.04311.25
5.2.60.0100.05311.01
5.2.50.0070.04011.13
5.2.40.0030.05710.96
5.2.30.0070.04011.08
5.2.20.0070.04010.94
5.2.10.0170.03710.84
5.2.00.0170.04710.62
5.1.60.0030.0439.89
5.1.50.0200.02710.15
5.1.40.0000.04310.03
5.1.30.0000.05010.27
5.1.20.0070.03710.34
5.1.10.0030.03710.21
5.1.00.0070.03310.05
5.0.50.0070.0278.70
5.0.40.0070.0278.40
5.0.30.0070.0438.23
5.0.20.0030.0278.20
5.0.10.0030.0278.34
5.0.00.0070.0438.05
4.4.90.0000.0275.89
4.4.80.0070.0205.83
4.4.70.0030.0235.72
4.4.60.0000.0235.83
4.4.50.0030.0275.84
4.4.40.0100.0275.75
4.4.30.0070.0175.75
4.4.20.0000.0235.91
4.4.10.0000.0236.00
4.4.00.0030.0435.76
4.3.110.0000.0235.68
4.3.100.0030.0235.81
4.3.90.0100.0175.70
4.3.80.0000.0375.66
4.3.70.0000.0235.76
4.3.60.0030.0205.76
4.3.50.0030.0205.67
4.3.40.0030.0375.75
4.3.30.0030.0204.52
4.3.20.0000.0274.43
4.3.10.0070.0234.46
4.3.00.0000.0236.97

preferences:
57.02 ms | 400 KiB | 5 Q