3v4l.org

run code in 300+ PHP versions simultaneously
<?php class V { public $dude; public $something1 = null; protected $something2 = false; private $something3 = 'HELLO'; const HELLO = 'DUDE'; public static $hello = 'DUDE'; public function __construct() { //print_r( get_object_vars( $this ) ); } public function __get( $var ) { return 'HELLO'; } } $v = new V; echo $v->dude;

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.0110.00716.63
8.3.50.0110.00716.38
8.3.40.0140.00018.67
8.3.30.0090.00919.09
8.3.20.0040.00420.33
8.3.10.0040.00421.59
8.3.00.0050.00317.63
8.2.180.0200.00018.29
8.2.170.0110.00422.96
8.2.160.0160.00320.38
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0060.00319.36
8.2.110.0060.00319.21
8.2.100.0100.00717.64
8.2.90.0050.00319.23
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0030.00517.93
8.2.50.0030.00618.10
8.2.40.0040.00420.45
8.2.30.0000.00817.93
8.2.20.0040.00417.66
8.2.10.0040.00418.00
8.2.00.0100.00017.68
8.1.280.0040.01125.92
8.1.270.0040.00420.14
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00822.02
8.1.230.0040.00717.82
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00717.22
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0000.00721.95
8.1.150.0080.00018.76
8.1.140.0040.00417.35
8.1.130.0030.00317.81
8.1.120.0040.00417.44
8.1.110.0000.00717.32
8.1.100.0040.00417.43
8.1.90.0090.00017.38
8.1.80.0040.00417.29
8.1.70.0030.00317.42
8.1.60.0030.00617.65
8.1.50.0040.00417.42
8.1.40.0000.01017.55
8.1.30.0040.00417.69
8.1.20.0040.00417.48
8.1.10.0040.00417.41
8.1.00.0030.00517.46
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0080.00018.35
8.0.270.0030.00316.81
8.0.260.0030.00317.24
8.0.250.0000.00816.99
8.0.240.0000.01016.81
8.0.230.0050.00216.90
8.0.220.0000.00716.83
8.0.210.0000.00716.76
8.0.200.0060.00016.98
8.0.190.0040.00416.77
8.0.180.0000.00716.73
8.0.170.0040.00416.88
8.0.160.0040.00416.92
8.0.150.0050.00216.68
8.0.140.0040.00416.75
8.0.130.0000.00613.26
8.0.120.0090.00016.80
8.0.110.0000.00716.80
8.0.100.0070.00016.72
8.0.90.0000.00716.84
8.0.80.0100.00716.78
8.0.70.0000.00716.86
8.0.60.0040.00416.77
8.0.50.0040.00516.84
8.0.30.0070.01416.91
8.0.20.0110.01017.40
8.0.10.0000.00816.98
8.0.00.0080.01116.58
7.4.330.0000.00615.15
7.4.320.0030.00316.48
7.4.300.0060.00016.52
7.4.290.0000.00716.55
7.4.280.0000.00716.43
7.4.270.0030.00316.41
7.4.260.0000.00816.55
7.4.250.0000.00816.54
7.4.240.0040.00316.47
7.4.230.0000.00716.49
7.4.220.0060.01016.50
7.4.210.0070.00816.66
7.4.200.0000.00716.50
7.4.160.0090.00616.66
7.4.150.0030.01417.40
7.4.140.0120.00917.86
7.4.130.0070.01116.60
7.4.120.0080.00916.46
7.4.110.0090.00916.47
7.4.100.0130.00316.39
7.4.90.0110.00916.67
7.4.80.0130.00919.39
7.4.70.0130.00616.68
7.4.60.0060.01216.43
7.4.50.0000.00716.54
7.4.40.0040.01316.61
7.4.30.0090.01016.59
7.4.00.0100.00314.81
7.3.330.0030.00313.16
7.3.320.0050.01013.12
7.3.310.0030.00316.34
7.3.300.0030.00316.15
7.3.290.0100.00316.22
7.3.280.0110.00516.19
7.3.270.0090.00917.40
7.3.260.0110.00716.25
7.3.250.0060.01116.47
7.3.240.0090.00616.11
7.3.230.0140.00816.39
7.3.210.0080.00816.42
7.3.200.0030.01319.39
7.3.190.0090.00916.12
7.3.180.0170.00316.11
7.3.170.0070.01316.29
7.3.160.0080.01216.24
7.3.10.0070.00716.01
7.3.00.0090.00316.20
7.2.330.0080.00816.43
7.2.320.0090.00916.35
7.2.310.0120.00616.69
7.2.300.0070.01016.32
7.2.290.0090.00916.41
7.2.130.0110.00616.25
7.2.120.0170.00016.61
7.2.110.0120.00616.68
7.2.100.0120.00316.11
7.2.90.0060.00916.89
7.2.80.0030.01116.56
7.2.70.0170.00316.68
7.2.60.0040.01116.24
7.2.50.0100.00716.55
7.2.40.0100.01616.51
7.2.30.0160.00416.15
7.2.20.0170.00416.18
7.2.10.0170.00316.20
7.2.00.0060.00817.88
7.1.250.0070.01015.67
7.1.100.0000.01117.99
7.1.70.0000.00717.01
7.1.60.0140.01019.50
7.1.50.0100.01316.75
7.1.00.0100.07022.33
7.0.200.0030.00316.59
7.0.140.0100.04722.08
7.0.60.0000.04320.01
7.0.50.0030.06017.87
7.0.40.0030.05320.16
7.0.30.0100.04720.21
7.0.20.0170.04720.09
7.0.10.0300.06720.12
7.0.00.0030.04720.12
5.6.280.0030.07321.08
5.6.210.0030.04320.67
5.6.200.0270.04318.16
5.6.190.0100.05020.65
5.6.180.0230.04320.46
5.6.170.0170.06320.49
5.6.160.0070.04720.55
5.6.150.0100.03318.18
5.6.140.0100.07718.11
5.6.130.0100.07718.28
5.6.120.0070.05721.02
5.6.110.0130.07721.03
5.6.100.0070.06721.06
5.6.90.0200.06320.88
5.6.80.0130.07720.51
5.6.70.0200.08020.37
5.5.350.0270.06720.45
5.5.340.0030.07717.99
5.5.330.0030.07720.46
5.5.320.0300.08020.29
5.5.310.0330.06720.35
5.5.300.0100.06318.01
5.5.290.0070.06318.04
5.5.280.0330.04720.98
5.5.270.0070.07320.87
5.5.260.0070.05320.88
5.5.250.0170.07020.67
5.5.240.0070.06720.29
5.4.450.0500.05319.33
5.4.440.0400.05719.55
5.4.430.0430.05319.16
5.4.420.0800.05319.33
5.4.410.0100.05318.81
5.4.400.0670.05318.51
5.4.390.0500.06018.86
5.4.380.0300.06018.62
5.4.370.0300.06018.77
5.4.360.0500.07318.71
5.4.350.0430.05718.80
5.4.340.0300.05318.57
5.4.320.1300.06018.77
5.4.310.0430.05318.61
5.4.300.0430.05718.82
5.4.290.0330.05318.73
5.4.280.0470.05018.78
5.4.270.0400.05318.57
5.4.260.0270.06718.62
5.4.250.0430.05018.74
5.4.240.0230.04718.75
5.4.230.0030.07718.75
5.4.220.0830.07318.69
5.4.210.0330.07018.52
5.4.200.1830.06316.63
5.4.190.0400.06718.75
5.4.180.1770.06018.68
5.4.170.0270.07718.71
5.4.160.0300.05318.59
5.4.150.0330.05318.48
5.4.140.1330.04316.34
5.4.130.0430.04316.24
5.4.120.0330.05316.45
5.4.110.0370.05316.30
5.4.100.0370.05016.34
5.4.90.0300.05716.45
5.4.80.0330.05016.16
5.4.70.0170.06316.29
5.4.60.0430.04316.27
5.4.50.1430.04316.19
5.4.40.0570.03016.22
5.4.30.1030.04716.23
5.4.20.1030.05016.27
5.4.10.0500.04716.26
5.4.00.0230.05315.69
5.3.290.0330.07014.73
5.3.280.0370.06714.60
5.3.270.0170.06014.63
5.3.260.0500.06714.59
5.3.250.1100.07314.82
5.3.240.1000.07314.70
5.3.230.0370.06014.73
5.3.220.0470.04714.59
5.3.210.0330.05714.75
5.3.200.0400.05014.63
5.3.190.0300.05314.59
5.3.180.0270.05714.70
5.3.170.0330.05014.66
5.3.160.0300.06314.59
5.3.150.0230.06714.70
5.3.140.0270.05714.57
5.3.130.0470.04314.59
5.3.120.0430.05314.59
5.3.110.0370.05714.71
5.3.100.0430.04714.02
5.3.90.0300.05714.15
5.3.80.0400.05314.06
5.3.70.0530.05714.24
5.3.60.0400.05314.05
5.3.50.0430.04313.96
5.3.40.0330.05314.02
5.3.30.0430.06714.08
5.3.20.0400.05013.89
5.3.10.0270.05313.79
5.3.00.0300.05313.64
5.2.170.0330.04011.21
5.2.160.0200.05011.26
5.2.150.0370.04711.17
5.2.140.0330.05011.36
5.2.130.0200.05711.21
5.2.120.0430.05011.23
5.2.110.0370.05311.14
5.2.100.0470.02711.23
5.2.90.0400.04011.13
5.2.80.0370.03311.10
5.2.70.0300.04311.20
5.2.60.0430.04311.09
5.2.50.0430.04311.06
5.2.40.0270.04711.04
5.2.30.0370.05711.10
5.2.20.0230.05711.07
5.2.10.0270.04010.96
5.2.00.0270.04310.76
5.1.60.0230.03710.18
5.1.50.0300.03310.07
5.1.40.0270.03310.16
5.1.30.0230.03710.56
5.1.20.0170.04010.33
5.1.10.0130.04310.06
5.1.00.0300.04310.20
5.0.50.0100.0408.57
5.0.40.0170.0278.60
5.0.30.0170.0508.30
5.0.20.0100.0308.22
5.0.10.0130.0378.20
5.0.00.0130.0538.24
4.4.90.0230.0175.89
4.4.80.0100.0235.87
4.4.70.0170.0205.88
4.4.60.0170.0235.95
4.4.50.0170.0205.90
4.4.40.0100.0375.88
4.4.30.0130.0235.98
4.4.20.0170.0205.93
4.4.10.0130.0235.93
4.4.00.0100.0375.96
4.3.110.0030.0235.82
4.3.100.0030.0235.82
4.3.90.0030.0205.86
4.3.80.0070.0305.86
4.3.70.0070.0235.91
4.3.60.0030.0275.81
4.3.50.1830.0205.87
4.3.40.0100.0335.83
4.3.30.0070.0204.80
4.3.20.0070.0204.80
4.3.10.0100.0204.80
4.3.00.0070.0236.81

preferences:
50.65 ms | 400 KiB | 5 Q