3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public static $myStaticProperty; public $myInstanceProperty; } $staticPropertyName = 'myStaticProperty'; $instancePropertyName = 'myInstanceProperty'; MyClass::${$staticPropertyName} = 'my static value'; $obj = new MyClass(); $obj->{$instancePropertyName} = 'my instance value'; var_dump(MyClass::${$staticPropertyName}); var_dump($obj->{$instancePropertyName});

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.130.0000.00818.43
8.3.120.0060.00320.89
8.3.110.0040.00816.75
8.3.100.0160.00016.47
8.3.90.0110.00426.77
8.3.80.0000.01018.43
8.3.70.0180.00016.75
8.3.60.0150.00418.30
8.3.50.0050.01217.43
8.3.40.0140.00018.93
8.3.30.0090.00618.79
8.3.20.0080.00018.60
8.3.10.0060.00320.36
8.3.00.0080.00017.50
8.2.250.0100.00016.55
8.2.240.0000.00817.05
8.2.230.0040.00420.94
8.2.220.0000.00937.54
8.2.210.0000.00826.77
8.2.200.0090.00016.75
8.2.190.0080.01116.58
8.2.180.0100.00716.38
8.2.170.0160.00318.91
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0110.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0030.00622.16
8.2.100.0080.00417.78
8.2.90.0000.00917.97
8.2.80.0040.00419.21
8.2.70.0110.00248.29
8.2.60.0100.00348.63
8.2.50.0090.00448.70
8.2.40.0130.00049.62
8.2.30.0040.00734.10
8.2.20.0020.00648.51
8.2.10.0100.00248.54
8.2.00.0080.00448.54
8.1.300.0080.00020.19
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0080.00022.13
8.1.230.0080.00320.98
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0090.00448.40
8.1.190.0030.01048.43
8.1.180.0050.00748.71
8.1.170.0080.00449.04
8.1.160.0070.00549.13
8.1.150.0120.00248.98
8.1.140.0080.00549.47
8.1.130.0070.00548.60
8.1.120.0040.00628.94
8.1.110.0050.00648.39
8.1.100.0110.00148.33
8.1.90.0070.00548.37
8.1.80.0070.00548.36
8.1.70.0050.00648.38
8.1.60.0080.00638.17
8.1.50.0110.00438.05
8.1.40.0090.00438.08
8.1.30.0070.00738.14
8.1.20.0070.00733.08
8.1.10.0080.00532.96
8.1.00.0120.00432.95
8.0.300.0040.00419.91
8.0.290.0080.00748.04
8.0.280.0090.00448.84
8.0.270.0060.00748.08
8.0.260.0100.00249.00
8.0.250.0080.00448.15
8.0.240.0100.00248.08
8.0.230.0060.00648.14
8.0.220.0030.00948.13
8.0.210.0060.00548.10
8.0.200.0060.00548.10
8.0.190.0100.00537.73
8.0.180.0120.00337.65
8.0.170.0080.00737.65
8.0.160.0100.00537.67
8.0.150.0090.00432.41
8.0.140.0100.00332.43
8.0.130.0090.00331.58
8.0.120.0040.00832.50
8.0.110.0100.00232.40
8.0.100.0050.00832.45
8.0.90.0080.00532.46
8.0.80.0100.00532.45
8.0.70.0090.00432.52
8.0.60.0080.00532.45
8.0.50.0090.00332.40
8.0.30.0080.00827.35
8.0.20.0110.00627.45
8.0.10.0110.00432.56
8.0.00.0090.00453.30
7.4.330.0050.00446.97
7.4.320.0090.00347.89
7.4.300.0090.00347.93
7.4.290.0100.00437.43
7.4.280.0120.00437.41
7.4.270.0110.00232.19
7.4.260.0070.00532.15
7.4.250.0070.00732.15
7.4.240.0070.00429.06
7.4.230.0060.00632.16
7.4.220.0060.00832.12
7.4.210.0110.00525.51
7.4.200.0080.00532.16
7.4.190.0070.00532.25
7.4.180.0090.00537.44
7.4.160.0080.00629.05
7.4.150.0060.00929.23
7.4.140.0100.00727.18
7.4.130.0090.00626.94
7.4.120.0090.00526.94
7.4.110.0110.00428.96
7.4.100.0090.00529.06
7.4.90.0090.00629.06
7.4.80.0090.00529.51
7.4.70.0090.00629.10
7.4.60.0100.00329.00
7.4.50.0070.00629.01
7.4.40.0080.00530.19
7.4.30.0070.00629.03
7.4.20.0080.00532.14
7.4.10.0100.00332.12
7.4.00.0040.00926.46
7.3.330.0120.00331.31
7.3.320.0120.00431.29
7.3.310.0100.00532.10
7.3.300.0150.00232.06
7.3.290.0160.00432.10
7.3.280.0090.00825.34
7.3.270.0140.00529.18
7.3.260.0140.00327.49
7.3.250.0120.00526.89
7.3.240.0130.00428.94
7.3.230.0110.00828.92
7.3.220.0130.00532.08
7.3.210.0130.00428.87
7.3.200.0120.00629.53
7.3.190.0150.00528.93
7.3.180.0110.00828.98
7.3.170.0100.00928.91
7.3.160.0150.00228.92
7.3.150.0110.00732.08
7.3.140.0130.00432.04
7.3.130.0110.00732.03
7.3.120.0100.00726.23
7.3.110.0080.00928.44
7.3.100.0100.00828.52
7.3.90.0100.00728.68
7.3.80.0100.00728.61
7.3.70.0110.00628.67
7.3.60.0120.00628.66
7.3.50.0120.00528.63
7.3.40.0060.01128.72
7.3.30.0120.00728.72
7.3.20.0130.00429.85
7.3.10.0100.00627.59
7.3.00.0100.00827.62
7.2.340.0120.00632.04
7.2.330.0110.00628.93
7.2.320.0090.01028.89
7.2.310.0120.00728.91
7.2.300.0150.00228.97
7.2.290.0100.00828.93
7.2.280.0120.00532.10
7.2.270.0130.00432.01
7.2.260.0120.00532.02
7.2.250.0120.00428.53
7.2.240.0130.00628.62
7.2.230.0090.00828.63
7.2.220.0080.00828.65
7.2.210.0100.00728.63
7.2.200.0100.00728.68
7.2.190.0120.00728.76
7.2.180.0100.00828.71
7.2.170.0140.00328.78
7.2.160.0110.00728.73
7.2.150.0130.00329.87
7.2.140.0100.00629.86
7.2.130.0110.00627.78
7.2.120.0110.00627.77
7.2.110.0110.00627.75
7.2.100.0130.00527.67
7.2.90.0170.00727.73
7.2.80.0110.00727.71
7.2.70.0090.00727.64
7.2.60.0120.00526.11
7.2.50.0130.00427.70
7.2.40.0100.00727.71
7.2.30.0140.00627.79
7.2.20.0110.00527.72
7.2.10.0110.00927.73
7.2.00.0100.00626.58
7.1.330.0150.00329.11
7.1.320.0150.00429.03
7.1.310.0110.00729.06
7.1.300.0150.00829.06
7.1.290.0150.00628.97
7.1.280.0120.00929.07
7.1.270.0130.00729.03
7.1.260.0150.00329.01
7.1.250.0130.00526.79
7.1.240.0140.00428.96
7.1.230.0150.00329.07
7.1.220.0140.00329.04
7.1.210.0140.00628.97
7.1.200.0090.00826.76
7.1.190.0150.00429.00
7.1.180.0130.00529.02
7.1.170.0110.00628.98
7.1.160.0160.00328.89
7.1.150.0130.00529.00
7.1.140.0130.00428.90
7.1.130.0140.00729.02
7.1.120.0120.00628.99
7.1.110.0180.00428.96
7.1.100.0140.00628.90
7.1.90.0150.00528.92
7.1.80.0160.00429.02
7.1.70.0130.00627.02
7.1.60.0120.00727.05
7.1.50.0110.00627.12
7.1.40.0120.00727.09
7.1.30.0420.00627.14
7.1.20.0140.00527.08
7.1.10.0120.00727.10
7.1.00.0110.00627.01
7.0.330.0100.00628.69
7.0.320.0110.00528.75
7.0.310.0150.00228.78
7.0.300.0140.00528.81
7.0.290.0140.00328.77
7.0.280.0130.00628.69
7.0.270.0210.00328.68
7.0.260.0110.00728.78
7.0.250.0170.00628.85
7.0.240.0130.00528.79
7.0.230.0150.00528.75
7.0.220.0150.00528.82
7.0.210.0150.00428.79
7.0.200.0120.00626.88
7.0.190.0100.00726.98
7.0.180.0090.00926.95
7.0.170.0130.00626.95
7.0.160.0130.00426.92
7.0.150.0110.00526.93
7.0.140.0120.00626.90
7.0.130.0100.00626.93
7.0.120.0110.00626.99
7.0.110.0110.00726.91
7.0.100.0110.00726.92
7.0.90.0140.00726.93
7.0.80.0110.00626.92
7.0.70.0120.00626.87
7.0.60.0110.00626.84
7.0.50.0130.00426.89
7.0.40.0110.00626.66
7.0.30.0110.00826.60
7.0.20.0100.00726.55
7.0.10.0080.00826.58
7.0.00.0090.00726.57
5.6.400.0120.00628.34
5.6.390.0120.00728.34
5.6.380.0100.00628.34
5.6.370.0130.00528.30
5.6.360.0120.00628.29
5.6.350.0110.00728.28
5.6.340.0140.00428.29
5.6.330.0110.00628.22
5.6.320.0110.00828.26
5.6.310.0150.00728.28
5.6.300.0140.01026.99
5.6.290.0140.01827.06
5.6.280.0120.01027.09
5.6.270.0130.00927.04
5.6.260.0090.01327.05
5.6.250.0110.02026.97
5.6.240.0150.01227.05
5.6.230.0090.01427.11
5.6.220.0130.01127.04
5.6.210.0130.01427.06
5.6.200.0130.01327.05
5.6.190.0120.01227.05
5.6.180.0130.01127.01
5.6.170.0140.00927.11
5.6.160.0100.01127.12
5.6.150.0100.01227.13
5.6.140.0110.01427.10
5.6.130.0140.01627.05
5.6.120.0130.00927.08
5.6.110.0110.01026.97
5.6.100.0120.01627.13
5.6.90.0080.01527.02
5.6.80.0080.01526.97
5.6.70.0080.01426.90
5.6.60.0090.01726.96
5.6.50.0090.01226.92
5.6.40.0080.01526.89
5.6.30.0100.01326.91
5.6.20.0090.01326.91
5.6.10.0100.01326.85
5.6.00.0110.01026.84
5.5.380.0130.01129.06
5.5.370.0120.01229.00
5.5.360.0130.01628.89
5.5.350.0130.01228.83
5.5.340.0110.01329.00
5.5.330.0120.01228.97
5.5.320.0130.01128.93
5.5.310.0150.01128.86
5.5.300.0120.01628.94
5.5.290.0100.01528.90
5.5.280.0110.01428.96
5.5.270.0090.01828.93
5.5.260.0170.01728.93
5.5.250.0110.01429.01
5.5.240.0130.01128.88
5.5.230.0080.01528.91
5.5.220.0110.01428.90
5.5.210.0120.01128.93
5.5.200.0110.01228.88
5.5.190.0120.01328.83
5.5.180.0110.01328.83
5.5.170.0140.00531.64
5.5.160.0130.01228.88
5.5.150.0130.01828.77
5.5.140.0110.01328.78
5.5.130.0130.01528.73
5.5.120.0110.01328.73
5.5.110.0110.01328.76
5.5.100.0060.01728.93
5.5.90.0130.01028.86
5.5.80.0120.01028.92
5.5.70.0110.01228.86
5.5.60.0110.01028.84
5.5.50.0140.01028.88
5.5.40.0090.01328.85
5.5.30.0120.01028.92
5.5.20.0090.01328.93
5.5.10.0100.01228.91
5.5.00.0110.01328.80
5.4.450.0090.01227.38
5.4.440.0110.01127.37
5.4.430.0100.01227.41
5.4.420.0080.01427.38
5.4.410.0090.01427.35
5.4.400.0080.01327.27
5.4.390.0080.01527.26
5.4.380.0140.00927.26
5.4.370.0090.01227.31
5.4.360.0080.01327.29
5.4.350.0140.00827.30
5.4.340.0100.01127.32
5.4.330.0130.00329.35
5.4.320.0110.01427.38
5.4.310.0120.01427.31
5.4.300.0120.01127.34
5.4.290.0110.01127.36
5.4.280.0100.01427.36
5.4.270.0080.01327.32
5.4.260.0090.01227.37
5.4.250.0130.00827.34
5.4.240.0120.01127.29
5.4.230.0090.01127.16
5.4.220.0100.01127.13
5.4.210.0100.01127.15
5.4.200.0110.01027.12
5.4.190.0100.01127.19
5.4.180.0130.00927.21
5.4.170.0110.01227.21
5.4.160.0100.01127.13
5.4.150.0090.01327.16
5.4.140.0110.00926.97
5.4.130.0100.01027.00
5.4.120.0090.01226.99
5.4.110.0100.01027.04
5.4.100.0130.00826.98
5.4.90.0110.00826.90
5.4.80.0100.01727.09
5.4.70.0090.01127.07
5.4.60.0070.01627.05
5.4.50.0100.01127.01
5.4.40.0090.01127.03
5.4.30.0110.01327.04
5.4.20.0110.00927.07
5.4.10.0100.01327.03
5.4.00.0120.00926.89
5.3.290.0080.01427.28
5.3.280.0100.01327.27
5.3.270.0130.00927.20
5.3.260.0080.01427.19
5.3.250.0110.00927.21
5.3.240.0110.01127.16
5.3.230.0090.01327.18
5.3.220.0120.01127.14
5.3.210.0100.01227.09
5.3.200.0120.00927.11
5.3.190.0120.01327.24
5.3.180.0110.01127.23
5.3.170.0120.01427.22
5.3.160.0120.01027.22
5.3.150.0130.01027.15
5.3.140.0090.01127.24
5.3.130.0100.01227.18
5.3.120.0110.01127.21
5.3.110.0120.01027.16
5.3.100.0110.01027.16
5.3.90.0100.01927.19
5.3.80.0100.01427.12
5.3.70.0110.01827.16
5.3.60.0080.01227.20
5.3.50.0130.00927.10
5.3.40.0110.00927.13
5.3.30.0060.01327.18
5.3.20.0090.01027.09
5.3.10.0110.00826.99
5.3.00.0080.01226.98

preferences:
28.86 ms | 403 KiB | 5 Q