3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Kitchen { private $yummy = 'cake'; function __destruct() { if ($this->yummy == 'aaaa') echo 'win!'; } } $obj = new Kitchen(); $refObject = new ReflectionObject( $obj ); $refProperty = $refObject->getProperty( 'yummy' ); $refProperty->setAccessible( true ); $refProperty->setValue($refProperty, 'aaaa'); //var_dump($refProperty); var_dump($refProperty); unset($refProperty);

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.56
8.3.50.0120.00521.08
8.3.40.0110.00418.71
8.3.30.0090.00619.05
8.3.20.0040.00420.15
8.3.10.0080.00023.61
8.3.00.0000.00818.98
8.2.180.0140.00718.54
8.2.170.0070.00719.00
8.2.160.0140.00322.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0000.00819.36
8.2.110.0070.01022.20
8.2.100.0090.00317.91
8.2.90.0040.00418.02
8.2.80.0000.00817.97
8.2.70.0060.00317.38
8.2.60.0070.00017.92
8.2.50.0040.00418.10
8.2.40.0050.00318.03
8.2.30.0000.00718.03
8.2.20.0000.00917.54
8.2.10.0000.00818.00
8.2.00.0040.00419.89
8.1.280.0110.00425.92
8.1.270.0040.00420.24
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0040.00822.80
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00917.35
8.1.180.0030.00518.10
8.1.170.0040.00418.74
8.1.160.0000.00818.80
8.1.150.0000.00718.77
8.1.140.0000.00717.46
8.1.130.0030.00317.80
8.1.120.0000.00717.52
8.1.110.0030.00417.52
8.1.100.0000.00817.46
8.1.90.0000.00717.47
8.1.80.0000.00717.34
8.1.70.0000.00717.47
8.1.60.0090.00017.61
8.1.50.0080.00017.55
8.1.40.0040.00417.54
8.1.30.0000.00817.52
8.1.20.0050.00317.68
8.1.10.0000.00717.47
8.1.00.0040.00417.44
8.0.300.0070.00021.67
8.0.290.0040.00416.63
8.0.280.0030.00518.29
8.0.270.0030.00317.06
8.0.260.0000.00816.67
8.0.250.0000.00716.94
8.0.240.0060.00316.86
8.0.230.0000.00716.88
8.0.220.0000.00716.86
8.0.210.0030.00316.72
8.0.200.0040.00416.79
8.0.190.0080.00016.83
8.0.180.0040.00416.90
8.0.170.0020.00516.75
8.0.160.0080.00016.73
8.0.150.0070.00016.79
8.0.140.0080.00016.79
8.0.130.0000.00613.25
8.0.120.0040.00416.82
8.0.110.0040.00416.78
8.0.100.0000.00716.72
8.0.90.0000.00716.93
8.0.80.0030.01316.91
8.0.70.0040.00416.71
8.0.60.0050.00216.86
8.0.50.0040.00416.73
8.0.30.0110.00517.03
8.0.20.0080.01217.40
8.0.10.0050.00317.08
8.0.00.0110.01116.83
7.4.330.0000.00615.14
7.4.320.0000.00616.51
7.4.300.0000.00616.66
7.4.290.0040.00416.61
7.4.280.0000.00816.61
7.4.270.0000.00716.63
7.4.260.0000.00716.42
7.4.250.0030.00316.38
7.4.240.0020.00516.51
7.4.230.0030.00616.63
7.4.220.0060.01516.62
7.4.210.0060.01516.50
7.4.200.0040.00416.62
7.4.160.0140.00316.53
7.4.150.0120.00917.40
7.4.140.0130.01017.86
7.4.130.0100.01216.50
7.4.120.0110.00916.47
7.4.110.0150.00416.55
7.4.100.0110.01116.41
7.4.90.0140.00316.56
7.4.80.0100.01319.39
7.4.70.0130.00616.38
7.4.60.0080.01216.60
7.4.50.0040.00416.55
7.4.40.0150.00316.38
7.4.30.0070.01516.43
7.4.00.0030.01315.03
7.3.330.0030.00313.37
7.3.320.0030.00313.22
7.3.310.0030.00316.35
7.3.300.0070.00016.29
7.3.290.0050.00916.27
7.3.280.0090.00616.36
7.3.270.0130.00317.40
7.3.260.0190.00016.44
7.3.250.0070.01016.37
7.3.240.0100.00616.48
7.3.230.0150.00316.50
7.3.210.0120.00616.43
7.3.200.0120.00916.46
7.3.190.0030.01416.64
7.3.180.0000.01516.52
7.3.170.0080.00916.33
7.3.160.0070.01116.52
7.2.330.0090.01216.74
7.2.320.0110.00716.63
7.2.310.0100.00816.39
7.2.300.0090.00916.39
7.2.290.0140.00516.59
7.2.00.0030.00919.03
7.1.100.0040.01118.11
7.1.70.0080.00317.07
7.1.60.0160.00719.86
7.1.50.0060.01816.93
7.1.00.0100.07322.45
7.0.200.0030.00616.84
7.0.60.0170.06720.05
7.0.50.0070.05717.80
7.0.40.0070.04720.14
7.0.30.0330.06720.08
7.0.20.0300.06720.07
7.0.10.0100.08320.07
7.0.00.0070.05320.05
5.6.280.0000.07320.93
5.6.210.0130.04020.61
5.6.200.0130.07018.18
5.6.190.0130.07720.55
5.6.180.0300.05720.61
5.6.170.0230.07320.45
5.6.160.0200.07020.47
5.6.150.0100.07018.19
5.6.140.0130.06318.14
5.6.130.0100.07718.27
5.6.120.0070.04021.15
5.6.110.0170.07721.00
5.6.100.0030.05021.07
5.6.90.0030.04320.97
5.6.80.0030.04020.51
5.5.350.0130.08720.34
5.5.340.0030.04718.07
5.5.330.0100.08020.22
5.5.320.0430.06720.35
5.5.310.0130.08320.34
5.5.300.0030.04718.05
5.5.290.0030.07017.97
5.5.280.0100.08020.85
5.5.270.0030.05320.86
5.5.260.0070.08320.87
5.5.250.0070.08020.61
5.5.240.0100.06320.19
5.4.450.0370.05719.55
5.4.440.0500.06019.54
5.4.430.0170.04719.63
5.4.420.0130.05319.52
5.4.410.0070.06019.32
5.4.400.0100.05319.39
5.4.390.0200.06019.02
5.4.380.0070.05719.02
5.4.370.0100.05319.11
5.4.360.0170.04718.98
5.4.350.0100.05719.12
5.4.340.0070.05719.03
5.4.320.0030.06019.01
5.4.310.0070.05719.21
5.4.300.0170.04319.07
5.4.290.0070.05319.11
5.4.280.0030.06019.05
5.4.270.0100.06719.13
5.4.260.0030.06319.07
5.4.250.0130.05319.02
5.4.240.0100.05719.21
5.4.230.0130.05019.05
5.4.220.0200.04319.10
5.4.210.0100.05319.12
5.4.200.0100.05016.85
5.4.190.0030.05719.10
5.4.180.0070.05719.05
5.4.170.0030.06019.02
5.4.160.0070.05319.10
5.4.150.0130.05019.09
5.4.140.0130.05016.26
5.4.130.0000.05716.26
5.4.120.0070.05016.26
5.4.110.0130.04316.28
5.4.100.0100.05016.28
5.4.90.0070.06316.58
5.4.80.0070.05316.44
5.4.70.0030.06016.69
5.4.60.0030.05716.55
5.4.50.0100.04716.30
5.4.40.0000.06316.41
5.4.30.0200.04016.61
5.4.20.0130.05016.54
5.4.10.0030.05316.24
5.4.00.0070.05316.08
5.3.290.0130.06014.67
5.3.280.0000.06314.74
5.3.270.0100.06014.56
5.3.260.0100.05314.63
5.3.250.0130.05014.56
5.3.240.0070.05314.68
5.3.230.0070.05714.45
5.3.220.0170.04314.47
5.3.210.0130.05014.68
5.3.200.0100.05014.57
5.3.190.0100.05014.42
5.3.180.0130.06314.41
5.3.170.0200.04014.56
5.3.160.0100.05314.46
5.3.150.0030.05714.41
5.3.140.0070.05314.38
5.3.130.0070.05714.55
5.3.120.0170.05714.45
5.3.110.0130.05014.57
5.3.100.0070.05314.08
5.3.90.0100.05014.08
5.3.80.0070.05313.98
5.3.70.0130.05014.13
5.3.60.0100.05314.16
5.3.50.0100.05014.11
5.3.40.0170.05013.95
5.3.30.0100.04713.89
5.3.20.0130.04713.84
5.3.10.0030.05313.71
5.3.00.0330.03713.63
5.2.170.0100.03711.05
5.2.160.0070.04011.02
5.2.150.0130.03311.13
5.2.140.0100.05011.05
5.2.130.0030.04311.09
5.2.120.0070.04011.02
5.2.110.0070.04710.96
5.2.100.0070.04311.22
5.2.90.0030.04311.28
5.2.80.0170.05011.17
5.2.70.0070.05311.26
5.2.60.0070.04011.21
5.2.50.0100.04011.00
5.2.40.0000.04711.05
5.2.30.0070.05011.03
5.2.20.0030.04310.96
5.2.10.0070.04010.76
5.2.00.0070.04310.57
5.1.60.0030.0339.93
5.1.50.0030.04310.11
5.1.40.0030.03710.06
5.1.30.0070.03710.29
5.1.20.0100.03310.50
5.1.10.0100.0409.95
5.1.00.0070.03710.16
5.0.50.0070.0278.54
5.0.40.0030.0308.50
5.0.30.0070.0438.15
5.0.20.0070.0278.29
5.0.10.0070.0378.30
5.0.00.0030.0438.09
4.4.90.0070.0175.87
4.4.80.0070.0205.73
4.4.70.0000.0235.89
4.4.60.0070.0175.76
4.4.50.0000.0235.78
4.4.40.0000.0375.75
4.4.30.0000.0235.92
4.4.20.0000.0235.93
4.4.10.0000.0235.84
4.4.00.0070.0335.79
4.3.110.0030.0235.81
4.3.100.0000.0235.82
4.3.90.0030.0335.64
4.3.80.0070.0335.65
4.3.70.0100.0135.74
4.3.60.0000.0235.64
4.3.50.0000.0235.78
4.3.40.0030.0335.77
4.3.30.0070.0234.42
4.3.20.0030.0234.39
4.3.10.0030.0204.46
4.3.00.0100.0207.69

preferences:
52.04 ms | 401 KiB | 5 Q