3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * This is fucking stupid */ abstract class ConfusingClass{ /** * Private property */ private $property = 'fucking stupid'; /** * Why does this keep happening? * * @bullshit true */ private function bullshit() { return false; } public function derp() { echo "test: ", $this->bullshit(), "\n"; } } class ConfusedBullshit extends ConfusingClass { private function bullshit() { return $this->property; } public function derp() { echo "test: ", $this->bullshit(), "\n"; } } $f = new ConfusedBullshit; $f->derp(); $d = new ReflectionClass('ConfusedBullshit'); var_dump($d); var_dump($d->getProperties());

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.0080.00816.50
8.3.50.0100.01221.99
8.3.40.0070.00718.97
8.3.30.0040.01119.13
8.3.20.0030.00620.30
8.3.10.0080.00023.61
8.3.00.0060.00318.98
8.2.180.0000.01516.63
8.2.170.0160.00022.96
8.2.160.0100.00320.38
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00320.82
8.2.110.0070.01022.18
8.2.100.0060.00619.70
8.2.90.0000.00719.23
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0060.00317.93
8.2.50.0080.00018.07
8.2.40.0090.00021.00
8.2.30.0070.00018.24
8.2.20.0000.00717.61
8.2.10.0040.00418.06
8.2.00.0000.00817.63
8.1.280.0090.00625.92
8.1.270.0080.00023.92
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00321.98
8.1.230.0050.00518.93
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00317.35
8.1.190.0030.00617.13
8.1.180.0050.00318.10
8.1.170.0080.00018.46
8.1.160.0040.00421.96
8.1.150.0000.00818.60
8.1.140.0000.00917.36
8.1.130.0000.00717.85
8.1.120.0030.00517.40
8.1.110.0000.00717.30
8.1.100.0000.00717.29
8.1.90.0070.00017.30
8.1.80.0000.00817.29
8.1.70.0030.00617.38
8.1.60.0060.00317.48
8.1.50.0040.00417.43
8.1.40.0000.00817.53
8.1.30.0040.00417.60
8.1.20.0060.00317.67
8.1.10.0040.00417.62
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0050.00317.28
8.0.280.0050.00318.34
8.0.270.0030.00317.27
8.0.260.0030.00318.51
8.0.250.0030.00317.03
8.0.240.0000.00716.96
8.0.230.0040.00416.93
8.0.220.0030.00316.93
8.0.210.0000.00716.92
8.0.200.0040.00416.97
8.0.190.0080.00017.04
8.0.180.0000.00716.83
8.0.170.0030.00516.96
8.0.160.0080.00016.91
8.0.150.0040.00416.76
8.0.140.0000.00716.92
8.0.130.0000.00513.29
8.0.120.0050.00316.88
8.0.110.0040.00416.73
8.0.100.0000.00716.80
8.0.90.0000.00716.80
8.0.80.0030.01816.97
8.0.70.0040.00416.89
8.0.60.0000.00716.76
8.0.50.0030.00616.73
8.0.30.0100.00817.11
8.0.20.0130.00917.40
8.0.10.0040.00416.89
8.0.00.0140.00416.81
7.4.330.0040.00415.00
7.4.320.0060.00316.44
7.4.300.0030.00316.55
7.4.290.0000.00716.58
7.4.280.0000.00716.59
7.4.270.0040.00416.57
7.4.260.0040.00416.52
7.4.250.0050.00316.41
7.4.240.0050.00316.60
7.4.230.0050.00316.57
7.4.220.0120.01216.68
7.4.210.0080.01016.57
7.4.200.0030.00316.50
7.4.190.0000.00716.63
7.4.160.0030.01516.52
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0140.00616.67
7.4.120.0050.01216.49
7.4.110.0170.00616.39
7.4.100.0170.00316.44
7.4.90.0050.01216.54
7.4.80.0030.01919.39
7.4.70.0100.01016.66
7.4.60.0100.00716.62
7.4.50.0000.00416.65
7.4.40.0080.01516.60
7.4.30.0170.00016.58
7.4.00.0080.00815.10
7.3.330.0030.00313.27
7.3.320.0050.00013.13
7.3.310.0000.00716.34
7.3.300.0000.00716.31
7.3.290.0070.00716.30
7.3.280.0090.01016.31
7.3.270.0090.00917.40
7.3.260.0080.00816.38
7.3.250.0080.00916.39
7.3.240.0090.00916.27
7.3.230.0130.00316.39
7.3.210.0120.00616.47
7.3.200.0180.00919.39
7.3.190.0070.01416.37
7.3.180.0030.01316.47
7.3.170.0080.00816.60
7.3.160.0030.01316.45
7.3.120.0070.01114.77
7.2.330.0120.00616.72
7.2.320.0090.00916.36
7.2.310.0050.01116.81
7.2.300.0060.01016.79
7.2.290.0130.01016.66
7.2.00.0040.01718.88
7.1.100.0000.01217.86
7.1.70.0060.00316.82
7.1.60.0040.02219.46
7.1.50.0150.00617.08
7.1.00.0100.07022.25
7.0.200.0030.00716.50
7.0.140.0000.07322.04
7.0.60.0130.08019.92
7.0.50.0130.07317.90
7.0.40.0100.08020.23
7.0.30.0330.07320.26
7.0.20.0230.04720.33
7.0.10.0100.05320.31
7.0.00.0070.07320.22
5.6.280.0000.07721.03
5.6.210.0200.06720.66
5.6.200.0100.05318.21
5.6.190.0070.07020.61
5.6.180.0330.08320.48
5.6.170.0200.05020.54
5.6.160.0070.08720.47
5.6.150.0130.07318.21
5.6.140.0200.06318.29
5.6.130.0070.08718.14
5.6.120.0000.06020.99
5.6.110.0070.04021.10
5.6.100.0070.04321.13
5.6.90.0100.06321.14
5.6.80.0070.06720.43
5.5.350.4230.03720.36
5.5.340.0070.08717.97
5.5.330.0100.07720.57
5.5.320.0200.04020.35
5.5.310.0170.04720.30
5.5.300.0070.04017.98
5.5.290.0030.04017.98
5.5.280.0100.08320.98
5.5.270.0000.09720.88
5.5.260.0070.05320.77
5.5.250.0070.06320.59
5.5.240.0030.04320.20
5.4.450.3930.04319.54
5.4.440.0030.04019.53
5.4.430.1800.05719.45
5.4.420.2600.03719.44
5.4.410.2830.04019.25
5.4.400.0070.07719.07
5.4.390.3600.03019.21
5.4.380.3630.04318.98
5.4.370.3130.03318.93
5.4.360.2930.03019.20
5.4.350.2770.03719.12
5.4.340.3430.03719.12
5.4.320.0130.07318.93
5.4.310.0070.03318.93
5.4.300.3000.03718.95
5.4.290.3230.03719.12
5.4.280.3130.03718.93
5.4.270.3570.04019.17
5.4.260.3170.03718.97
5.4.250.3970.04018.93
5.4.240.3800.03719.03
5.4.230.3000.03019.21
5.4.220.2600.03319.17
5.4.210.3530.03318.93
5.4.200.1800.03719.14
5.4.190.1900.04318.96
5.4.180.2370.04018.98
5.4.170.2670.02719.14
5.4.160.3070.03318.95
5.4.150.2100.04019.21
5.4.140.2330.03716.56
5.4.130.1870.04016.38
5.4.120.2600.03016.45
5.4.110.3000.03716.49
5.4.100.2830.03316.27
5.4.90.3430.03716.54
5.4.80.3770.04016.35
5.4.70.4170.04316.25
5.4.60.4170.03316.47
5.4.50.3270.03016.23
5.4.40.3700.03316.45
5.4.30.3500.03716.52
5.4.20.3730.03716.39
5.4.10.3400.02716.61
5.4.00.3630.04315.84
5.3.290.0070.04314.70
5.3.280.2830.03014.52
5.3.270.3370.03314.64
5.3.260.2600.03714.64
5.3.250.2370.04714.60
5.3.240.1470.03314.60
5.3.230.1800.03314.67
5.3.220.2470.03314.57
5.3.210.2170.03714.60
5.3.200.2100.04014.48
5.3.190.4030.03714.59
5.3.180.3130.03714.62
5.3.170.3170.03714.58
5.3.160.3800.03014.71
5.3.150.3730.04314.62
5.3.140.3400.04314.45
5.3.130.3930.03314.60
5.3.120.3470.03714.55
5.3.110.3430.04014.61
5.3.100.3430.03714.04
5.3.90.3370.03014.09
5.3.80.3430.03313.91
5.3.70.3770.04013.96
5.3.60.3770.03014.04
5.3.50.3370.03313.99
5.3.40.3670.03713.97
5.3.30.2530.04013.84
5.3.20.4170.02713.59
5.3.10.3630.03313.72
5.3.00.3700.03713.70
5.2.170.2230.03311.32
5.2.160.2970.03311.23
5.2.150.3230.03711.19
5.2.140.3130.02011.21
5.2.130.2870.03711.11
5.2.120.3030.02311.12
5.2.110.3400.03011.11
5.2.100.3330.02711.08
5.2.90.2470.03011.03
5.2.80.3170.03711.26
5.2.70.3770.03711.05
5.2.60.3100.04311.00
5.2.50.3170.02711.05
5.2.40.2530.03011.07
5.2.30.2970.03011.12
5.2.20.2130.03010.95
5.2.10.2530.03010.89
5.2.00.2730.03010.68
5.1.60.2430.02710.05
5.1.50.2600.02310.00
5.1.40.2300.0239.96
5.1.30.2430.02710.40
5.1.20.2330.02710.51
5.1.10.2600.02310.14
5.1.00.2300.02310.14
5.0.50.1200.0378.70
5.0.40.1470.0208.32
5.0.30.1330.0338.25
5.0.20.1100.0178.23
5.0.10.1270.0208.14
5.0.00.1100.0308.07
4.4.90.1070.0276.25
4.4.80.1300.0176.25
4.4.70.1200.0206.25
4.4.60.1100.0236.25
4.4.50.1100.0206.25
4.4.40.1430.0236.25
4.4.30.1230.0176.25
4.4.20.1500.0176.25
4.4.10.0700.0176.25
4.4.00.1400.0336.25
4.3.110.1270.0106.25
4.3.100.1270.0176.25
4.3.90.1070.0136.25
4.3.80.1370.0206.25
4.3.70.1300.0106.25
4.3.60.1270.0106.25
4.3.50.1270.0206.25
4.3.40.1400.0276.25
4.3.30.0670.0206.25
4.3.20.0530.0276.25
4.3.10.0500.0236.25
4.3.00.0730.0176.25

preferences:
42.72 ms | 401 KiB | 5 Q