3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $_foo = 'foo'; public function isMatch() { return $this->_foo == self::_foo; } } class Bar extends Foo { private $_foo = 'bar'; } $a = new Bar(); var_dump($a->isMatch());

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.0120.00318.25
8.3.50.0110.00921.01
8.3.40.0040.01118.71
8.3.30.0070.00718.83
8.3.20.0000.00720.21
8.3.10.0000.00823.54
8.3.00.0050.00322.46
8.2.180.0210.00018.66
8.2.170.0110.00422.96
8.2.160.0100.00720.51
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00417.75
8.2.110.0070.00319.45
8.2.100.0040.00817.63
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0000.00917.80
8.2.50.0000.00818.07
8.2.40.0080.00021.11
8.2.30.0040.00419.90
8.2.20.0030.00517.66
8.2.10.0070.00017.94
8.2.00.0040.00417.97
8.1.280.0040.01125.92
8.1.270.0080.00020.38
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.19
8.1.230.0130.00317.42
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0030.00617.36
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0040.00418.49
8.1.160.0000.00722.03
8.1.150.0000.00718.81
8.1.140.0050.00317.50
8.1.130.0030.00317.71
8.1.120.0000.00717.49
8.1.110.0000.00717.46
8.1.100.0000.00717.46
8.1.90.0040.00417.30
8.1.80.0000.00717.34
8.1.70.0000.00717.41
8.1.60.0040.00417.49
8.1.50.0030.00617.48
8.1.40.0000.00717.45
8.1.30.0050.00317.53
8.1.20.0080.00017.54
8.1.10.0040.00417.58
8.1.00.0080.00017.49
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0000.00818.45
8.0.270.0030.00317.15
8.0.260.0000.00717.38
8.0.250.0000.00717.03
8.0.240.0000.00717.02
8.0.230.0040.00416.91
8.0.220.0040.00416.94
8.0.210.0050.00217.02
8.0.200.0030.00317.06
8.0.190.0050.00316.97
8.0.180.0020.00516.95
8.0.170.0050.00316.94
8.0.160.0040.00416.89
8.0.150.0030.00316.80
8.0.140.0040.00416.82
8.0.130.0000.00713.36
8.0.120.0040.00416.81
8.0.110.0000.00816.93
8.0.100.0000.00716.84
8.0.90.0040.00416.98
8.0.80.0060.00916.94
8.0.70.0000.00717.03
8.0.60.0000.00817.00
8.0.50.0040.00417.02
8.0.30.0140.00717.05
8.0.20.0170.00517.40
8.0.10.0040.00416.95
8.0.00.0070.01416.87
7.4.330.0060.00015.09
7.4.320.0030.00316.46
7.4.300.0030.00316.61
7.4.290.0050.00216.50
7.4.280.0000.00716.52
7.4.270.0030.00316.43
7.4.260.0000.00716.56
7.4.250.0040.00416.33
7.4.240.0030.00416.63
7.4.230.0000.00716.59
7.4.220.0100.00916.53
7.4.210.0030.01216.63
7.4.200.0030.00416.48
7.4.160.0000.01516.51
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0080.01316.59
7.4.120.0080.00916.60
7.4.110.0040.01416.64
7.4.100.0100.01016.63
7.4.90.0100.00716.52
7.4.80.0090.00919.39
7.4.70.0070.01016.49
7.4.60.0090.00616.54
7.4.50.0000.00716.45
7.4.40.0060.01616.47
7.4.30.0090.00916.66
7.4.00.0060.00815.11
7.3.330.0000.00713.32
7.3.320.0070.00013.12
7.3.310.0070.00016.25
7.3.300.0060.00016.21
7.3.290.0100.00816.31
7.3.280.0070.01116.34
7.3.270.0030.01517.40
7.3.260.0090.01016.23
7.3.250.0150.00516.40
7.3.240.0130.00316.43
7.3.230.0060.01216.46
7.3.210.0060.01116.38
7.3.200.0090.01119.39
7.3.190.0120.00916.52
7.3.180.0040.01116.45
7.3.170.0120.00416.34
7.3.160.0070.01216.47
7.2.330.0070.01116.64
7.2.320.0110.00616.55
7.2.310.0130.00316.60
7.2.300.0200.00716.66
7.2.290.0200.00016.51
7.2.80.0080.00016.38
7.2.60.0060.00616.77
7.2.00.0030.01319.65
7.1.200.0080.00615.78
7.1.100.0030.01318.07
7.1.70.0090.00316.99
7.1.60.0070.01420.03
7.1.50.0040.01216.86
7.1.00.0000.08022.48
7.0.200.1080.00416.55
7.0.60.0100.03720.02
7.0.50.0100.07317.87
7.0.40.0030.09320.23
7.0.30.0500.07320.11
7.0.20.0400.06320.09
7.0.10.0300.08020.17
7.0.00.0070.06020.23
5.6.280.0070.07021.14
5.6.210.0070.08320.64
5.6.200.0070.07318.18
5.6.190.0130.06720.60
5.6.180.0300.05020.33
5.6.170.0300.04320.54
5.6.160.0070.05720.44
5.6.150.0030.04718.18
5.6.140.0070.08718.27
5.6.130.0070.08018.26
5.6.120.0170.07721.01
5.6.110.0070.09321.02
5.6.100.0100.08320.98
5.6.90.0070.08021.00
5.6.80.0000.09020.51
5.6.70.0330.07020.39
5.5.350.0030.08320.53
5.5.340.0130.07317.93
5.5.330.0100.08720.44
5.5.320.0270.07720.37
5.5.310.0300.06720.19
5.5.300.0000.04317.98
5.5.290.0030.08317.95
5.5.280.0100.06720.96
5.5.270.0000.09320.79
5.5.260.0070.04720.76
5.5.250.0030.08320.69
5.5.240.0100.07720.18
5.4.450.0870.05319.61
5.4.440.0830.05319.59
5.4.430.1100.04719.41
5.4.420.0730.05719.36
5.4.410.0970.05019.02
5.4.400.0770.06019.29
5.4.390.0830.05319.31
5.4.380.0600.05319.32
5.4.370.0670.05019.28
5.4.360.0070.05719.28
5.4.350.0270.06019.14
5.4.340.0700.06319.05
5.4.320.0770.05319.02
5.4.310.0730.05318.98
5.4.300.0700.05019.28
5.4.290.0700.04718.87
5.4.280.0600.06019.22
5.4.270.0400.05019.30
5.4.260.0100.05318.86
5.4.250.0870.06019.27
5.4.240.0700.05719.28
5.4.230.0400.05319.27
5.4.220.0070.06018.86
5.4.210.0430.06019.00
5.4.200.0700.05316.87
5.4.190.0470.05018.96
5.4.180.0370.05019.14
5.4.170.0630.05718.87
5.4.160.0730.05319.31
5.4.150.0630.06018.99
5.4.140.0500.05316.49
5.4.130.0770.04316.54
5.4.120.0670.05716.35
5.4.110.0700.05716.47
5.4.100.0800.05016.37
5.4.90.0700.05716.38
5.4.80.0830.04016.52
5.4.70.0700.05016.41
5.4.60.0000.03716.34
5.4.50.0070.06716.23
5.4.40.0070.04016.48
5.4.30.0170.03716.38
5.4.20.0230.07716.34

preferences:
48.87 ms | 401 KiB | 5 Q