3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $kaas; public function __construct() { $this->kaas = 'A'; } public function getKaas() { return $this->kaas; } } $b = new A(); $c = $b->getKaas(); echo "{$c}";

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.0040.01118.43
8.3.50.0140.00721.15
8.3.40.0060.00918.67
8.3.30.0110.00418.48
8.3.20.0060.00320.32
8.3.10.0000.00821.77
8.3.00.0080.00019.66
8.2.180.0150.00016.63
8.2.170.0100.01022.96
8.2.160.0030.01020.43
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0060.00319.32
8.2.100.0040.00817.50
8.2.90.0040.00419.10
8.2.80.0090.00017.97
8.2.70.0040.00417.63
8.2.60.0030.00617.91
8.2.50.0130.00018.07
8.2.40.0030.00621.25
8.2.30.0000.00817.94
8.2.20.0050.00317.79
8.2.10.0030.00518.05
8.2.00.0070.00018.03
8.1.280.0100.00325.92
8.1.270.0030.00620.34
8.1.260.0000.00826.35
8.1.250.0090.00028.09
8.1.240.0040.00424.01
8.1.230.0070.00417.42
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0000.01017.35
8.1.190.0000.00817.25
8.1.180.0050.00318.10
8.1.170.0080.00018.50
8.1.160.0040.00422.13
8.1.150.0050.00318.90
8.1.140.0040.00417.40
8.1.130.0000.00717.65
8.1.120.0000.00717.43
8.1.110.0050.00217.30
8.1.100.0040.00417.38
8.1.90.0040.00417.46
8.1.80.0050.00317.29
8.1.70.0070.00017.47
8.1.60.0000.00817.52
8.1.50.0000.00817.40
8.1.40.0080.00017.40
8.1.30.0090.00017.60
8.1.20.0060.00317.67
8.1.10.0040.00417.50
8.1.00.0060.00317.55
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0000.00718.41
8.0.270.0040.00417.19
8.0.260.0030.00317.25
8.0.250.0030.00516.97
8.0.240.0030.00316.85
8.0.230.0030.00316.86
8.0.220.0050.00216.85
8.0.210.0030.00316.85
8.0.200.0030.00316.95
8.0.190.0000.00816.86
8.0.180.0050.00316.86
8.0.170.0060.00316.70
8.0.160.0000.00716.78
8.0.150.0040.00416.77
8.0.140.0070.00016.80
8.0.130.0000.00613.22
8.0.120.0000.00816.79
8.0.110.0070.00016.86
8.0.100.0000.00716.84
8.0.90.0000.00716.79
8.0.80.0080.01216.79
8.0.70.0030.00616.67
8.0.60.0030.00316.78
8.0.50.0000.00716.80
8.0.30.0080.01317.04
8.0.20.0070.01217.40
8.0.10.0000.00716.87
8.0.00.0120.00516.79
7.4.330.0020.00215.08
7.4.320.0030.00616.41
7.4.300.0030.00316.36
7.4.290.0030.00316.58
7.4.280.0070.00316.64
7.4.270.0030.00316.51
7.4.260.0000.00716.45
7.4.250.0080.00016.45
7.4.240.0030.00516.60
7.4.230.0070.00016.26
7.4.220.0090.01616.61
7.4.210.0110.00316.54
7.4.200.0040.00416.25
7.4.160.0040.01216.57
7.4.150.0070.01117.40
7.4.140.0100.01017.86
7.4.130.0110.00716.47
7.4.120.0100.00616.52
7.4.110.0160.00616.59
7.4.100.0070.01716.60
7.4.90.0090.00816.50
7.4.80.0080.00819.39
7.4.70.0130.01016.57
7.4.60.0120.00816.49
7.4.50.0080.00016.35
7.4.40.0060.01116.34
7.4.30.0030.01616.73
7.4.00.0000.01114.91
7.3.330.0000.00513.25
7.3.320.0000.00513.31
7.3.310.0000.00716.15
7.3.300.0030.00316.35
7.3.290.0060.01016.30
7.3.280.0080.01116.28
7.3.270.0100.00717.40
7.3.260.0120.00616.51
7.3.250.0100.01016.48
7.3.240.0120.00416.36
7.3.230.0130.00616.40
7.3.210.0080.01116.22
7.3.200.0120.00619.39
7.3.190.0090.01016.42
7.3.180.0080.01416.48
7.3.170.0110.00816.45
7.3.160.0100.01016.41
7.2.330.0090.01216.53
7.2.320.0130.00316.54
7.2.310.0100.00716.45
7.2.300.0100.04016.52
7.2.290.0130.01016.50
7.2.00.0110.00719.44
7.1.100.0000.00817.91
7.1.70.0040.00417.14
7.1.60.0070.01420.03
7.1.50.0060.01516.84
7.1.00.0030.07722.43
7.0.200.0000.00716.49
7.0.60.0100.07021.75
7.0.50.0170.05317.73
7.0.40.0000.09320.27
7.0.30.0270.04020.34
7.0.20.0370.06320.20
7.0.10.0070.04720.15
7.0.00.0030.06320.23
5.6.280.0000.04721.03
5.6.210.0130.07320.55
5.6.200.0070.04318.18
5.6.190.0130.07020.55
5.6.180.0430.04320.66
5.6.170.0230.03320.45
5.6.160.0070.07020.34
5.6.150.0200.07018.27
5.6.140.0000.04318.16
5.6.130.0070.06318.24
5.6.120.0030.04321.12
5.6.110.0170.07321.10
5.6.100.0100.06320.98
5.6.90.0230.07320.88
5.6.80.0030.04320.50
5.5.350.0270.06720.33
5.5.340.0130.07318.07
5.5.330.0130.04020.43
5.5.320.0400.07020.51
5.5.310.0230.03320.35
5.5.300.0070.08017.98
5.5.290.0130.07018.07
5.5.280.0030.08720.88
5.5.270.0000.04320.85
5.5.260.0070.08020.73
5.5.250.0130.07020.67
5.5.240.0000.08720.20
5.4.450.0870.06019.47
5.4.440.0730.06719.61
5.4.430.0900.06019.32
5.4.420.1130.06319.68
5.4.410.1200.07319.34
5.4.400.0700.05319.31
5.4.390.0800.06019.26
5.4.380.0730.05318.83
5.4.370.0570.05319.16
5.4.360.0800.05018.86
5.4.350.0670.06319.13
5.4.340.0630.05719.24
5.4.320.0700.06019.26
5.4.310.0670.05719.01
5.4.300.0700.05318.80
5.4.290.0970.05319.11
5.4.280.0700.06719.27
5.4.270.1070.06719.15
5.4.260.0970.05319.21
5.4.250.0900.04719.11
5.4.240.0700.06019.11
5.4.230.0970.05319.25
5.4.220.0830.05318.86
5.4.210.0800.07019.01
5.4.200.1000.04716.70
5.4.190.1000.04319.14
5.4.180.1030.04718.86
5.4.170.1000.06319.18
5.4.160.1100.03319.26
5.4.150.1000.07019.01
5.4.140.1070.05316.43
5.4.130.0900.05316.72
5.4.120.0730.06016.41
5.4.110.0930.04016.55
5.4.100.0930.05716.45
5.4.90.0630.05316.32
5.4.80.1030.05316.34
5.4.70.1030.07016.53
5.4.60.0830.06316.29
5.4.50.0870.05016.47
5.4.40.0930.04316.36
5.4.30.0870.04716.31
5.4.20.0870.04716.52
5.4.10.0900.05016.52
5.4.00.0900.04716.16

preferences:
49.63 ms | 401 KiB | 5 Q